cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI Empty Payload handling

tharaka_fernando
Contributor
0 Kudos
1,412

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.

View Entire Topic
tharaka_fernando
Contributor
0 Kudos

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

former_member207703
Active Participant
0 Kudos

Hi,

Are you using FCC in sender adapter?