cancel
Showing results for 
Search instead for 
Did you mean: 

File Content Conversion using Sender to Mapping

former_member248712
Active Participant
0 Kudos

I have a sender that is mapping a flat file CSV and it maps it correctly, but when it is being send to the message mapping program it fails on the input parse with an exception:

Mapping transformation: Cannot produce target element /ns0:G8328_09B_Document/ns0:G8328_09BMessageType. Check xml instance is valid for source xsd

I am using an external definition as my input for the message mapping if I import the messge from the monitor payload and change the ns: to ns0: in the test tool it maps find. Can anyone tell me how to get the File adapter to generated ns0: instead of ns: in the input message coming out of the adapter.

Payload from the file adpater:

<ns:G8328_09B_Document xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface">

- <ns:G8320_09BMessageType xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface">

- <G8328_09B>

<VKORG>1000</VKORG>

<AUART>ZG2</AUART>

<XBLNR>0061623534</XBLNR>

<VBELN>0010790092</VBELN>

<NETWR>178.99</NETWR>

<WAERK>USD</WAERK>

<VBTYP>O</VBTYP>

</G8328_09B>

- <G8328_09B>

<VKORG>1000</VKORG>

<AUART>ZRE</AUART>

<XBLNR>0061651916</XBLNR>

<VBELN>0010790093</VBELN>

<NETWR>37.37</NETWR>

<WAERK>USD</WAERK>

<VBTYP>O</VBTYP>

</G8328_09B>

</ns:G8320_09BMessageType>

</ns:G8328_09B_Document>

Payload gernerated from the Test tool:

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

<ns0:G8328_09B_Document xmlns:ns0="http://nike.com/DEYTEL/RFCToJDBCInterface">

<ns0:G8328_09BMessageType>

<G8328_09B>

<VKORG>1000</VKORG>

<AUART>ZG2</AUART>

<XBLNR>0061623534</XBLNR>

<VBELN>0010790092</VBELN>

<NETWR>178.99</NETWR>

<WAERK>USD</WAERK>

<VBTYP>O</VBTYP>

</G8328_09B>

- <G8328_09B>

<VKORG>1000</VKORG>

<AUART>ZRE</AUART>

<XBLNR>0061651916</XBLNR>

<VBELN>0010790093</VBELN>

<NETWR>37.37</NETWR>

<WAERK>USD</WAERK>

<VBTYP>O</VBTYP>

</G8328_09B>

</ns0:G8328_09BMessageType>

</ns0:G8328_09B_Document>

The test tool mapping I remove the ns and replaced it with ns0.

Thanks for any help.

Arjun.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Arjun,

A few points....

1. Namespace prefix being different does not cause mapping errors.

2. In your case, note the name space <b>xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface"</b> missing in XML generated

using IR.

3. The difference in Msg type names. After FCC it is G832<b>0</b>_09BMessageType where as in test tool it is G832<b>8</b>_09BMessageType.

Correct points 2 and 3, your issue will be solved.

Regards,

Jai Shankar