Mapping Json Fields from Connect Rest Service
Hello Team,
I am getting the below mentioned error message when I am trying to map the json values to clipboard. This is because of special characters in the field name, Pega is not recognizing that field name and throwing an exception.
Test Json Sample: "newData":{"TESTDBDATA:4:slaveID:4.9":{"LatestAttributes":{"FirstName":"Testuser","Surname":"Tesingusers","BirthDate":"10.10.1993"}
Exception Message: The reference TESTDBDATA:4:slaveID:4.9 is not valid. Reason: invalid property name: TESTDBDATA:4:slaveID:4.9
The property TestPage.NewData was of mode String while com.pega.pegarules.data.internal.clipboard.ClipboardPropertyStrMinFeatureImpl.getProperty(String) was expecting a non-String mode. Details: encountered while trying to get TESTDBDATA:4:slaveID:4.9 com.pega.pegarules.pub.clipboard.WrongModeException: The property TestPage.NewData was of mode String while com.pega.pegarules.data.internal.clipboard.ClipboardPropertyStrMinFeatureImpl.getProperty(String) was expecting a non-String mode. Details: encountered while trying to get TESTDBDATA:4:slaveID:4.9
I also tried using pzexternalname property qualifier by saving it in our application ruleset but it did not work out. Also tried skipping this particular field through Data Transform but that also didn't work. Can anyone help me with this issue?