Symptom
OData Receiver Adapter fails when processing incoming XML payload
When receiving a non XML payload (JSON, for example) to make a POST operation, the OData Receiver Adapter throws the error below:
Error Details : only whitespace content allowed before start tag and not { (position: START_DOCUMENT seen {... @1:1) , org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not { (position: START_DOCUMENT seen {... @1:1)
During a GET operation, when the Query Options contains $format=JSON, it throws the error below:
com.sap.gateway.core.ip.component.odata.exception.OsciException: Caused by:com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '{' (code 123) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] in EntitySet JobApplicationStatusAn exception of type 'WstxUnexpectedCharException' occurred.
Read more...
Environment
SAP Cloud Integration
SAP Integration Suite
Product
Keywords
SAP HANA Cloud Integration, SAP HCI, SAP CPI, SCPI, SFSF, tenant, iFlow, Integration Flow, $format=JSON, success factors, api, OData V2 , KBA , LOD-HCI-PI-CON-OD , OData Adapters , LOD-HCI-PI-RT , Integration Runtime , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.