cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime exception occurred during application mapping in SAP PI

Former Member

Hi Team,

Please help me regarding this issue is very urgent:

Runtime Error in configuration part:

Here i test the XML message in Receiver Determintion:

Below i am getting error:

Runtime exception occurred during application mapping com/sap/xi/tf/_MaterialStockUpdate_Multi_AllPlant~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:The processing instruction target matching "[xX][mM][lL]" is not allowed

SXMB_MONI:

I am getting below error:

Runtime exception occurred during application mapping

Accepted Solutions (1)

Accepted Solutions (1)

abhradeepbasu
Participant
0 Kudos

Hi Sagarika,

This error comes in the structure of the XML message is not proper.

Please check the input payload structure format which you receive, if it is in correct format or not.

Check if there is any leading spaces before the first line.

/A.B

Former Member
0 Kudos

Hi Abhradeep,

Please this is urgent issue.

Please suggest me how to proceed further.

I sent link regarding XML structure.

Answers (3)

Answers (3)

iaki_vila
Active Contributor
0 Kudos

Hi Sagarika,

The error can be in the target header format with whitespances, with a junk character or similar. Check more possibilities here:

java - XSL:The processing instruction target matching "[xX][mM][lL]" is not allowe...

Regards,

former_member312864
Active Participant
0 Kudos

Hi,

Could you brief us about scenario like either it is file to idoc or jdbc to rfc something like that.

Regards,

Former Member
0 Kudos

Hi saroj,

scenario is ECC to HIS

sateesh_adma
Participant
0 Kudos

Hi Sagarika,

This error occurs when mandatory source fields not populated .

Try to test end to end scenario and also check for formation of xml structure.

Check this one too http://scn.sap.com/thread/1832286

Thanks,

Sateesh

Former Member
0 Kudos

Hi Sateesh,

Mandatory field also its populated and mapping also done.

I removed the space before that XML Payload Structure,Again it is showing same error.


abhradeepbasu
Participant
0 Kudos

Hi Sagarika,

Can you send us the xml file so that we can have a look into this?

/A.B

Former Member
0 Kudos

Hi Abhradeep,

Can you check below attchment for XML structure.

former_member192343
Active Contributor
0 Kudos

remove last line

abhradeepbasu
Participant
0 Kudos

Hi Sagarika,

Your Interface Name along with the namespace are not defiled in the xml. Please include those under

line:

<?xml version="1.0" encoding="utf-8" ?>

------here you have to include your interface name with the namespace like below:-

<n0:MaterialStockUpdate_ECC_Multi_AllPlants_N

xmlns:n0=xxxxxxxxxx

xmlns:prx="urn:sap.com:proxy:xxxxx">

And also open the payload in a text editor and remove all '-'.

/A.B

Former Member
0 Kudos

Hi,

I added everything in XML interface name and namespace also.

Again i got same error.


Former Member
0 Kudos

Hi,

Testing in configuration:

see above screen what is the error i am getting.

abhradeepbasu
Participant
0 Kudos

Hi Sagarika,

Looks like a Mapping issue now.

What kind of mapping you are using? XSLT/Graphical etc?

Can you try to test from your mapping toolbar --> test tab and see for which field the error occurred also send the detailed error so that we also can look into.

If it is a xslt mapping, you may send the xsl file as well.

/A.B

Former Member
0 Kudos

Hi,

This is graphical mapping.

I already tested manually it is executed succesfully.

For your reference below screen shot for manual test in message mapping.

former_member192343
Active Contributor
0 Kudos

See my last answer in another thread, you should use EqualS function instead of equals

former_member192343
Active Contributor
0 Kudos

I advice you to test with same xml as you attached

abhradeepbasu
Participant
0 Kudos

Hi Sagarika,

So for which field you are encountering the error. Can you please send us the error in details. We can not see the error in details from your screenshot.

/A.B

Former Member
0 Kudos

Hi,

Actually my problem is what i am getting,I am trying to test the data in runtime workbench and configuration part copied from inbound payload XML structure .

I already sent the screenshots of above errors,

Configuartion:

Runtime workbench:

This the error i am getting below in "Runtime Workbench"

Error While Sending Message: Additional error text from response: com.sap.engine.interfaces.messaging.api.exception.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=MHEPL_Sandbox_100;TS=;AN=MaterialStockUpdate_Multi_AllPlants_N;ANS=http://www.manipalhospitals.com/his/mm; in the current context [Unknown].


abhradeepbasu
Participant
0 Kudos

Hi,

Make sure you trigger it from RWB->Integration Engine->Test Message.

Even if you face the same issue, probably you may need to do cache refresh but at the same time when you are testing it from the test tool, it shows a mapping issue.

Can you send the error for which field it is occurring?

/A.B

Former Member
0 Kudos

Hi,

I am trigger from RWB-> Adapter engine-> test message.

I am given these details are in "RWB".

I am checking Here payload XML structure test message .

abhradeepbasu
Participant
0 Kudos

Sagarika,

Test it from RWB-> Integration Engine MPS -> test message.

/A.B

Former Member
0 Kudos

Now i tried both the conditions .

RWB-> Integration Engine MPS -> test message.

RWB-> Adapter engine-> test message.

Both are showing "message sent"

Now i am not getting any error in "RWB".

Still i am getting error message in "SXMB_MONI"

Please try to resolve this issue.

Error: Runtime exception occurred during application mapping

Former Member
0 Kudos

hi,

I want to modify screen shots from my post.how to do that please help me.

former_member192343
Active Contributor
0 Kudos

Exactly this error you will always get while you send number 4 to boolean function in mapping.

Former Member
0 Kudos

Hi,

Delete option is not coming for all the posts.

some posts only it is showing delete option.

please help me.


abhradeepbasu
Participant
0 Kudos

True, probably if somebody replied to your post then delete option will not be there. can u connect me via gmail->abhradeep

abhradeepbasu
Participant
0 Kudos

Hi Sagarika,

Use "EqualsA" function which is available under Arithmetic section.

Hope your problem will be resolved.

If it resolved then please close the thread.

/A.B