I am trying to move the file from one location to another but it shows this error.
Move File: The requested resource is in use.
Can anyone please help to resolve the same?
The file you are trying to move is being used by another process. You can try killing the application using it and then move the file.
Thanks,
Ashok
How to check which process is using that file. Because I am just downloading the file from chrome to local folder. Gave a 15sec delay after that. Then moving the file to the network folder
Ok then the file is still not ready yet. Use Retry scope with delay of 10 seconds may be. Letter on you can change as per your requirement.
Tried it.But still issue persists.
as per error the file is still being downloded or is open
try to check task manager and background tasks to see if it is in use…based on the application use a kill process and then move
cheers
@Anil_G
There are lots of files to be downloaded from a single website. So the current issue is that after downloading and moving few files this error occurs. The first few processed without any error. I can’t kill the chrome process bcoz there are still more files to get downloaded from the same website.
Any other option please…
use wait for download complete for each file so that you move the file only once it is completely downloaded
as per the explaination looks like the downloads are still ahppenign aprallely for multiple
cheers
You shouldn’t use a delay. You should use the Wait For Download activity. Also, are you using OneDrive or some sort of other cloud storage for files? It may the that application that has the file locked. It could also be antivirus scanning it. Try Wait For Download then see if the issue persists with being unable to move it.
Already using wait for download activity.But still the issue persists.
Already using wait for download activity.But still the issue persists
Any other alternative please?
Did you exclude the crdownload extension from the Wait for Download activity? You have to make sure it doesn’t see the temp file that’s created during downloading.
Put crdownload into the “Ignore these temporary file extensions” property. I’m assuming you’re using Chrome. If you’re using Edge or another browser you can just watch the download folder as you download something to see what the extension is for the temp file as it’s downloading.
In ignore firld use "tmp,crdownload"
if you see any other temporary extension that is when file is not completely downloaded it would give few extensions which needs to excluded else wait for resume will assume file is downloaded
Cheers
Also, you shouldn’t name your downloaded file variable “fileinfo” as that’s a class. Don’t name variables the same as built-in things.
Hi All,
Tried all these ways but issue still persists.
Did you look at if Onedrive or some other cloud solution is keeping hold of the file? Did you confirm the temp file extension being used by your browser? Did you check to see if antivirus is scanning the file when you try to move it? Did you try using a Retry Scope around the move to see if it succeeds after a period of time?
Hi Please find the details below:
The file is being saved to the onedrive.
The extension used is crdownload.
Yes the file is being scanned for virus when it is getting downloaded.
Tried using a retry scope around move but it is not working.
Any other suggestions please?