Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

InboundMappingException while formatting returned JSON data

SA-65093

Summary



InboundMappingException while formatting the JSON data returned from the Pega API Get Data option. This occurs when the data type references a report definition.


Error Messages



com.pega.pegarules.pub.services.InboundMappingException: Exception occurred while mapping incoming response to .ASReleaseList

Error shown by JSON Validator:
"pyNeedleTopWidth": "0",
"pyNumberCurrencySymbol": "#DIALOGBODYquot; ,"
pyNumberFormat ":"
Error: Parse error on line 803:
...OGBODYquot; ," pyNumberFormat ":"
----------------------^
Expecting 'EOF', '}', ':', ',', ']', got 'undefined'



Steps to Reproduce

  1. Create a REST connector which references the out-of-the-box GET Data API
  2. In the endpoint URL, specify a data type which directly references a report definition
  3. Create an activity to call the REST connector
  4. Run the activity and trace
  5. View the error in the tracer, or if the response is set to clipboard, copy the JSON from the returned field and enter into a JSON validator


Root Cause



The Service returns the JSON representation of a Code-Pega-List object, which is not an Array of objects. 
However, the connector is configured for JSON mapping to a Page List property.



Resolution

Perform the following local-change:

Reconfigure the service to send a valid JSON Array of 'PegaProjMgmt-Work-Product-Version' objects, by serializing the pxResults property to JSON rather than the whole Code-Pega-List page. 

Alternatively, reconfigure the connector to map to a single Page of type Code-Pega List, and then reconfigure the application logic to consume the pxResults property of this page. 


 

 

Suggest Edit

Published August 19, 2019 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us