Skip to Content
0

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

Mar 12 at 06:00 AM

52

avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

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

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

Share
10 |10000 characters needed characters left characters exceeded
G SHIVA Mar 12 at 09:25 AM
0

Hi Vibhu ,

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

Best , Shiva

Share
10 |10000 characters needed characters left characters exceeded