cancel
Showing results for 
Search instead for 
Did you mean: 

Sender File Adapter picking the same file twice

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

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

Answers (2)

Answers (2)

abhijitbolakhe
Advisor
Advisor
0 Kudos

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.

former_member183906
Active Contributor
0 Kudos

Yes , it happens.

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