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

JSON Response error due to @ character

SA-32308

Summary



Connect-REST method is connecting to a REST service that returns a element named @total_records in Json response.
 

Error Messages



The reference @total_records is not valid. Reason: invalid property name: '@total_records'


Steps to Reproduce

  1. Creat rest service.
  2. Note that response should be Json which is having "@" symbol before every property. 
  3. Consume the rest URL through integration wizard. 
  4. After created the rules, go to Connect rest rule, and modify the response map to key as JSON & page property. 
  5. Create the activity and call the above connect rest method. 


Root Cause



While parsing the Json response, referring "total_records" property instead of "@total_records" property.

Resolution



Local-change is to add pzExternalName qualifier to the property. 

Go to Property> Advanced tab >property qualifiers, and add below entry:

Qualifier: pzExternalName
Value:      @total_records

 

 

Published January 20, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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