on 2018 Dec 11 3:04 PM
Hello Experts,
When I am creating a interface from 3rd party to C4C (ODATA v2) service in CPI in JSON format. There are standard ODATA JSON format provided by SAP. Using that I am trying to create a customer in C4C. Passed the JSON structure in the content modifier and used a request reply to hit odata IndividualCustomerCollection service at C4C.
I am getting an error:
com.sap.gateway.core.ip.component.odata.exception.OsciException: 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 : 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)
Data in content modifier:
{"CustomerABCClassificationCode":"A","Phone":"+1 888-888-88","Email":"jane.green@mail.con","Fax":"+1 0012346001234","City":"Greenville","CountryCode":"US","HouseNumber":"1","Street":"Greenway Drive","StreetPostalCode":"34001","RoleCode":"CRM000","GenderCode":"2","LanguageCode":"EN","LastName":"Green","TitleCode":"0001","FirstName":"Jane","StateCode":"AZ"}
Is JSON format is not allowed hit ODATA via CPI? Can't use a standard way for this ? we need to use only enable batch processing to achieve this ?
Waiting for the reply. Thanks
Hi Raju,
you could use a HTTP adapter, if you need to use JSON format.
Best regards
Jürgen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks for the quick reply..
ODATAv2 service can also be used in the HTTP adapter? How both are differentiated? As SAP is deprecating ODATA v2 and A2X (SOAP-Sync) service. Earlier it is SOAP to SOAP call, So we preferred to make both source and target as ODATA call. In this case there may be no change at CPI side. Any suggestions on this?
is that Anyone find out the solution for this
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 : 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)
User | Count |
---|---|
67 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.