Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Var substitution

Hello All,

I am getting below error in my receiver FTP(File) channel:

Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: Caught SAXException while parsing XML payload: Content is not allowed in prolog.

Taret payolad is as below:

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

<ns0:MT_TREASURY_MANAGEMENT_LEGACY xmlns:ns0="urn:chrysler.com/fi/I_FIN_AP_010">

<HEADER>

<SEQ_NUMBER>12</SEQ_NUMBER>

--

---

</MT_TREASURY_MANAGEMENT_LEGACY >

I have to read the sequence number which is coming in the target payload. So, I have enabled Variable subs option in the receiver FTP channel. And mentioned the var1 as payload:MT_TREASURY_MANAGEMENT_LEGACY,1,HEADER,1,SEQUENCE_NUMBER,1

can someone pls help me here

Thanks,

Regards,

Moorthy

Former Member
Former Member replied

Hello Mr,

This usually happens if have some invalid binary characters in the message.

Generally this invalid characters will be in the start of the message, so you can use substring function to element them.... If you are reading message from a file, then please open file in word pad or in notepad, delete first few empty spaces(if no empty spaces are found, delete the first char and re-type).

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question