cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime Exception in Message Mapping

Former Member
0 Kudos

Hi..

Please let me know , when we'll get this kind of problems?

and how do trace it?

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

- <!-- Request Message Mapping

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_File1_MM_</SAP:P1>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>

<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>During the application mapping com/sap/xi/tf/_File1_MM_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Regards--Rambarki

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rambarki,

i hope there is a problem in giving namespace and message types. check whether you have given namespaces as

<ns1:Send1_MT xmlns:ns1="urn:Test_2_Sender_Files"> for the first file and

<ns1:Send2_MT xmlns:ns1="urn:Test_2_Sender_Files"> for second file.

check whether your both the files have this correct Message types and namespaces specifications.

Sudharshan

Former Member
0 Kudos

Yeah ..both message types are correct ..

I tested using test tab and pasted the source xml file only..!

Regards..rambarki

Former Member
0 Kudos

Hi,

Just to cross check whether two of your files looks like this

First file

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

<ns1:Send1_MT xmlns:ns1="urn:Test_2_Sender_Files">

- <details>

<BatchID>10000</BatchID>

<Name>uma</Name>

<SalesOrder>89888</SalesOrder>

<PurchaseOrder>fdsfds</PurchaseOrder>

</details>

</ns1:Send1_MT>

Second File:

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

<ns1:Send2_MT xmlns:ns1="urn:Test_2_Sender_Files">

- <details>

<BatchID />

<SONumber>cvvcv</SONumber>

<Loc>xvxcv</Loc>

<City>xvxcv</City>

<State>vxcv</State>

<Country>xvcxx</Country>

</details>

</ns1:Send2_MT>

Regards,

Sudharshan

Former Member
0 Kudos

Hi Sudharshan

First file is ok..but sencond file doen't have this tag

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

does this cause for getting problem?

this is the xml file after test in mapping i'm copied in source folder for process to get output..

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

-First File-

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

<ns0:Message1>

<ns1:Send1_MT xmlns:ns1="urn:Test_2_Sender_Files">

<details>

<BatchID>1111</BatchID>

<Name>abcd</Name>

<SalesOrder>2345</SalesOrder>

<PurchaseOrder>56456</PurchaseOrder>

</details>

</ns1:Send1_MT>

</ns0:Message1>

<ns0:Message2>.....(Second File)

<ns1:Send2_MT xmlns:ns1="urn:Test_2_Sender_Files">

<details>

<BatchID/>

<SONumber>fdgddgf</SONumber>

<Loc>dfgdd</Loc>

<City>dgfdgd</City>

<State>dgfdg</State>

<Country>dgdfg</Country>

</details>

</ns1:Send2_MT>

</ns0:Message2>

</ns0:Messages>

I'm putting this xml file into two source folders?

if this correct way? or can i add xml version tag to 2nd file and put the xml file into source directories?

Regards...Rambarki

Former Member
0 Kudos

Hi,

The way you have given the first file is wrong. please refer to my earlier reply and give the files in the similar manner.

The second xml also needs that

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

tag.

In the first file you have started with

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

<ns0:Message1> tags.There is no need for that because

as soon as you do multi mapping in BPM the Integration process will automatically put the two messages in the format given in the test tab. So you should not directly

copy and paste from that . Exact way of giving it is given in my previous reply. check that and let me Know.

For further clarifications see this SAP help

<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/content.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/content.htm</a>

Regards,

Sudharshan

Former Member
0 Kudos

Sudharshan,

I haven't modified any thing in that xml file..

after testing , i just copied source xml as it is..

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

<ns0:Message1>

the source xml showing above tags..i haven't added any thing that xml source..

may be i would wrong with my mapping? again i'll do mapping and let you know..!

still i have a doubt..how xml source showing xml version tag in second message?

becuse we combined the both messages and testing together..as of my knowledge BPM will generate one XML instance for source and target message(either it is having more than 1message)..so it'll generate one xml version tag..i think..but i'm not sure..please correct me if i'm wrong..

Regards..rambarki!

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

check ur message mapping in Integration Repository, you can test the message usnig the test tab.

cheers,

naveen

Former Member
0 Kudos

Check this...

Regards

Anand

Former Member
0 Kudos

Yes..

I have tested in design time using test tab and the same xml source message i have given source folder , it works fine..!

but I have done multimapping..I have two source files which will have common filed ..I correlated both in IP.

and receiver is one.

In mapping i have tested differently for each messages and those xml source files specified in two each communication channel.

Does this correct way to test these kind of multimapping?

Regards..Rambarki

Former Member
0 Kudos

Hi Rambarki,

Test your multimapping with both input messages together and see if the output message is as desired.

Regards

Anand

Former Member
0 Kudos

yeah Anand,

that could be better way..i tried already ..following paylaod i got as a response.

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

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

- <ns0:Message1>

- <ns1:Send1_MT xmlns:ns1="urn:Test_2_Sender_Files">

- <details>

<BatchID>10000</BatchID>

<Name>uma</Name>

<SalesOrder>89888</SalesOrder>

<PurchaseOrder>fdsfds</PurchaseOrder>

</details>

</ns1:Send1_MT>

</ns0:Message1>

- <ns0:Message2>

- <ns1:Send2_MT xmlns:ns1="urn:Test_2_Sender_Files">

- <details>

<BatchID />

<SONumber>cvvcv</SONumber>

<Loc>xvxcv</Loc>

<City>xvxcv</City>

<State>vxcv</State>

<Country>xvcxx</Country>

</details>

</ns1:Send2_MT>

</ns0:Message2>

</ns0:Messages>

But haven't seen ..target xml file in that folder?

in receiver CC ..i have configured target file folder and every thing done propery...

let me know where do i mistake ?

regards..rambarki

Former Member
0 Kudos

Hi Rambarki,

The XML message specified is in the previous post is source message(s) or target message of your multimapping ?

If it is source XML message you have specified then it is correct.

If it is target then you should have only one message as a output , but I can see two messages in the XML messae1 and message2.

Regards

Anand