cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping error: RuntimeException in Message-Mapping transformation

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

Error shows some of the mandatory filed in the target side is not mapped or not passed at runtime.

Check your input.

And also check 1-1,1-Unbounded (Target Side Structure) you passed the value or not.

*Reward Points If Helpful*

Regards,

Prakasu

Former Member
0 Kudos

Hi Prakasu,

As structure are exactly same, I have done 1:1 mapping. So all the fields in target structure are mapped, so no field has beeen left.

In this structure, I do not have any 1:n relation. So 1:1 mapping should be fine.

Apart from this could teher be any other reason.

Regards

Rajiv

Former Member
0 Kudos

Hi,

Then the problem in your FCC conversion.

Go to Runtime workbench.

Choose Component Monitoring.

Select communication channel monitoring.select your commnuication.Get payload and validate with your

Structure.

can you post your FCC parameters for your above structure??

Regards,

Prakasu

Former Member
0 Kudos

go to test tab in mapping

input the values amnually and get the xml

compare this xml with the xml from monitor and c if both coincide

Former Member
0 Kudos

Hi Arvind,

I tried this, both XML's produced are matching in terms of fields and hierarchy.

Am really lost, why am I getting this error.

Any plausible reasons ?

Regards

Shirin

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Problem solved. Culprit was the Namespace I had provided in the FCC recordset namesapce. If I remove the namespace it workks fine, so mapping was OK.

Thanks all for the helpful hints.

Regards

Shirin

Former Member
0 Kudos

Hi,

Check your mapping i think you have done some mistake in mapping.

Try to test your mapping .

Because i got the same error, i tried to correct my mapping program, then it worked fine.

Thanks

Vikranth

Former Member
0 Kudos

go to monitor and takes the source payload (view source) and test using that in the mapping editor and c if u get the target payload

Former Member
0 Kudos

Hi Aravind,

As I mentioned in my post, I have already done that and it is giving me error.

So I know something is wrong with mapping, but dont know what??

(Mapping seems so simple as structures are same but dont know why this error).

Regards

Shirin

Former Member
0 Kudos

can u post that error

also check if ur input is valid. i mean contains value for all elements as per the occurence in the data type