Skip to Content
author's profile photo Former Member
Former Member

SAP PI - Automatically move file not polled by sender comm channel to a different directory

Hi All,

We've set a 50MB file size limit in all our File Sender Communication Channels. Files with 50MB or greater than will not be picked up by the channels.

We wanted to check if there are ways on how we can automatically remove/move the file from the source directory to a different directory/folder so that this will not block other messages from being processed.

Our PI is running in Unix.

Let us know your thoughts on this.

Thanks,

Hirobyn

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 10, 2016 at 02:14 AM

    Hi Hirobyn!

    Try to use option "OS command after file processing" in your file sender adapter for that.

    Regards, Evgeniy.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Evgeniy,

      Seems like we can't use the OS command as it only works for NFS. We've set the 50MB file size limit on the advance parameter.

      There's a total of 136 file sender comm channels with different source directory.

      Let us know your thoughts.

      Cheers,

      Hirobyn

  • Posted on Jul 10, 2016 at 04:31 PM

    Hi Evgeniy,

    How did you configure your Sender File CC to ensure that it will pick files of less than 50 MB only. Did you use modification check or what.

    If you have used OS command to do that in before processing section then you can add logic to delete or archice file in different location when file size is >= 50 MB. But OS command will work only for NFS.

    Second option is you can write some custom adapter module to do that.

    Third option, write some standalone java program/ shell script and schedule it separately as per your requirement which will periodically check the files of the folder and delete/archive >=50 MB files.

    Thanks,

    Apu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.