Question

5
Replies
5185
Views
Ashish_Pundir Member since 2012 6 posts
Rules Cube Inc
Posted: 3 years ago
Last activity: 3 years 8 months ago
Closed

sax parse error: Content is not allowed in prolog in Pega 7.1.7ID

Hi All,

I am trying to connect to REST service and getting below error 

 com.pega.pegarules.pub.services.InboundMappingException: Caught unexpected exception mapping inbound data: Invalid clipboard stream detected in module com.pega.pegarules.data.internal.clipboard.XMLStream.newStream(String, StorageStream). Reason: sax parse error: Content is not allowed in prolog. 

It is happening while i am mapping the response JSON to clipboard page ( Response_POST). If i try to map the response JSON to the text property (DefaultResponsePost in class structure mentioned below) on clipboard, I don't get this error and i can see valid JSON response in the text property.

Data structure is already in place as per the expected response.

Sample JSON Response : 

{"TransactionData":{"ErrorMessages":[{"ErrorCode":"102","ErrorMessageDetail":"Your ID is not authorized.","Type":"BusinessRuleValidation"}]}}

 

Class Structure :

 

Comp-FW-AppFW-Int-EndPointA ( Connect REST Applies to this class )

- Response (Comp-FW-AppFW-Int-Response)

           -DefaultResponsePost ( Text Property )

           -Response_POST ( Comp-FW-AppFW-Data-ResponsePOST)

                - ResponseID

                - TransactionData (Page of Another Class)

                    - ErrorMessages ( Page List of different Class)

                        - ErrorCode (Property )

                        - ErrorMessageDetail ( Property )

                        - Type ( Property )

Connect REST Response Mapped as

 

Map To : Clipboard

Key :  .Response.Response_POST

Data Integration
Moderation Team has archived post
Share this page LinkedIn