Support Article
Inbound JSON message parsing fails in Connect-REST
SA-43857
Summary
PRException occurs when Connect-REST parses inbound JSON message. Dynamic of virtual properties does not work at runtime after deploying HFix-27308.
Error Messages
Caused by: com.pega.pegarules.pub.PRException: Error mapping incoming response to .response_POST: com.pega.pegarules.pub.clipboard.InvalidParameterException: cannot be null or blank. page: pyDataSource1504288586182.response_POST.groupResults(1). Details: Invalid value for aReference passed to com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getProperty(String, char)
From: (H6879FCF2984300FAC8C7E58699A226CF:...)
at com.pega.pegarules.integration.engine.internal.ServiceHelper.setInboundJsonValue(ServiceHelper.java:1701)
at com.pega.pegarules.integration.engine.internal.ServiceHelper.setInboundDataValue(ServiceHelper.java:1519)
at com.pega.pegarules.integration.engine.internal.ServiceHelper.mapInboundData(ServiceHelper.java:1347)
Steps to Reproduce
- Install a new Pega 7.1.7 instance without any hotfixes
- Consume the JSON response file to create the REST integration related rules
- Open the data page and the response data transform rule used for mapping the JSON response to actual Pega properties
- Delete the properties created by the wizard and referenced in data transform under DataSource.response.
- Run the data page with the tracer. Pega creates the dynamic virtual properties in pyDataSource.response page based on the elements present in the JSON response
- Apply HFix-27308, delete the extract marker file and restart the application server
- Run the data page. The dynamic creation of virtual properties on pyDataSource.response page at runtime fails with the exception message
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Apply HFix-35253.
Published December 6, 2017 - 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.