To find and close the process that has the file open, please follow this steps:
- Open resource monitor (Windows +R to open Run then type Resmon.exe)
- Open the CPU tab in the monitor
- Select all processes (not sure if this is needed, you can probably just search for the handle)
- Expand "associated handles"
- Search for the file you need
- Close the process that has the handle
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
I got the same error for a file I did a Save As into a different folder, but I just figured it out. After researching what the OneDrive status icons mean (the file in question had a blue-outlined cloud, which means it's available on-line only), I right-clicked the folder the file is in and selected "Always keep on this device". This setting caused the status icon for all the files in the folder to become a green circle with a white checkmark. When I attempted to open the file again with this new status, I got a message indicating the file path/name is too long. Once I shortened the name of the file, I was able to open the file without a problem. I then right-clicked the folder the file is in again and selected "Free up space", which caused the status icon to change back to the blue-outlined cloud for each file. I again was able to open the file successfully.
Since the Folder In Use message is so vague and doesn't let you know what's really going on, I don't know if the same steps above will work for you, but it's worth a try.
I followed Julie Mossberg's steps and it worked.
The issue was with the Folder name. The folder name included a character that is not supported by OneDrive and SharePoint. So, all files in the folder are not opening and comes with same error. The link below lists the unsupported characters.
I renamed the file by removing the unsupported characters and the file got synced to OneDrive and we are able to open files in the folder.