Skip to Content
avatar image
Former Member

Sender File Adapter picking the same file twice

We are facing a weird issue with File Sender Adapter

We are using PI File Adapter ( NFS ) to read files for a NFS folder and

processing those in PI.Normally it works fine. But for a scenario we

are noticing it sometimes process the same file twice before archiving,

thus duplicating the financial postings.

What we have is :

File Sender Adapter - NFS, Polling interval 60 secs, and Processign

mdoe Archive. File name includes Wildcards - JE_Upload*.txt

what we are noticing is that :

when it picks up a file, it immediately polls again to check for

another file, and sometimes the file is not yet archived so it picks up

and reprocess the same file.

If you see the message below, both belong to the same file, and it

picked up the same file again in 12 secs after processing it the first

time

Successful 02.11.2009 15:01:00 02.11.2009 15:01:01 APMANUAL urn:bl:i2g:003:100

SI_SKF_FIDOC_OB XI Message

Successful 02.11.2009 15:00:49 02.11.2009 15:00:50 APMANUAL urn:bl:i2g:003:100

SI_SKF_FIDOC_OB XI Message

Anyone seen this behavior before?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 03, 2009 at 04:19 PM

    Hi,

    Please check the script which creates file in source NFS Folders. There is possibility that script is making change in file when PI is picking up the file.

    When PI picks the file first time it creates one message ID in system. After that if script is making any change in file without file name change (This need not necessary data change), for PI it becomes new file and new message gets generated in PI for same file.

    This error normally comes when File adapter is not able to archive file succesfully. For eg. file with same name alredy exists in Archive folder.

    File adapter generates the new message id whenfile get modified(eg.change in its length or data change) even though

    the file name is same and when file get change ,XI file adapter thinks that its new file and hence generate the new message id for same file.

    If file has same name and notmodified then XI adapter will not generate new message id and will keep on throw the error till you remove that file with same name from the

    archieve directory.

    -Warm Regards,

    Gouri

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 03, 2009 at 11:13 AM

    Yes , it happens.

    U need to increase polling interval so that file is processed and sent to archive.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 03, 2009 at 11:37 AM

    Hi

    Sometimes this happens due to insufficient polling interval.

    To avoid this behaviour..we can do the following options

    a) A script which checks if the file name already exists and then moving the file so that it is not processed by the adapter.

    b) An adapter module can be developed for the same.

    Regards

    Abhijit.

    Add comment
    10|10000 characters needed characters exceeded