OneDrive File Issues

How to Fix OneDrive File or Folder Is Open in Another Program Error

Steve KSteve K Nov 3, 2026 869 views

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.

How to Fix OneDrive File or Folder Is Open in Another Program Error
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'.
Before you start

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.

Solution 1Recommended

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.

1
Close Office Applications

Manually exit Word, Excel, PowerPoint, or any other application that was recently used to open the affected file.

2
End Background Processes

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'.

3
Restart Your Computer

If the file remains locked after closing applications, restart your computer to completely clear system memory and temporary file locks.

Close Conflicting Applications and Restart
Quick Tip: Disabling the 'Preview Pane' in Windows File Explorer can also prevent files from being locked in the background.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install the Software: Run the downloaded installation file and follow the brief on-screen instructions to set up the software.
  3. 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.
Fully compatible with Microsoft Office formats including DOCX, XLSX, and PPTX.Lightweight architecture reduces the chance of background process file-locking.Free to use with a familiar, easy-to-navigate user interface.Built-in cloud tools that seamlessly integrate without aggressive sync conflicts.
QA img-9

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.