How to Fix OneDrive File or Folder Is Open in Another Program Error
Question details
Users are unable to modify, move, or sync specific files in OneDrive because the system incorrectly reports that the file or folder is currently in use by another application.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to sync, rename, delete, or move files within the local OneDrive directory.
- Observed behavior
- OneDrive displays an error message stating 'File or Folder Is Open in Another Program'. In some cases, this is followed by duplicate file errors like 'The source and destination file names are the same'.
Ensure you have saved all ongoing work in your documents and take note of the exact file path causing the error before attempting to restart applications or reset OneDrive.
Close Conflicting Applications and Restart
The most common cause of this error is a background process or an Office application holding a hidden lock on the file. Closing these apps usually releases the lock.
Sometimes, even if a document appears closed, the program's background process may still be running and accessing the file. Forcing these programs to close will allow OneDrive to resume syncing.
Manually exit Word, Excel, PowerPoint, or any other application that was recently used to open the affected file.
Press Ctrl + Shift + Esc to open the Task Manager. Look for any lingering Microsoft Office processes or background tasks related to the file, right-click them, and select 'End task'.
If the file remains locked after closing applications, restart your computer to completely clear system memory and temporary file locks.

Reset the OneDrive Application
If standard restarts do not work, resetting the OneDrive application can resolve deep sync state damages and restore normal functionality.
Try WPS Office for Seamless Document Management
If heavy Office applications frequently cause file locking and background sync issues on your PC, consider switching to WPS Office. It is a highly optimized, free alternative that minimizes background conflicts while remaining fully compatible with your existing files.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install the Software: Run the downloaded installation file and follow the brief on-screen instructions to set up the software.
- 3. Open Your Files: Launch WPS Office and open your existing Word, Excel, or PowerPoint documents directly from your local or cloud folders without compatibility issues.

Frequently Asked Questions
Why does OneDrive say my file is open when all my apps are closed?
This happens when a background process retains a 'lock' on the file. Common culprits include the Windows File Explorer Preview Pane, background indexing services, or an Office application that didn't shut down completely.
Will resetting OneDrive using the Run command delete my files?
No, resetting the OneDrive application only clears its settings and forces the client to re-scan and sync your files. Your actual documents and photos remain safe on your local drive and in the cloud.
How do I fix the 'source and destination file names are the same' error?
This secondary error often occurs when you open a duplicate or conflicting copy of a file during a sync error. To resolve it, pause OneDrive syncing, manually rename the local copy of the file (e.g., add 'v2' to the name), and then resume syncing.




