Skip to Content
0
Former Member
May 29, 2008 at 09:25 AM

Message Mapping error: RuntimeException in Message-Mapping transformation

403 Views

Hi,

Being new to XI, I am struglling to sort out a basic mapping error. Appreciate if you could help out.

Its an File->XI->R/3 scenario.

My FCC successfully reads the File and creates an XML. However this XML is not transferred to the target XML structure which is exactly same except the root element name is different at top.

I tried various forum tips but I still am getting the error.

( When I Test the Message mapping in test mode..it seems fine, however if I copy the XML from SXMB_MONI, it then throws the above error)

I looked at the MM in text mode: below is the extract


/ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER= 

/ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/SOURCE=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/SOURCE=
 /ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/DESTINATION=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/DESTINATION=
 /ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/MESSAGE_ID=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/MESSAGE_ID=

As seen the name space in both starts with nS0 and end of each line has '=' sign. Is that ok.

I have run out of options and dont know , whats the problem. Please help.

The target and Source XML structures are exactly same as shown below

MT_REQUEST                                 MT_REQUEST_TO_SAP
   |__MSG_HEADER                            |__MSG_HEADER   
     |__SOURCE                                |__SOURCE
     |__DESTINATION                           |__DESTINATION
     |__MESSAGE_ID                            |__MESSAGE_ID

And the SXMB_MONI Trace shows the following error

<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: 
Cannot produce target element /ns0:MT_REQUEST_TO_SAP. 
Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at ..

Thanks

Shirin

Edited by: Shirin K on May 29, 2008 10:29 AM