on 11-16-2006 12:50 PM
I am getting following error in runtime analysis while i am trying to receive data through file adapter :
com.sap.aii.utilxi.misc.api.BaseRuntimeExceptio
thrown during application mapping
com/sap/xi/tf/_abb2_mm_: RuntimeException in
Message-Mapping transformatio~
I sending csv file format from source. I got inbound payload as follows:
<b><?xml version="1.0" encoding="utf-8" ?>
- <ns:sr_mt xmlns:ns="http://abb2.com">
- <STUDENTS>
- <STUDENT>
<NAME>karhtik</NAME>
</STUDENT>
- <STUDENT>
<NAME>ece</NAME>
</STUDENT>
- <STUDENT>
<NAME>100</NAME>
</STUDENT>
</STUDENTS>
</ns:sr_mt></b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The mapping test probably works fine, because at that point, you really should have an XML document.
The problem is the content conversion inside the file adapter.
Here, a csv-like file is needed, but the thread opener uses an XML file.
The content conversion is needed to transform a file such as
karhtik
ece
100
to the shown XML structure for further processing. But when the input file already IS an XML document, no content conversion is needed/possible.
Regards,
Dennis
Task is:<b> flatfile to xml</b>My task is i need to move flat file from source to target as xml.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you post the exact contents of the file you read in?
That would help identifying the exact source of the problem...
I guess you've looked at the example in "Converting File Content in a Sender Adapter" of help.sap.com:
http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
While technically correct, this example is quite misleading.
For content conversion, you should use a csv-like input file.
Example:
Last name;First name;Age;Course;Fees
Smith;John;23;computer science;200
Miller;Allan;27;art;150
Then, you convert
- entry 1 to last name
- entry 2 to first name
- entry 3 to age
- entry 4 to course
- entry 5 to fees
I am using file content conversion as a message protocol.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i am attaching following inbound message as follows i.e before mapping:
<b><?xml version="1.0" encoding="utf-8" ?>
- <ns:sr_mt xmlns:ns="http://abb2.com">
- <STUDENTS>
- <STUDENT>
<NAME><?xml version="1.0" encoding="UTF-8"?></NAME>
</STUDENT>
- <STUDENT>
<NAME><ns0:sr_mt xmlns:ns0="http://abb2.com"></NAME>
</STUDENT>
- <STUDENT>
<NAME><source></NAME>
</STUDENT>
- <STUDENT>
<NAME><NAME>100</NAME></NAME>
</STUDENT>
- <STUDENT>
<NAME><AGE/></NAME>
</STUDENT>
- <STUDENT>
<NAME><COURSE>eee</COURSE></NAME>
</STUDENT>
- <STUDENT>
<NAME><FEES>223</FEES></NAME>
</STUDENT>
- <STUDENT>
<NAME></source></NAME>
</STUDENT>
- <STUDENT>
<NAME></ns0:sr_mt></NAME>
</STUDENT>
</STUDENTS>
</ns:sr_mt></b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
your xml isn't well formed.
There are a lot of tags which are not closed.
for example:
<NAME><ns0:sr_mt xmlns:ns0="http://abb2.com"></NAME>
<NAME><source></NAME>
And its looks like you read a xml file with adapter... why you do content conversion?
It looks that you want to read one student for each row.
But your source document is an xml file.
That why your input message looks so strange.
Try to read a .txt file with content like:
Marry
Bob
Paul
Jean
Or shut down the content conversion. And read the XML.
Regards,
Robin
Hi,
The XML is not well formed... what is the type of mapping that you are usingmake sure it is done properly.. check out the bold below
<?xml version="1.0" encoding="utf-8" ?>
- <ns:sr_mt xmlns:ns="http://abb2.com">
- <STUDENTS>
- <STUDENT>
<b><NAME><?xml version="1.0" encoding="UTF-8"?></NAME></b>
</STUDENT>
- <STUDENT>
<b><NAME><ns0:sr_mt xmlns:ns0="http://abb2.com"></NAME></b>
</STUDENT>
- <STUDENT>
<b><NAME><source></NAME></b>
</STUDENT>
- <STUDENT>
<NAME><NAME>100</NAME></NAME>
</STUDENT>
- <STUDENT>
<b><NAME><AGE/></NAME></b>
</STUDENT>
- <STUDENT>
<NAME><COURSE>eee</COURSE></NAME>
</STUDENT>
- <STUDENT>
<NAME><FEES>223</FEES></NAME>
</STUDENT>
- <STUDENT>
<b><NAME></source></NAME></b>
</STUDENT>
- <STUDENT>
<b><NAME></ns0:sr_mt></NAME></b>
</STUDENT>
</STUDENTS>
</ns:sr_mt>
I would say the whole XML is not proper...
Regards,
Prakash
I am getting the following error in runtime and can anyboby tell hoe can change the mapping program, it is auto generated one:
<b><?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/_abb2_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>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_abb2_mm_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error></b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not <b>getting any error while testing the mapping in the testing tab</b> but while data has been picked up by intergration engine it is not recevied by recevier. When i am checking runtime workbench i am getting the following error:
com.sap.aii.utilxi.misc.api.BaseRuntimeException
thrown during application mapping
com/sap/xi/tf/_abb2_mm_: RuntimeException in
Message-Mapping transformatio~
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please download your incoming message from SXI_MONITOR transaction and test it in test tool in message mapping. It looks like an error in mapping.
Regards,
Wojciech
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
did you set a namespace in the message?
how looks the message which goes into the message-mapping?
Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Regards,
Jai Shankar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.