Dear Experts,
I have a requirement to pick a pdf file using SFTP channel and then to send it to the SAP system over proxy with pdf file name.
I have created a data type for proxy with two fields, one with the File name another with the file content. It is similar as described below.
Name | Type | Occurence | ||
---|---|---|---|---|
DEMO | ||||
FileContent | xsd: base64Binary | 1 | ||
FileName | xsd: String | 1 |
I have used a UDF to get the file name of the pdf and mapped this UDF to FileName field under datatype and used the dynamic file setting in the channel.
Sender channel has successfully picked up the file and sent it to adapter engine but it failed in the request message mapping stage under Pipeline with following error :
Runtime exception occured during application mapping
com/SAP/XI/tf/_MM_Test~
com.sap.aii.utilxi.misc.api.BaseRuntimeException : Content is not allowed in the prolog.
Although when I have sent the PDF with only one field as Filecontent, it is getting processed successfully.
Appreciate if any one can suggest any alternative/resolution. We have restriction to not use Integrated configuration in this case.
Regards,
Sudhir Kumar