cancel
Showing results for 
Search instead for 
Did you mean: 

RuntimeException in Message-Mapping transformatio

Former Member
0 Kudos

Hi all,

My XI server is successfully picking up a comma separated file from an FTP server and generating the corresponding XML:

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

<ns:CondRec_MT xmlns:ns="http://namespace-ConditionRecords">

<Recordset>

<ConditionRecord>

<Usage>A</Usage>

<Table>018</Table>

<Application>M</Application>

<ConditionType>PB00</ConditionType>

<VarKey>00000039301300-340 2 0</VarKey>

<Material>1300-340</Material>

<Vendor>3930</Vendor>

<PurchasingOrg>2</PurchasingOrg>

<Infotype>0</Infotype>

<InfoRecord>5300003218</InfoRecord>

<CondRecordNo>0000020727</CondRecordNo>

<ValidFrom>30.05.2006</ValidFrom>

<ValidTo>31.12.9999</ValidTo>

<ScaleType>A</ScaleType>

<CalculatType>C</CalculatType>

<KBETR>15.00</KBETR>

<CondCurrency>USD</CondCurrency>

<CondItemIndex>01</CondItemIndex>

<RelToPricing>X</RelToPricing>

</ConditionRecord>

</Recordset>

</ns:CondRec_MT>

But nothing is getting submitted to the receiver adapter.

The error in SXMB_MONI reads as follows:

<?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/_file2file_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/_file2file_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>

I am using a simple one to one mapping(i.e the same msg type is being used for both the outbound and inbound interface).

Pls can anybody guide me as to what can be the probable error.

Thanks in advance

Regards

Neetu

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Jithesh,

I followed the link provided by you but it is still not working.

I am facing the same problem.

Pls help

Regards

Neetu

Former Member
0 Kudos

Hi Michal

Yes I have already used

ignoreRecordsetName = true

As mentioned in the link provided by you, but the <recordset> tag still remains in the in the generated XML.

I do not understand where i am going wrong.

Pls guide.

Regards,

Neetu

Former Member
0 Kudos

Hi,

chk out this thread with the same issue

regards

jithesh

Former Member
0 Kudos

Hi all,

Thanks for ur prompt responses.

I followed the blog and performed testing of the mapping.

The XML with which i tried was as follows:

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

<ns:CondRec_MT xmlns:ns="http://namespace-ConditionRecords">

<Recordset>

<ConditionRecord>

<Usage>A</Usage>

<Table>018</Table>

<Application>M</Application>

<ConditionType>PB00</ConditionType>

<VarKey>00000039301300-340 2 0</VarKey>

<Material>1300-340</Material>

<Vendor>3930</Vendor>

<PurchasingOrg>2</PurchasingOrg>

<Infotype>0</Infotype>

<InfoRecord>5300003218</InfoRecord>

<CondRecordNo>0000020727</CondRecordNo>

<ValidFrom>30.05.2006</ValidFrom>

<ValidTo>31.12.9999</ValidTo>

<ScaleType>A</ScaleType>

<CalculatType>C</CalculatType>

<KBETR>15.00</KBETR>

<CondCurrency>USD</CondCurrency>

<CondItemIndex>01</CondItemIndex>

<RelToPricing>X</RelToPricing>

</ConditionRecord>

</Recordset>

</ns:CondRec_MT>

this gave the following error:

Cannot produce target element /ns:CondRec_MT/ConditionRecord. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

But when i removed the tag 'RECORDSET', it works fine and output gets genersted.

My datatype has no such field called recordset.

The adapter generates it on its on.

How do i solve this issue.

Regards

Neetu

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

have you tried using:

ignoreRecordsetName = true?

from:

http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

former_member187339
Active Contributor
0 Kudos

Hi,

Does your receiver structure have all the fields(eg: Recordset,conditional Record etc...) as generated after File Content Conversion?

Test your mapping in the test tab...

Regards

Suraj

MichalKrawczyk
Active Contributor
0 Kudos

Hi Neetu,

have a look at my weblog:

/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

to see how you can/should test your scenario

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

moorthy
Active Contributor
0 Kudos

Hi,

Go to SXMB_MONI and get the source xml from there and test it in the IR->Mapping Editor .. Check are you getting any error..

Probably some of the fields/nodes are not mapped correctly..

This may be first check , you need to do.

Are you using any user defined functions. If so is there any runtime excesptions for that..

Also check the runtime values in the Display queue in the mapping editor.

Regards,

Moorthy