Skip to Content
avatar image
Former Member

Suggessions required for File----XI----Idoc Interface

Dear All,

I have developed File -XI Idoc Interface and works fine.

Query: When the Source application is trying to write the data into file, XI needs to wait until it completes

Once the writing is completed then only XI has to pickup the file from Source location.

If XI is not checking this check point, File adapter is picking up the file in the middle of the data writing itself.

Please suggest me your thoughts and experience on this

REgards

Suman

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 19, 2010 at 09:09 PM

    Hi Suman,

    One really easy way is to have the source system create the file with a temporary name, then when the writing is complete to rename it to the file naming scheme that you have identified in your communication channel.

    Mike

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Suman,

      For writing a module please check the blog and articles in SDN.

      The module logic should be as follows:

      1. it should read and store intermeidiately the size & filenam of all files present in the folder.

      2. do a wait of say 30 sec in the module (by sleep or any other such waiting command of java).

      3. Then recheck the size of only those files read in step one (don;t read entire files present in folder now as some new files may have been created in this 30 seconds sleep time)

      4. If the file size changes don't do anything else send the content to PI and /archivethe file (should be done inside the module code)

      5. Keep the file sender channel in Test mode (as the module will do the necessary archival/deletion)

      PS: This blog can be a starting point for you /people/sandeep.jaiswal/blog/2008/05/13/adapter-module-to-stop-processing-of-duplicate-file-ftp-location

      Regards

      Suraj

  • avatar image
    Former Member
    Feb 25, 2010 at 04:47 PM

    Following Intermediate folder concept

    Add comment
    10|10000 characters needed characters exceeded