Fixity Labs

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.

Updated
Reading time
2 min
Applies to
OneDrive for Windows, OneDrive for work or school

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

CodeWhat it indicatesWhere to start
0x8004de40OneDrive 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.
0x8004def7Storage capacity exceeded, or the account has been suspended.Check your storage and account status, and free up space.
0x8007016AA 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.
0x80070005A 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.
0x8004deb4Sign-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, 0x8004de8aThe 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.
0x8004ded7An outdated version of OneDrive.Install the latest Windows updates and the current OneDrive app.
0x8004de90OneDrive setup has not been completed.Open OneDrive and finish the setup steps.
0x8004def0Account credentials have changed or expired.Confirm you can sign in to other Microsoft services, then sign in to OneDrive again.
0x8004de96Appears 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

  1. Note the exact code

    Write down the full code from the dialog. Codes that look similar can have different causes.

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

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

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

This guide summarizes Microsoft’s published guidance in our own words. Microsoft documentation remains the authoritative source.

Related guides