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

Checking file existence

Hi All,

My scenario is File -> XI -> IDOC (XI3.0).

I am having a requirement where i need to pick a file (something like abc.xml) from external ftp server and process the message but in case the first external ftp is down or file is not present in the server then i have to check the second backup external ftp server (file name is abc.xml) and need to pick the file and process the interface.

Request you all to help me to design this interface.

Thanks!!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2011 at 05:16 PM

    Hi Anu,

    Try to use OS script in the sender file channel to get the files form the required servers and write to a new location from where PI can pick and process the file.

    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions

    /people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi

    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching

    The above mentioned links may help you to get an idea for your requirement.

    We can also achieve your requirement by Java proxy but this may complicate your scenario.

    Hope this helps.

    Thanks

    Ray.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for ur reply.

      I am not very much comfortable in writing scripts so do u have any links that shows how to check the file existence in different external ftp servers depending upon some conditions and all...

      can i also use custom adapter modules to achieve the req??

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.