Skip to Content

Archiving Empty Flies in SFTP

Dear Scn User,

There is a option to archive faulty files in SFTP.

Is there a way to archive empty files in SFTP?

Only emply files should be archived,other files should be processed to proxy.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Apr 12, 2016 at 01:20 AM

    Yup, you can use the option below:-

    You can read up more about it in the following link. Basically "create no message" will allow you to perform deletion and archiving of an empty file.

    Configuring the SFTP Sender Channel - SAP Process Integration, secure connectivity add-on Configuration - SAP Library

    sftp.png (14.0 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Apr 12, 2016 at 03:19 PM

    HI Raghuraman,

    This requirement can be met by run time OS command before message processing feature.

    you can write simple script which can check check the length of file and move it to other directory if it is 0 size file.



    Add comment
    10|10000 characters needed characters exceeded

    • IMHO, script would probably be a feasible solution if it was a File(NFS) adapter. But since this is an SFTP adapter, the files are on the SFTP server, so the script would need to written to execute connection to the server to perform SFTP commands. It just unnecessarily complicates the design.

      In general, I would always avoid usage of scripts wherever possible. Execution of scripts are independent of the channel and do not provide visibility in terms of monitoring as any errors are not logged back to the adapter framework, thus possibly introducing a gap in terms of end to end monitoring.