OneDrive error codes explained
What common OneDrive error codes such as 0x8004de40, 0x8004def7 and 0x8007016A indicate according to Microsoft, and where to start fixing each one.
The problem
OneDrive error codes point to the area of the problem: sign-in, connection, storage, Files On-Demand or the app itself. Identify the area first; the fix follows from it.
None of the codes below are caused by file names or paths. Naming problems appear as sync errors on the individual file, not as one of these codes.
Error code reference
| Code | What it indicates | Where to start |
|---|---|---|
| 0x8004de40 | OneDrive cannot connect to the cloud while signing in (also 0x8004de88). | Check the internet connection, then TLS 1.2 support and proxy settings. Reset OneDrive if it persists. |
| 0x8004def7 | Storage capacity exceeded, or the account has been suspended. | Check your storage and account status, and free up space. |
| 0x8007016A | A problem related to Files On-Demand. | Update Windows, sign in, turn off “Save space and download files as you use them”, reset OneDrive, then turn it on again. |
| 0x80070005 | A problem with OneDrive updates, or Known Folder Move blocked by a Group Policy. | Install Windows updates and reinstall OneDrive. For Known Folder Move, the administrator reviews the policy. |
| 0x8004deb4 | Sign-in failure with a work or school account after certain older Office updates. | Update Office and OneDrive. Microsoft documents a registry workaround for administrators. |
| 0x8004de85, 0x8004de8a | The account is missing, or the signed-in account does not match. | Sign in with the correct account and check the Account tab in OneDrive settings. |
| 0x8004ded7 | An outdated version of OneDrive. | Install the latest Windows updates and the current OneDrive app. |
| 0x8004de90 | OneDrive setup has not been completed. | Open OneDrive and finish the setup steps. |
| 0x8004def0 | Account credentials have changed or expired. | Confirm you can sign in to other Microsoft services, then sign in to OneDrive again. |
| 0x8004de96 | Appears after the Microsoft account password was changed. | Sign in again with the new password. |
Explanations summarize Microsoft’s published guidance. Follow the linked Microsoft articles for full, current instructions.
Symptoms
- OneDrive shows a dialog with an error code while signing in or starting.
- Sync stops and the OneDrive menu shows an error with a code.
Causes
Sign-in and accounts
0x8004de40, 0x8004deb4, 0x8004de85, 0x8004de8a, 0x8004def0 and 0x8004de96 relate to signing in or to the account itself.
Storage and account status
0x8004def7 relates to storage capacity or a suspended account.
App version and setup
0x80070005, 0x8004ded7 and 0x8004de90 relate to updates, old versions and incomplete setup.
Files On-Demand
0x8007016A relates to Files On-Demand.
How to fix it
-
Note the exact code
Write down the full code from the dialog. Codes that look similar can have different causes.
-
Find the code in the table
Use the table above to see which area it belongs to, then open the Microsoft article listed below for the full procedure.
-
Check the basics for that area
For sign-in codes, confirm the internet connection and the account. For storage codes, check your storage. For version codes, update Windows and OneDrive.
-
Reset OneDrive as a last step
If the error persists, reset OneDrive as described in the OneDrive not syncing guide. Reset disconnects all sync connections.
Before you change anything
- Registry and Group Policy changes, such as the workarounds for 0x8004deb4 and 0x80070005, should be made by an administrator. Microsoft notes that the 0x8004deb4 registry value is a temporary workaround.
- In an organization, contact your IT help desk before changing TLS, policy or device settings.
Related software
OneDriveSyncFixer does not fix these error codes. It addresses file and folder names and path lengths only.
Microsoft documentation
- What do the OneDrive error codes mean? (opens in a new tab)support.microsoft.com
- Error code 0x8004de40 or 0x8004de88 when signing in to OneDrive (opens in a new tab)learn.microsoft.com
- Error code 0x8004deb4 when signing in to OneDrive (opens in a new tab)support.microsoft.com
- Reset OneDrive (opens in a new tab)support.microsoft.com
This guide summarizes Microsoft’s published guidance in our own words. Microsoft documentation remains the authoritative source.
Related guides
Keep troubleshooting
-
OneDrive not syncing on Windows: a step-by-step checklist
Work through the usual reasons OneDrive stops syncing, in order: sign-in, paused sync, storage, problem files, app version and finally a reset.
-
OneDrive stuck on “Sync pending” or “Processing changes”
What “Sync pending” and “Processing changes” mean, why they can last for hours, and how to find the hidden, temporary or open file that is holding sync back.
-
SharePoint library won’t sync: causes and fixes
Troubleshoot SharePoint libraries that will not sync with the OneDrive app: a missing Sync button, read-only libraries, credentials, conflicts and the naming and size rules.