JSON Mapping Issue in Pega

Hi,

I have a property Status in @baseclass but i need a property status as my json in rest-connect rule is expecting it.

I couldn’t create status property as it is already there in baseclass and it’s throwing this error.

This record has 2 Errors in 2 places

pyPropertyName—

A case mismatch has been found for this property: ‘status’ doesn’t match ‘Status’

Error—

Definition required to confirm to Data-.Status instance created 20181213T073945.991 GMT

I tried property qualifier but that didn’t work.

Kindly help.

Thanks

@SaiM8658

REST Connector JSON properties mapping issue | Support Center this should be helpful and has all you need to do to fix the above issue

@Animesh

Hi I have tried creating property qualifier as mentioned in the above post but still that didn’t work.

Thanks

@SaiM8658 As mentioned in the link above Did you try creating the status property with a different name like “statusInt”? else you can delete the existing property and create a new one with the same case

HI @SaiM8658,

JSON is case-sensitive.

While mapping the JSON data to the Pega clipboard, JSON Key must be matched with the Pega property.

As the JSON key is status then it will expect the same status (case sensitive) property in Pega as well.

Please try to create a property status then it will work.

Regards,

K Chandra Prakash.

@KAMINENICHANDRAP

Hi,

I could create a property “status” bcz i do have one more property Status in baseclass and i’m getting this error.

This record has 2 Errors in 2 places

pyPropertyName—

A case mismatch has been found for this property: ‘status’ doesn’t match ‘Status’

Error—

Definition required to confirm to Data-.Status instance created 20181213T073945.991 GMT

Thanks

@SaiM8658

I created property - qualifier in the same class of results page from service and the issue is solved.

Qualifier used - pzExternalName

Thanks