on ‎2018 Jul 30 5:07 PM
Hi All,
I am developing a File to Proxy scenario to send some business information. ( PI - 7.5 Single stack )
I need to handle a scenario when Empty Files ( 0 kb ) are dropped in to the location (FTP) I need to pass only the File Name to proxy. I have created a UDF to get file name and it is working successfully when payload has data.
I have enabled "Process Empty Files" in File Sender Adapter too.
But when file is empty I am getting an error always.
Request clarification before answering.
Hi Evageniy,
thank you for the response. I created a JAVA mapping to get file name and it is working fine when fils has data.
When I test with empty file (0kb) below is the error Im getting at Message Log;
"Transmitting the message to endpoint using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.adapter.xi.routing.RoutingException: Unable to parse XML message payload to extract operation for receiver determinationorg.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file."

Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi T Fdo!
What kind of error do you get?
By the way, I guess, you can't use UDF (in graphical mapping) with empty payload. You should use java mapping instead.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.