cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping error : strange problem

Former Member
0 Kudos

Hi all,

I am getting the mapping error in runtime.

I have tested in message mapping. It is successful there.

But I got the strange thing. When I change from design to test page and upload my XML file(from SXMB_MONI), all nodes in my structure are red! Now If I test the message mapping , I am getting the mapping error in SXMB_MONI.

May someone has a idea what's going wrong...

Thanks & Regards,

Sekhar.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sekhar,

If you test using an XML message saved from the sxmb_moni, you have to add 2 namespace tags around the content of the message. Something like this:


<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
  <ns0:Message1>
...message...
  </ns0:Message1>
</ns0:Messages>

This is usually done internally by SAP XI, but in the test tool it is not..

Hope this helps!

(additional hint: First click "create instance" in the test tool. Check out the first two namespaces, usually messages and message1, and copy these in your test file. That should do the trick.:-) )

Regards,

Yordy

Message was edited by: Yordy Minderhoud

Shabarish_Nair
Active Contributor
0 Kudos

Shekar,

try the editing of the XSD as per our tele conv. Also do post both the XML here so that others can also suggest a solution if it doesnt work as we discussed Its at times 'trial and error' that makes things happen !!!

Former Member
0 Kudos

Hi Vijay,

Thanks for your help.It's working now.I have changed the XSD as per our discussion.I have removed the namespace there.

Thanks for all the replies......

Shabarish_Nair
Active Contributor
0 Kudos

'trial and error'

Well hope you have a nice time forth working with the iway adapter !!!

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Looks like you are missing the ns0: namespace while trying to test the xml in the repository.

Also make sure that the extra "-" that appears in the xml structure in sxmb_moni are removed before testing.

Regards,

Smitha.

Former Member
0 Kudos

Hi Sekhar,

The XML you are getting in runtime does not match the expected message type for your mapping.

Check the namespace, element names and so on.

Cheers,

Ofer

Shabarish_Nair
Active Contributor
0 Kudos

in the test tab manually fill the data .. and then save the XML source ...

then compare this with the XML file you have ...

there has to be a diff.