Skip to Content
avatar image
Former Member

SAP PI REST Adapter Error : Missing value at character 0 of

Hi

Anyone faced this error in REST receiver adapter ? I have SAP --> PI --> REST synchronous scenario and for every successful message, REST service returns a 200 OK with empty payload. I am handling it in Error Handling Tab by giving a custom payload, however PI throws MP: exception caught with cause com.sap.aii.adapter.rest.ejb.parse.InvalidJSonContent: Invalid JSON message content used; Message: "Missing value. at character 0 of "

Any pointers on how to handle empty payload with 200 OK ?

Error:

REST Receiver adapter config.

Error Handling :


Using XML message content

Using JSON Payload

capture.png (13.7 kB)
capture2.png (10.0 kB)
capture3.png (12.2 kB)
untitled.png (16.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 13 at 09:53 PM

    This is resolved. Looks like custom payload will not work when you have response JSON to XML conversion in the channel (or possibly I could't make it to work). Nevertheless, I followed Maximilian's blog and added a plain text to XML conversion code in the mapping.

    Thanks,

    Vibhu

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 12 at 09:25 AM

    Hi Vibhu ,

    Use element name :/ns0 and element namespace : /ns0 is REST channel .

    Best , Shiva

    Add comment
    10|10000 characters needed characters exceeded