cancel
Showing results for 
Search instead for 
Did you mean: 

Message Transfomation error in Monitor

Former Member
0 Kudos

Hi All,

I have a sample Scenario FILE - FILE which maps one message to another message.

The data-types used in both the messages are same.

I get a system error in message transformation when I look into the monitor.

Error message:

<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_CustomerMessMapping_</Trace>

<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns:CustomerResponseMessage/customers. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:291)

please help me with any clues.

I mapped datatype source name to target name.

XMl source root to target root.

elements source to elements target.

Thanks,

Meher

Accepted Solutions (1)

Accepted Solutions (1)

former_member206604
Active Contributor
0 Kudos

Hi,

Get the input payload from SXMB_MONI and sae it as a XML file. In the mapping test tab import it and test the same.

Thanks,

Prakash

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

Exception message says that it is a mapping issue. You need to check your mapping

"/ns:CustomerResponseMessage/customers"

It shows error while creating customers node in target . Please chcek customers node mapping in target message type.

You can test this using by using the payload (source data) of the mapping from SXMB_MONI transaction.

Nanda

Former Member
0 Kudos

Hi Mehercharan,

It is a clear case of mapping exception. As Prakash had already mentioned, take ur XML from Moni and test it in your message mapping. You might need to see the mappings of the root nodes in particular, and whether the namespace is causing a problem.

cheers,

Prashanth

Former Member
0 Kudos

Thanks guys.

I did not include the namespace in the xml document.

Regards,

Meher