A file is placed in shared drive and bot should not repeatedly process the same file

Hi ,
A file is placed in shared drive and bot should not repeatedly process the same file without moving ----------------

Thanks

Hi @shubham2

You can maintain a Tracker file. It can keep track of the file being processed. Any file that is already processed can be marked as “Completed”. Implement an IF logic that will make sure the Bot does not process the file that is marked “Completed”.

If you can give further explanation to your use case, i can provide a better answer.

1 Like

Hi @shubham2

You should do alternate approach after completing bot should move that in Archive folder. Just maintain an Archive folder move after completion.

Happy Automation

1 Like
  1. Create an asset which is updated every time a file is read. During the next run, read the asset and compare the name of the files.
  2. If it is the same skip processing, if it is different process. You can keep appending the names of the files to the asset seperated by “,”. And when reading the assets, split them, and for loop through each file name.
  3. During the looping, you can also check if a file with that name is present in the shared drive. If it is present do nothing, if not remove the value from the asset and update the asset.

Move the file to a “processed” folder after processing it.