Support Article
Connect-REST JSON mapping issue with "invalid property name"
SA-10982
Summary
User is unable to map JSON response properties having special characters with PRPC properties.
Error Messages
Error mapping incoming response to .SecureMessagesList: com.pega.pegarules.pub.clipboard.InvalidReferenceException: The reference @total_records is not valid. Reason: invalid property name: '@total_records'
Steps to Reproduce
1. Create JSON property with special character.
2. Map the response to observe the error.
Root Cause
The root cause of this problem is defect/misconfiguration in the operating environment. It is not possible to MAP if response property is with special characters such as "@".
Resolution
This issue is resolved by HFix-22448.
In HFix-22448, below decision tables are added and code in service helper "getoutboundjsondata" and "setinboundjsondata" methods is updated.
PYINBOUNDIDENTIFIERENCODER
PYOUTBOUNDIDENTIFIERDECODER
Published June 23, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.