Support Article
A string value is required for JSON mapping (Connect-REST)
SA-32762
Summary
An error occurs for a REST Connector that did not occur in previous releases, for example. Pega 7.2.1.
Error Messages
** ** A string value is required for JSON mapping. Received: [B
Steps to Reproduce
- Configure a data page sourced from a REST Connector.
- Run it.
Root Cause
A defect in Pegasystems' code or rules for Pega 7.2.2 (fixed in Pega 7.3)
The logic that Connect-REST uses to determine if the remote system has sent text back to Pega is not compatible with
some JSON-related Content Types, when compared to previous versions of Pega.
The JSON Content-Types supported are “application/json” or those that match the pattern “application/*+json” and this
leaves out those that match the pattern “application/json+* ".
Resolution
Update or upgrade to the latest Pega Platform release.
If you cannot update or upgrade and must continue using Pega 7.2.2, apply HFix-31648.
Published January 18, 2018 - 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.