Skip to Content
avatar image
Former Member

Empty File Handling for Receiver Adapter in SAP PI

Hello All,

My scenario is Proxy --> XI --> FTP

Whenever we are getting 0 byte file, that file need to be send to the Receiver Mail Adapter. Instead of sending it to FTP. I mean an alert to be raised to the team that 0 Byte file has been arrived.

Receiver FTP with File Content Conversion is used.

Does it is possible using the Interface Determination or Receiver Determination ? If yes please provide the steps to achieve it.

If there are any other solution, kindly suggest.

I know we have an option at the Receiver File Adapter to Ignore the file using Empty File Handling. But my scenario is that we need to raise an alert whenever 0 byte file is arriving.

Let me know if you need further information.

Rewarded with points.

Thanks & Regards

Raja Ravivarma V

+91-8056129900

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Jul 13, 2016 at 08:19 PM

    Hi Raja,

    You can use the context object File size in RD . In RD, if File Size is <> 0 then send to target system else send to Mail receiver.

    Empty File handling and raise alert. | SCN

    hope it helps!

    Ambrish

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 13, 2016 at 11:26 AM

    Hello Raja,

    You can handle it in the mapping.

    If empty file is created,that means proxy data should be empty.

    so make the Target nodes mandatory,So that mapping will fail if proxy is empty and configure alerts to trigger mail for the same issue.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 13, 2016 at 12:22 PM

    Raja,

    In receiver Determination you can use XPATH functions like exist, count etc and check for the some

    Xpath Condition in Receiver Determination - Process Integration - SCN Wiki

    Customise your 'XPATH' Expressions in Receiver Determination

    then you can route it to mail/FTP.

    Br,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 13, 2016 at 06:29 PM

    Hello Ravi,

    Adding one more option

    You can also configure alert configuration so that when empty file generated.Alert will trigger to configured mail id. Refer below

    Michal's PI tips: Component-Based Message Alerting

    Regards

    Pavan D

    Add comment
    10|10000 characters needed characters exceeded