cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member

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

former_member673907
Discoverer
0 Kudos

could you share how did you fix it?

former_member308595
Participant
0 Kudos

Hi Vibhu ,

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

Best , Shiva