Skip to Content
author's profile photo
Former Member

File Adapter : Sequence Check

Hello,

I'm facing the following issue: We receive files from a trade parter. These files have a sequence number in their file name. Eg. utilmd001.txt. We need to send these files as idocs to our SAP system. But we can only process a file if the previous file is already processed. Eg. utilmd003.txt can only be processed if utilmd002.txt is processed. Any idea on how to incorporate this in the file/FTP Adapter? Also note that we cannot assume that utilmd002.txt arrives before utilmd003.txt.

Any ideas?

Greetings,

Bart

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Oct 05, 2005 at 12:22 PM

    Hi Bart,

    An option could be to store incoming messages on a intermediate folder, and have the file adapter of XI listening for incoming files at another folder where files are placed (by a custom written Java application or some FTP/Batch procedure..that keeps the sequence of received files in memory or a file) one by one in the correct sequence.

    In this way you are always sure that XI only process those files in the correct sequence.

    Cheers,

    Roberto

    Add comment
    10|10000 characters needed characters exceeded