I copied a file from source folder to destination folder.
Later, when I am trying to delete the file in the source folder, it get a message that “this action cannot be completed because the file is open in UiPath Robot Executor”
Yes, you are right.
Still Robot Agent is running while I am trying to delete the file.
If I stop running the BOT, I am able to delete the file manually.
Once you copied all files ang give some delay and then try to delete the files. It should work.
Alternatively you use Move File activity to move files from source to destination folder and then you no need to delete files from source folder once copied into destination folder.
I haven’t tried this. Let me check, I think that I won’t be able to move the file as it is in use.
The Process which uses the file is the Robot itself.
Ideally the Robot should relive the file as its operations are completed.
But I will check it…
hi @karthick,
I was also facing the same issue and tried the ways suggest by you. but it didn’t work out for me and powershell command also i have used to delete the file. no luck on that as well.
Could you please suggest any other solution?