Good Afternoon -
I am having an issue where i have a loop, wherein I do some processing to a series of pdfs. After Im done processing, I move the files to an archive folder, and delete from that current folder. This works, except for the last pdf file in the queue. When the bot encounters the delete task for the last file, I receive an error stating: “Unable to delete the file(s) ‘**file location omitted for post**’ because they are being used by another process. Try after sometime.
I have tried entering a delay, but to no avail. Every other file is deleted successfully.
Any ideas?