cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in Multi mapping

Former Member
0 Kudos

Hi experts,

we have a scenario need to send an EDI text file to 2 different receivers. We are receving the EDI file using the JMS adapter as Sender and File/FTP adapter as a receiver.

We are using Multi mapping (includes Java mapping and Graphical ) to send the Messages to receivers, While sending we are getting the Error In Moni as "Error in creating Multi XML Document".

In Java Mapping we are Converting the EDI text to EDI xml with <ns0:Messages1> and the output of Java mapping to Graphical Mapping,

While testing in Interface Mapping Test it works fine.

Please provide your Valuable inputs.

Thanks,

Ramg

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ram,

Please check in mapping program whether you can see Messages, message1 and message2 tags.

-Tanaya.

Answers (5)

Answers (5)

Former Member
0 Kudos

Ramkumar,

Looks like the target structure you have and the mapping runtime are not matching. the structure is not being generated. check and try to match the xml structures. this is a mapping issue.

Regards,

Pavan

Former Member
0 Kudos

Finally got it!! Using Adapter module (Message transform bean) in the JMS sender for converting the text file to XML message and performing the mapping!

Thanks all for your answers!

Ramg.

Former Member
0 Kudos

Hi,

"Error in creating Multi XML Document".. so its the prblm in mapping...

Can u please give us the what exactly the output u r getting, when u test in Message mapping or operation mapping.

It should contain Messages,Message1 tag correctly...

No element called <ns0:Messages1>...

So let us know the output u r getting in mapping.. so that some 1 here can figureout the prblm..

Babu

Former Member
0 Kudos

HI

The below is the output im getting from Interface mapping

=====

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

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1><ns2:MT_Req xmlns:ns2="http://test.com/CommonServices"><DataConversionArea><SapQtySign>P</SapQtySign><Filler> </Filler></DataConversionArea><DataElement><RspShipToLoc>000000</RspShipToLoc><Filler> </Filler></DataElement></ns2:MT_Req></ns0:Message1>

<ns0:Message2><ns2:MT_In_Req xmlns:ns2="http://test.com/CommonServices"><DataElements><ProdSchedNbr> </ProdSchedNbr><Filler>0030</Filler></DataElements></ns2:MT_In_Req></ns0:Message2></ns0:Messages>

=====

Thanks

Ramg

Former Member
0 Kudos

Hi Ram,

In java mapping as you said you are adding the tag <ns0:Messages1> , but in runtime PI might be

trying to add header/XML tags again and There is a possibility of multimple XLM declaration (one in java

mapping and other by PI runtime).that might be the reason of multiple XML document found.

Can you please check in your javamapping logic.

As the interface mapping works fine , then end to end should work .But wondering why its not,something to do with PI Runtime.

Regards,

Srinivas

Former Member
0 Kudos

Hi Ram,

It can most probably due to error in Java mapping.Were you able to get the output in Interface Mapping.

One suggestion will be to uncheck the check box maintain order at runtime in Receiver determination.

It might Help you.

please try

Former Member
0 Kudos

Hi Ram,

I am not sure but can you use multi mapping to send to 2 different receiver? I am doubtful for same.

As far as I understand, multi mapping can not spilt messages for different receiver hence you will be gettting this error.

You should create 2 different mapping for different receivers.

Regards

Sushil

Former Member
0 Kudos

Hi Sushil,

Thanks for the reply.

we are using the same receiver but two different message. sorry for the confusion.

Thanks

Ramg