Error message: The process cannot access the file because it is being used by another process

Dear UiPathers

Does anyone know what this error message means?
“The process cannot access the file because it is being used by another process”

Down below I have added my Message Details and the subprocess that is failing

image
image

I am the only one working on the process and making changes on the project. I have double checked with my colleagues if anyone of them is using UiPath or changing in the subprocess while I am working on it, and none are woking on it, so I don’t know where or what is using the process. Any help to locate where the error message is coming from wil be gladely appreciated!

The error message “The process cannot access the file because it is being used by another process” typically indicates that a file is locked or in use by another application or process, preventing your process (in this case, your UiPath automation) from accessing or modifying it. This error is not directly related to UiPath but is a general Windows file system error.

  1. The file you are trying to access may be opened and locked by another application or process. This could be a different software program or even a different UiPath process running in the background.

2.Ensure that your UiPath workflow correctly closes any file streams or resources that it opens. Failing to close a file stream can leave the file locked.

3.If the file is located on a network drive or a shared folder, it could be locked by another user or process.

@nmjvk

Hi

This is because of another process is currently using the file that you are trying to access. This can happen for a number of reasons, such as:

  • Another UiPath process is using the file.
  • Another application is using the file.
  • The file is open in read-only mode.
  • The file is locked by the operating system.

So use a KILL PROCESS activity before this activity here mention as “Excel” in ProcessName property
And leave the other properties empty

Cheers @nmjvk

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.