cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP PI Empty Payload handling

tharu
Contributor
0 Likes
2,490

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

tharu
Contributor
0 Likes

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 Likes

Hi,

Are you using FCC in sender adapter?

former_member190293
Active Contributor
0 Likes

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.

former_member190293
Active Contributor
0 Likes

Hi!

Try to remove Software component version on the first tab of your ICo configuration (just leave it blank).

Regards, Evgeniy.

tharu
Contributor
0 Likes

hi Evgeniy,

its working..thanks