cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI Odata adapter error 'WstxUnexpectedCharException'

Muska18
Discoverer
0 Kudos
1,033

Hello SAPians,

While trying to connect with S4Hana Public cloud through Sales Order Odata v2 API , I'm getting the WstxUnexpectedCharException error ,attached the image below.

Muska18_0-1711702116993.png

Our odata API url - https://XXXX/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder.

Muska18_1-1711702290221.png

I am stuck here now for a few days trying, googling, checking help documentation, but there is no clear description/explanation available.

Can someone help me here . 

Regards,

Muskan

SAP Integration Suite  OData API  SAP BTP, ABAP environment SAP S/4HANA Cloud Public Edition 

Ryan-Crosby
Active Contributor
0 Kudos
Check the logs to see the URL that is being invoked because it indicates an incorrect & character at position 128.
Vivek88
Discoverer
0 Kudos
Have you solved this? if yes, please let me know wat u did?
View Entire Topic
Dinu
Contributor
0 Kudos

You have to create a communication user and use that for the integration. You can find several resources in the community and in other SAP assets for this.

SeanGibbs
Discoverer
0 Kudos
Is this confirmed to be the issue? I am getting the same error in a different scenario but I am having the authentication working.
Dinu
Contributor
0 Kudos
The error is becasue the response is not valid xml. The usual cause is authentication failure. In this case the response code is 200 with html content.