OneDrive Can't Open Files: Fixes That Work
In this article
If OneDrive shows an error when you try to open a file, the fix is usually to reset the OneDrive app, clear its cache, or repair the file's sync status. Below are the exact steps to resolve the most common "can't open file" errors on Windows 10 and Windows 11.
Why OneDrive Files Fail to Open
OneDrive errors fall into a few predictable categories. The most common is a sync conflict — the file exists on your PC but OneDrive hasn't finished uploading or downloading it, so the local copy is a placeholder that Windows can't read. Another frequent cause is a corrupted cache, where OneDrive's local database of file states gets out of sync with the actual files. Less often, the problem is a file name that uses characters Windows doesn't allow (like ? or :), or a file that's been locked by another program. Finally, a stalled OneDrive process — one that's running but hung — will block file access until you restart it.
First: Restart OneDrive Completely
Before changing any settings, close OneDrive fully and reopen it. This clears most temporary glitches.
- Right-click the OneDrive cloud icon in the system tray (bottom-right, near the clock).
- Select Settings, then go to the Account tab.
- Click Stop sync — this closes OneDrive but keeps your files on disk.
- Open the Start menu, type OneDrive, and press Enter to relaunch it.
- Wait for the sync to complete — look for the cloud icon to show a steady state (no spinning arrows).
If the icon isn't in the tray, press Ctrl+Shift+Esc to open Task Manager, find "Microsoft OneDrive" under Processes, right-click it, and choose End task. Then relaunch from Start.
Reset OneDrive If Restarting Doesn't Help
A full reset rebuilds OneDrive's local database without deleting your files. This fixes most persistent "can't open" errors.
- Press Win+R to open the Run dialog.
- Type or paste this exact command and press Enter:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset - Wait 30–60 seconds. OneDrive should restart automatically. If it doesn't, launch it from Start.
- Sign in again if prompted. Your files will re-sync — this can take a while for large libraries.
If you're on a work or school account, the command path may be different. In that case, right-click the OneDrive icon, choose Settings > Account, and look for a Reset button (available in newer versions).
Check File Names and Paths
OneDrive won't sync files with names that Windows or the web version rejects. If a file shows a red circle with a white cross, or a grey cloud with an exclamation mark, the name is likely the problem.
- Invalid characters:
" * : < > ? / \ | - Reserved names:
CON,PRN,AUX,NUL,COM1–COM9,LPT1–LPT9 - Trailing periods or spaces (e.g.,
report.txt.) - Path length over 400 characters (including the OneDrive folder path)
Rename the file to something simple like report_final.docx, then move it into the OneDrive folder again. If it syncs, the name was the issue.
Clear the OneDrive Cache
If files open on the OneDrive website but not on your PC, the local cache is likely corrupted. Clearing it forces OneDrive to re-download the file metadata.
- Close OneDrive fully (see the restart steps above).
- Press Win+R, type
%localappdata%\Microsoft\OneDrive\, and press Enter. - Delete the cache folder inside that directory. (If you don't see it, you may need to enable "Show hidden files" in File Explorer.)
- Relaunch OneDrive. It will rebuild the cache and re-sync your file list.
This does not delete your actual files — only the local metadata. Your data remains safe in the cloud and on disk.
Repair Office Files That Won't Open
If the error appears only for Word, Excel, or PowerPoint files, the problem may be in Office itself, not OneDrive.
- Open the file in the desktop app, not the browser. Right-click the file in File Explorer and choose Open with > Word (or Excel/PowerPoint).
- If the app shows a "file is locked for editing" message, close the document in all other windows and wait a minute.
- For a file that's corrupted, open the app, go to File > Open > Browse, select the file, and click the dropdown arrow next to Open — choose Open and Repair.
- Check if the file is marked as "Read-only" in File Explorer (right-click > Properties > uncheck Read-only).
When the File Is Locked by Another User
If you're sharing the file with colleagues, OneDrive may block opening it while someone else has it checked out. In OneDrive's web interface, look for a person icon next to the file name.
You can either wait for them to close it, or — if you have owner permissions — click the ellipsis (…) next to the file in the web app and select Manage access to see who has it open. There's no built-in "force unlock" in OneDrive for personal accounts; for work accounts, the admin may need to release the lock from the SharePoint admin center.
Frequently Asked Questions
Why does OneDrive say "We can't open this file"?
This usually means the file is a cloud-only placeholder that hasn't been downloaded, or the local cache is corrupted. Right-click the file in File Explorer and choose Always keep on this device to force a download, then try opening it again.
Will resetting OneDrive delete my files?
No. The reset command (onedrive.exe /reset) only rebuilds the sync database. Your files stay on your hard drive and in the cloud. After the reset, OneDrive re-downloads the file list and syncs again.
Can I open OneDrive files in the browser instead?
Yes. Go to onedrive.com, sign in, and open the file there. This works even if the local sync is broken. If the file opens online but not locally, the issue is on your PC, not the file itself.
Why does OneDrive show a grey cloud icon that never goes away?
A grey cloud means the file is online-only (not stored locally). A spinning arrow next to it means it's syncing. If it stays grey forever, the sync engine may be paused. Right-click the OneDrive tray icon and check that Pause syncing is not selected.
What if the error says "The file name is too long"?
Windows has a 260-character path limit for many apps. Shorten the folder name or file name, or move the file to a shallower folder inside OneDrive. For example, move it from OneDrive\Documents\Work\Projects\2024\Q4\Final\ to OneDrive\Q4\.
Is there a way to stop OneDrive from locking files?
OneDrive locks files only when they're open in an Office app or when another user has them checked out. To avoid this, close documents when you're done, and use the "Files On-Demand" setting to keep files local (right-click the OneDrive icon > Settings > Sync and backup > Advanced settings).