OneDrive error 0x80070185, which typically reads “The cloud operation was unsuccessful,” stops files from syncing and usually appears when OneDrive cannot read a file that is marked as cloud-only or when a file path is too long. The fix is to clear the OneDrive cache, reset the app, or move the affected folder closer to the root of your drive. Below is a complete guide to resolving this error on Windows 10 and Windows 11, with steps for the most common causes.
What Does Error 0x80070185 Mean?
Error 0x80070185 is a Windows system error code that OneDrive surfaces when a file operation (download, upload, or move) cannot be completed. The full message often reads: “The cloud operation was unsuccessful. Error code: 0x80070185.” This is not a sign of data corruption or a hacked account; it is a sync failure. The error appears in the OneDrive notification area, in File Explorer, or in the Sync Health tab of the OneDrive settings.
The root cause is almost always one of the following:
- Files On-Demand conflict: A file is marked as online-only, but OneDrive cannot download it on demand because of a network glitch or a corrupted cache entry.
- Path length limit: The file or folder path exceeds the Windows MAX_PATH limit of 260 characters. OneDrive will fail to sync such items.
- Invalid characters: The file name contains characters that Windows does not allow (e.g.,
" * : < > ? / \ |) or trailing spaces/dots. - Stale sync state: The OneDrive cache (the local database that tracks sync status) is out of sync with the actual files.
- File is locked: Another program (e.g., an antivirus scanner, a backup tool, or an Office app) has the file open, preventing OneDrive from reading it.
Before You Start: Check the Obvious
Do these quick checks first. They resolve a surprising number of 0x80070185 cases without any deeper troubleshooting.
- Restart OneDrive: Right-click the OneDrive cloud icon in the system tray (bottom-right, near the clock) and select Pause syncing for 2 hours, then resume. If the icon is not there, search for “OneDrive” in the Start menu and open it.
- Check your internet connection: The error often appears when the network drops for a few seconds. Open a browser and load any page to confirm you are online.
- Close other programs: Save and close all Office documents, PDFs, and media files that might be in the OneDrive folder. Also temporarily disable any third-party antivirus real-time scanning to see if it is blocking OneDrive.
- Check for file name issues: In File Explorer, go to the folder that shows the error. Look for files with names longer than 200 characters (select the file, press F2, and count) or names ending in a period or space. Rename them to something short and simple.
If the error persists, move to the more thorough fixes below.
Fix 1: Reset OneDrive (Most Effective)
Resetting OneDrive clears the local cache and re-syncs your files from the cloud without deleting any of your data. This is the single most reliable fix for 0x80070185.
- Press Windows + R to open the Run dialog.
- Type the following and press Enter:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
If you have the Microsoft Store version of OneDrive, use:%localappdata%\Microsoft\OneDrive\onedrive.exe /reset(same command; the Store version still uses this path). - A black command window may flash. Wait for OneDrive to restart automatically. If it does not, search for “OneDrive” in the Start menu and open it.
- When OneDrive reopens, it will re-scan your folders. The error should be gone. If not, try the next fix.
Note: Resetting OneDrive does not delete any files from your computer or from the cloud. It only rebuilds the local sync database. Your files will re-download as needed (or stay as online-only placeholders if you have Files On-Demand enabled).
Fix 2: Clear the OneDrive Cache Manually
If the reset command does not work, you can manually delete the cache folder. This is a more aggressive version of the reset.
- Right-click the OneDrive icon in the system tray and select Settings (or Pause syncing > Quit OneDrive). Make sure OneDrive is fully closed.
- Press Windows + R, type
%localappdata%\Microsoft\OneDrive\and press Enter. - Delete the
cachefolder if it exists. Also delete thesettingsfolder (this will forget your account, so you will need to sign in again). - Restart OneDrive and sign in with your Microsoft account.
This forces OneDrive to rebuild its entire sync state. It will take some time to re-scan your library, but it usually clears any corrupted cache entries that cause 0x80070185.
Fix 3: Move the Problem Folder to a Shorter Path
Windows has a legacy path length limit of 260 characters. Even though modern Windows 10/11 can handle longer paths if you enable the LongPathsEnabled registry setting, OneDrive itself still has issues with very long paths in many cases. The error 0x80070185 is frequently triggered by a file whose full path is too long.
- Identify the folder that is showing the error. In OneDrive settings, go to the Sync Backup tab, or look in File Explorer for the file with the error.
- Move that file or folder to the root of your OneDrive folder (e.g.,
C:\Users\YourName\OneDrive\) rather than a deeply nested subfolder. - If the path is still too long, rename the parent folders to shorter names (e.g., change
Documents\Work\Projects\2024\Client Reports\Final DraftstoDocs\Work\2024\Reports). - After moving, the sync should complete. You can then move it back to its original location if you want, but keep the path under 200 characters to be safe.
Fix 4: Turn Off Files On-Demand Temporarily
Files On-Demand is a feature that shows online-only placeholders instead of downloading every file to your hard drive. When OneDrive tries to download a file on demand and fails (due to a network hiccup or a corrupted placeholder), you get 0x80070185. Turning the feature off forces OneDrive to download all files, which can clear the error.
- Right-click the OneDrive icon in the system tray and select Settings.
- Go to the Sync and backup tab (or Settings tab in older versions).
- Under Files On-Demand, uncheck Save space and download files as you use them.
- Click OK. OneDrive will now download all your files. This can take a while if you have many files.
- Once the sync completes, you can re-enable Files On-Demand if you wish.
Fix 5: Unlink and Re-link Your Account
If none of the above works, unlinking your account forces a completely fresh start for the sync relationship.
- Right-click the OneDrive icon in the system tray and select Settings.
- Go to the Account tab and click Unlink this PC.
- Follow the prompts. Your files remain in the cloud and in your local OneDrive folder (they will no longer sync until you re-link).
- After unlinking, sign in again with your Microsoft account, and choose the folder you want to sync.
This is essentially a full reset of the sync engine. It is the last step before considering a complete reinstall of OneDrive.
Frequently Asked Questions
Will resetting OneDrive delete my files?
No. Resetting OneDrive (using the /reset command) only clears the local cache and sync database. Your files stay on your hard drive and in the cloud. After the reset, OneDrive will re-scan and re-sync, but nothing is deleted.
Why does the error only happen with one specific file?
That usually points to a file name or path issue. Check if the file name contains illegal characters, ends with a space or period, or if the full path is longer than 260 characters. Rename the file to something short and simple, then move it to the root of your OneDrive folder.
Does this error mean my files are corrupted?
No. 0x80070185 is a sync error, not a data corruption error. Your files in the cloud are safe. The error means OneDrive cannot complete a local operation (like downloading or uploading) due to a cache or path issue.
Can I ignore the error and continue using OneDrive?
You can, but the affected file will not sync. That means changes you make on one device will not appear on other devices, and you risk overwriting newer versions if you edit the same file elsewhere. It is best to fix the error before relying on that file.
What if the error appears after a Windows update?
Windows updates can sometimes change OneDrive’s permissions or reset its cache. Run the reset command (Fix 1) first. If that does not help, unlink and re-link your account (Fix 5).
Is there a way to prevent this error in the future?
Keep your file paths short, avoid illegal characters, and periodically restart OneDrive (right-click the tray icon > Pause syncing > Resume). Also make sure your Windows and OneDrive app are up to date, as Microsoft regularly fixes sync bugs.
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
- Google Chrome Helper: What It Is & How to Disable
- Fix 0x80070422 on Windows Server (Step-by-Step)
- Fix Status Range List Conflict 0xc0000282 in Windows
- Fix Software Not Uninstalling on Windows 10
- Hard Drive Missing Windows 10? Fixes That Work
- How to Troubleshoot a Malfunctioning Driver on Windows