cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping runtime Exception

Former Member
0 Kudos

I have tested my mapping in IR, it is working good. Problem comes it is receving data from sender system.

I have checked the sender side data type and Iam receving the data properly, once the data reaches XI, it could not map it to target structure.

In Moni, it showing

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Request Message Mapping

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_msgMap_R3_clarity_res_</SAP:P1>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>

<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_msgMap_R3_clarity_res_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>

Root Cause: com.sap.aii.mappingtool.tf3.IllegalInstanceException: Cannot produce target element /NikuDataBus/Resources/Resource[6]/OBSAssocs/OBSAssoc/unitPath. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:286) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at

Iam getting the below message in Runtime Work bench

The XML page cannot be displayed

Cannot view XML input using style sheet. Please correct the error and then click the Refresh <javascript:location.reload()> button, or try again later.

________________________________

XML document must have a top level element. Error processing resource

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Viswanath,

This type error comes when ever payload having wrong data (or) any extra fields (or) any special chacters included, its could not mapped to target structure.

Or Check u have doing transformation correctly.

check the ur payload having any wrong.

take the payload and check Altova XML SPY, its easily find out if data has wrong.

Regards,

Skumar

Answers (5)

Answers (5)

Former Member
0 Kudos

Dear Viswanath,

Plz copy the xml file when you finish the testing in Message Mapping. Please do take care while copying the xml file at src.

Make this a your source file then you wont get any errors.

when you open the xml file you are getting the error as:

The XML page cannot be displayed

Cannot view XML input using style sheet. Please correct the error and then click the Refresh <javascript:location.reload()> button, or try again later.

Please go to View--> Source then check the XML file is same as the one in the Message Mapping source. There will be definately errors in your source structure.

So take care when you copy the XML from Message Mapping

Best Regards

Praveen

former_member190389
Active Contributor
0 Kudos

Is the file being picked up from FTP.

if so see that the file gets uploaded completely before XI processes it.

Many a times it happens that XI picks up the half uploaded file and so all data does not go for processing.

For this ensure that the time for polling is more than that for uploading.

Former Member
0 Kudos

Hi,

This error occurs due to erroneous XML formatting. Check your mapping program and ensure that you supply valid input data.

Your XML should have a top level element. i.e. all elements must be under a single parent node, say the node with the name of your message type. XML should have a structure as per below -

<Message_type>
   <Node1>
      <Subnode1>
      ....
      ....
      </Submode1>
   ....
   ....
   </Node1>
   <Node2>
   ....
   ....
   </Node2>
....
....
</Message_type>

Hope this helps.

Regards,

Riyaz

moorthy
Active Contributor
0 Kudos

Check the input data and input structure are same. and check all the fields are correctly mapped.

looks like target structure is not mapped correctly inline to the input structure.

Rgds, Moorthy

Former Member
0 Kudos

Hi Viswanath,

Go to SXMB_MONI > Inbound Message > Payload.

Right click on the displayed payload message.

Click view source. An XML message will appear in a notepad screen. Copy the whole message.

Paste in the Test Tab of message mapping in IR. Execute. Check if it fails?

Alternatively , you can compare the xml structure coming in the Moni payload and the xml structure

you get from the message mapping source tab by manually copying to a notepad and comparing the difference.

Hope it solves.

-Regards,

Shamly

Former Member
0 Kudos

hi

some prblm in generating

/NikuDataBus/Resources/Resource[6]/OBSAssocs/OBSAssoc/unitPath

Test the mapping in IR using the payload from sxi_monitor or rwb.

If it is working, then the problem must be due to Cache Updates.

Activate the mapping again and Check the cache notifications.

rgds,

Arun