on 02-23-2023 9:04 AM
hi All,
I am trying to post data to OData service on SAP backend system using OData receiver Adapter in a SAP CPI Integration flow. I get the error "com.sap.it.rt.adapter.http.api.exception.HttpResponseException: An internal server error occured: Request Payload Parsing Failed for one of the reason: (1) Either the OData metadata content available in the server is outdated OR (2) The request payload seems to be incorrect. Error Details : Entity Set Shipment not found in the edmx.."
What could be the reason for the same?
The incoming payload is in JSON format which is converted XML in the flow, and a XSLT mapping is used to remove the root node added during conversion. the generated XML is then fed to OData adapter.
We have tested the payload in gateway and we get '201' response.
The XML payload being sent to OData adpater-
<?xml version="1.0" encoding="UTF-8"?><Shipment>Z</Shipment><shipperRefDocuments><docId>00</docId><shipment_id>bkk</shipment_id><docType_code>73</docType_code></shipperRefDocuments><shipperRefDocuments><docId>009</docId><shipment_id>bkkj</shipment_id><docType_code>73</docType_code></shipperRefDocuments><eta>2023-03-20T15:21:31Z</eta><actualTechnicalTimestamp>2023-02-15T15:21:37.132Z</actualTechnicalTimestamp><logicalSystem>C</logicalSystem><transportationMode_code>01</transportationMode_code>
JSON file expected at backend SAP system
{
"Shipment":"Z",
"shipperRefDocuments":[
{
"docId":"00",
"shipment_id":"bkk",
"docType_code":"73"
},
{
"docId":"009",
"shipment_id":"bkkj",
"docType_code":"73"
}
],
"eta":"2023-03-20T15:21:31Z",
"actualTechnicalTimestamp":"2023-02-15T15:21:37.132Z",
"logicalSystem":"C",
"transportationMode_code":"01"
}
Integration flow - screenshot
Any input is much appreciated.
Hi Smitha,
The XML payload that you are sending to ODATA adapter does not have the root tag.
Create XSD structure from EDMX and check the required root tag name.
Use the same root tag name while sending data to ODATA adapter.
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
11 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.