Hello,
something really nice:
Scenario picks up a file to move it renamed with timestamp to another destination via FTP protocoll.
File picked up: ok
But in pipeline:
Message in trace:
<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_mm_test_</Trace>
<Trace level="1" type="T">Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_mm_test_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 4f, 6e, 6c(:main:, row:1, col:3)</Trace>
Test file is really simple:
Data type: "test" - xsd string,
connected to message type "head"
Message mapping / Interface mapping in Int. Dir. :
Test: OK
RWB: "message successfully transmitted to endpoint < Xi pipeline URL > using connection AFW"
Would be very helpful if someone here has an idea where this comes from!
best regards
Dirk
Search help: file content conversion
Hi Dirk,
It is mapping error.Test ur mapping in integration repository itself.If it is executed succesfully over there then check the payload that is coming from file.The
structure should be the same as what you are getting through test in IR.Suppose you are getting below structure after test in IR for the source message.
<ns:Head> xmlns:ns="http://sapr3/fi/masterdata">
<ID>H</ID>
</ns:Head>
Your payload coming from file should also look like this.For that maintain configurations in communication channel.
If still you get error you mail me screeen shot for Mapping and communication channel.
Hope it helps you.
Thanx
Rekha
Message was edited by: Rekha Lather
Hello again,
your replies were really helpful to move a step forward. The error message has changed now. I have an xml format now in the payload.
Here is an example:
(Don´t ask about the reason for the naming! 😊 )
But now the error message is:
com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns:mt_blob. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start
Ok! I changed the receiver channel to conversion too!
recordset structure (same name def. as in sender channel)is added with addheaderline and fieldSeparator.
My understanding: (using of naming)
- incoming message linked to message typ abc
- text conversion to fff (rec,structure) in sender channel
- "re"conversion from fff (from payload) in receiver channel
- the "re"conversion is automatically linked to the message type I am using.
Do you have an idea what I forgot to do or where my misunderstanding is?
Best regards
Dirk
I know that the post is marked as answered, but if somebody reach this in a search, I found that is possible to do the simple transfer file from one place to another without repository objects (conversion data) and keeping the original name of the file from the origin to the destination.
This two links will help with this task in a very easy solution way.
Transfer file without repository objtects: http://saptechnical.com/Tutorials/XI/File2File/Demo1.htm
Keep the file name from origin to destiny: XI: The same filename from a sender to a receiver file adapter - SP14
Best regards.
Add a comment