I have some folders located on a shared server drive that I'm trying to move to an "archive" folder. After these folders are moved, I'm copying folders from a cloud location to the same server drive to replace those initial folders with the latest contents.
The issue I'm running into for the first part is when moving the initial folders to the archive folder. If anyone in the organization has one of the shared server drive files open the Power Automate Desktop flow will fail with "Problem while executing action 'Move'. Can't move folder [folder] ... System.IO.IOException: Access to the path [path] is denied. at System.IO.Directory.InternalMove..."
I'm able to have our Systems team research the folder from the error message and they can find the person who has one of the sub-files open. Once the user closes out of the file the flow will run successfully. I wanted to know if anyone has run into this before and/or knows of a way I can use Power Automate Desktop to tell me the user who has one of the files open in the specific folder when I get this error. Or if you have another solution to move the existing folders.
Please let me know if you need any additional info. Thank you!