cancel
Showing results for 
Search instead for 
Did you mean: 

Sender File adapter - delete file failed

Former Member
0 Kudos

Hello all.

I have the following scenario:

I read a file that a 3rd party keep on wrting into all the time (appeanding)

every 5 minutes the PI's sender file adapter process the file then delete it.

the problem is that when for some reason the PI fail to delete the file (for example because the 3rd party just locked it for appeanding)

then I will process those lines all over again.

Is there a way to tell the PI to wait until it is sure that the deletion ended properly before finishing the processing of the file?

Thanks in advance,

Imanuel Rahamim.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184681
Active Contributor
0 Kudos

Hi,

Try setting the "Retry Interval (secs)" in the sender communication channel, e.g. to 60 seconds. This should help.

Regards,

Greg

former_member194612
Active Participant
0 Kudos

Hi Imanuel,

You can approach what Raja said above  or

Make use of the Run operating system command before message processing

create a script such that , while third party is writing into some location, Change the file names such that it should be of different with what mentioned in the Source Filename.

Once after writing compeltely then , the script will rechange the file name to original.

I think this solves your probs..

WR,

Satish

rajasekhar_reddy14
Active Contributor
0 Kudos

You have an option file adapter like once file writing completes then only PI Adapter could pick up the file,try using Msecs to Wait Before Modification Check in File adapter.