hey guys, i’m trying to read excel files, and read all the sheets in them, and move the one i have read into another folder, but i get an error saying “the process cannot access the file because it is being used by another process”
Yes the excel is not open when you ran the process, UiPath is utilizing that excel file, if you go to task manager and see for excel process, it will be visible that is the reason you are getting this error .
Before moving the file or after reading using kill process and kill excel.
hi, @RobertoEwaldo
Use kill process …before all the activities in excel scope…and mention the jnput as “excel.exe”…or to get the correct name…you can check with task manager…enter view tasks…open task manager…see the process…check what is the exe file name of your excel…mention that in the kill process as a string input…
I have checked and corrected the issue… Now it’s working…
I have added a Kill process activity just above the move file activity. So though excel application scope has ended by the time you are moving it, still the process is active in the background. That is why you are getting the error.
Please change the file paths bro. and I have removed your file name conditions to test it