OneDrive error 0x800c0005 on Windows 10 usually appears when the sync client can’t connect to the cloud or when a file path is too long. This guide walks you through the most effective fixes, from resetting the app to clearing your credentials, so you can get your files syncing again.
What You’ll Need
- Administrator access to your Windows 10 PC
- Your Microsoft account password (you may need to sign in again)
- A stable internet connection
Step-by-Step
- Restart OneDrive completely. Right-click the OneDrive cloud icon in the system tray (bottom-right corner) and select Exit. Then reopen OneDrive from the Start menu. This clears temporary glitches that often cause 0x800c0005.
- Check your internet connection. Open a browser and visit a site like example.com. If it fails, restart your router or switch to a different network. OneDrive needs a stable connection to sync.
- Run the OneDrive sync troubleshooter. Press Windows + I to open Settings, go to Update & Security > Troubleshoot > Additional troubleshooters. Select OneDrive and run it. Follow the on-screen prompts.
- Reset OneDrive. Press Windows + R, type
%localappdata%\Microsoft\OneDrive\onedrive.exe /resetand press Enter. Wait for the process to finish (a command prompt may flash). Then launch OneDrive again from the Start menu. - Clear cached credentials. Open Control Panel > User Accounts > Credential Manager. Under Windows Credentials, look for any entry starting with OneDrive or MicrosoftOffice16. Remove them, then sign in to OneDrive again.
- Shorten file paths. Error 0x800c0005 often occurs when files are nested too deep. Move your OneDrive folder closer to the root, e.g., from
C:\Users\YourName\Documents\OneDrive\Folder1\Folder2\...toC:\OneDrive. To do this, right-click the OneDrive icon in the tray, select Settings, go to the Account tab, click Unlink this PC, then set up OneDrive again and choose a shorter location. - Disable antivirus temporarily. Some security software blocks OneDrive sync. Temporarily disable your third-party antivirus (not Windows Defender) and try syncing. If it works, add OneDrive to the exclusion list.
- Reinstall OneDrive. Press Windows + R, type
appwiz.cpland press Enter. Find Microsoft OneDrive in the list, right-click and uninstall. Then download the latest OneDrive from the Microsoft website and install it.
Common Mistakes
- Skipping the reset step. Many users jump straight to reinstalling, but a simple reset fixes the majority of 0x800c0005 cases.
- Not closing OneDrive before resetting. If OneDrive is still running, the reset command may not work. Always exit it first.
- Ignoring path length. Windows has a 260-character limit for file paths. If your OneDrive folder is deep inside your user profile, you may hit this limit even with normal-looking filenames.
- Leaving old credentials. Stale credentials in Credential Manager can cause authentication errors. Removing them is essential.
Tips
- Keep your Windows 10 system updated. Microsoft regularly releases fixes for OneDrive sync issues.
- Use the OneDrive web app to check if the file syncs there. If it does, the problem is local.
- Pause and resume syncing from the OneDrive tray icon to force a re-check.
Troubleshooting
If the error persists after trying all steps:
- Check the Windows Event Viewer. Press Windows + R, type
eventvwr, and look under Windows Logs > Application for errors related to OneDrive. The details may give a more specific cause. - Create a new Windows user profile. Sometimes the user profile is corrupted. Create a test user account, sign in, and try OneDrive there. If it works, you may need to migrate your files to the new profile.
- Check for proxy or VPN interference. If you use a VPN or proxy, disable it temporarily. Corporate networks may also block OneDrive.
- Use the Microsoft Support and Recovery Assistant. Download and run the tool from Microsoft’s official site. It can diagnose and fix many Office and OneDrive issues automatically.
Frequently Asked Questions
What does error 0x800c0005 mean?
It generally indicates a connectivity or authentication problem between the OneDrive client and Microsoft servers, or a file path that exceeds Windows limits.
Will resetting OneDrive delete my files?
No. Resetting only clears the sync client’s local cache and settings. Your files remain on your hard drive and in the cloud.
Why does the error appear only on certain files?
Likely due to file path length or file name characters. Try renaming the file to something shorter and simpler.
Can I fix this error without reinstalling OneDrive?
Yes, in many cases. Start with the reset and credential clearing steps before considering a full reinstall.
Does this error affect my data?
No, it only stops syncing. Your local files stay intact, and cloud files are safe.
Is there a permanent fix?
Keeping Windows and OneDrive updated, and avoiding overly long paths, will prevent most recurrences.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- PowerPoint vs Keynote: Key Differences
- How to Sign Out of OneDrive in Windows 10
- Reduce Memory Use in Windows When RAM Is Low
- Type to Siri Instead of Talking on iPhone (iOS 11)
- Fix Samsung Galaxy Watch Random Vibrations
- Enable Developer Mode on iPhone X: Step-by-Step