cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PI 7.5 - Mapping failed in runtime. Value missing in queue context

former_member201275
Active Contributor
0 Likes
1,846

Hi,

I have a scenario REST -> PI -> RFC, when I test the following error is received:

For me though my mapping looks fine and also works in test mode:

Also the REST Sender is correct:

i've been trying for 3 weeks now to get this REST Service working :((((

Accepted Solutions (0)

Answers (6)

Answers (6)

former_member201275
Active Contributor
0 Likes

I cannot resolve this so i am giving up and closing the question. Thank you all for trying to help me. 😞

Bhargavakrishna
Active Contributor
0 Likes

Hi Glen,

In SOAP-UI, change the Media type from Application/JSON to Application/XML and try.

Get operation, retrieve a value from the URL by providing the respective GET Variable Name. In your case it is COMPANYID.

I suggest you to go through the below link and recheck the channel configuration once again.

https://answers.sap.com/questions/198848/how-to-configure-sender-rest-adapter-with-get-oper.html

https://blogs.sap.com/2018/07/17/rest-sender-adapter-get-and-post-examples/

Regards

Bhargava Krishna

Bhargavakrishna
Active Contributor
0 Likes

Hi Glen,

As per the screenshots, i could see you are just passing COMPANY ID instead of XML in the payload section.

If your source is not JSON, go to test tab of message mapping and manually give the company ID, click on src as shown in the below screenshot. It will generate XML, copy that and paste it in payload section and send test message.

Regards

Bhargava Krishna

former_member201275
Active Contributor
0 Likes

Hi Bhargava,

Thank you for your reply, your answers are always helpful!

I am new to REST services and also this SOAP test tool so I am not sure how to enter the XML in the payload. I have generated the XML but can only enter this when using method 'POST'?

sc24.png

former_member207703
Active Participant
0 Likes

Hi,

Please share your JSON sample data and DT that you created.

former_member201275
Active Contributor
0 Likes

Hi Anoop,

Thank you for replying.

I have no JSON data, I am running from the SOAP test tool:

sc23.png

Also I haven't created a DT, i have imported an RFC and created 2 SI's, 2 MM's, and 1 OM:

sc1.png

former_member207703
Active Participant
0 Likes

Hi,

Sorry, I didn't notice that you are just sending a query param in URL. Please reffer this link https://blogs.sap.com/2018/07/17/rest-sender-adapter-get-and-post-examples/. You need to write a UDF to retrieve its value in Mapping runtime.

Regards,

Anoop Kr. Rai

Bhargavakrishna
Active Contributor
0 Likes

Hi Glen,

Did you tried by sending test message from Test tab in configuration and monitoring page?

If the message is success, then we need to recheck the REST communication channel configuration.

In soap-ui, for GET method

Method = ‘GET’
Endpoint = ‘http://{host}:{port}/RESTAdapter’
Resource = Endpoint value specified above in communication channel plus the URL pattern.

Parameter = Company ID

Example

In SOAP-UI pass the company ID in the parameters tab, it should work.

I suggest you to refer the below link and check the communication channel configurations.

https://blogs.sap.com/2018/07/17/rest-sender-adapter-get-and-post-examples/

Regards

Bhargava Krishna

former_member201275
Active Contributor
0 Likes

Tried testing from the 'configuration and monitoring' page and it also doesn't work. 😞

mtest.png

Ryan-Crosby
Active Contributor
0 Likes

Hi Glen,

The message indicates that the mandatory field COMPANYID is missing in the payload.

Regards,

Ryan Crosby

former_member201275
Active Contributor
0 Likes

Strange because i have the company code in the parameter. 😞

resttest2.png