sodcalculator

10 Tech How-To

OneDrive Error 0x80040c97 Fix on Windows 10

Guide 10-53499 · Updated · Step by step

OneDrive error 0x80040c97 on Windows 10 usually means the sync client can’t write to your local OneDrive folder, often due to a corrupted cache, a permissions problem, or a conflict with another program. The fix is to reset the OneDrive app, clear the cached credentials, and then re-link your account — most users resolve it in under ten minutes without reinstalling Windows.

What Causes Error 0x80040c97

This error code is a generic sync failure that Microsoft’s OneDrive client throws when it cannot complete an upload or download operation. The most common triggers are:

  • Corrupted OneDrive cache – the local database that tracks file states gets out of sync.
  • File permission issues – the OneDrive folder or its subfolders have restricted ACLs that block the sync engine.
  • Antivirus or firewall interference – security software locks files mid-transfer, causing the client to abort.
  • Network or proxy problems – a flaky connection or a misconfigured proxy can interrupt the sync process.
  • Outdated OneDrive version – older builds have known bugs that were patched in later releases.

Before You Start: Quick Checks

Try these low-effort steps first; they often fix the error without a full reset:

  1. Right-click the OneDrive cloud icon in the system tray and choose Pause syncing, wait 30 seconds, then Resume syncing.
  2. Check that your Windows date, time, and time zone are correct – an incorrect clock breaks the authentication handshake.
  3. Make sure you have enough free disk space on the drive where OneDrive is installed (at least 1 GB for the cache).
  4. If you use a VPN or proxy, disconnect and try again. If that works, add OneDrive to the proxy exception list.
  5. Run Windows Update and install any pending updates, then restart your PC.

Reset OneDrive (The Main Fix)

Resetting OneDrive clears the cached sync state and re-establishes the connection without deleting your files. This is the most reliable fix for 0x80040c97.

  1. Press Win + R to open the Run dialog.
  2. Type %localappdata%\Microsoft\OneDrive\onedrive.exe /reset and press Enter. (If you’re using the Microsoft Store version, the path is %localappdata%\Microsoft\OneDrive\onedrive.exe – the reset switch works the same.)
  3. A command prompt window may flash briefly, then the OneDrive icon disappears from the tray.
  4. Wait 30–60 seconds, then launch OneDrive again from the Start menu. It will re-initialize and ask you to sign in.
  5. Sign in with your Microsoft account and let it re-sync. Your files remain on disk, so no data is lost.

If the reset command doesn’t work, you can also try Unlink this PC from OneDrive settings, then sign back in. This is a softer reset that often clears the error.

Clear Cached Credentials

Sometimes the error is caused by stale authentication tokens. Clearing the Windows Credential Manager entries for OneDrive forces a fresh login.

  1. Open Control Panel → User Accounts → Credential Manager.
  2. Click Windows Credentials.
  3. Look for entries that start with OneDrive Cached Credential or contain MicrosoftOffice16 or OneDrive.
  4. Click the entry and choose Remove. Do this for all OneDrive-related entries.
  5. Restart OneDrive and sign in again.

Note: Removing credentials will require you to re-enter your password for OneDrive, but it won’t affect other Microsoft services.

Check File Permissions and Folder Location

If the reset doesn’t help, the problem may be with the OneDrive folder itself. Windows 10 sometimes changes permissions after a major update.

  • Right-click your OneDrive folder (usually C:\Users\YourName\OneDrive) → Properties → Security tab.
  • Ensure your user account has Full control. If not, click Edit and grant it.
  • If the folder is on an external drive or a network location, move it back to the default local path. OneDrive doesn’t support syncing to network drives.
  • Check that the folder name doesn’t contain characters like &, #, or trailing spaces – these can break the sync engine.

Reinstall or Update OneDrive

If none of the above works, a clean reinstall of the OneDrive client is the next step. This replaces all program files and resets the configuration.

  1. Press Win + I → Apps → Apps & features.
  2. Find Microsoft OneDrive in the list, click it, and choose Uninstall.
  3. Restart your PC.
  4. Download the latest OneDrive installer from Microsoft’s official site (or install from the Microsoft Store if you prefer).
  5. Install and sign in. Your files will re-sync from the cloud.

Make sure you’re running the latest version – Microsoft regularly fixes sync bugs. You can check the version by right-clicking the OneDrive icon → Settings → About.

Frequently Asked Questions

Will resetting OneDrive delete my files?

No. Resetting OneDrive only clears the local cache and re-establishes the sync connection. Your files remain on your hard drive and in the cloud. The only risk is if you have unsynced changes – they stay in the local folder, but the reset won’t remove them.

Why does error 0x80040c97 happen after a Windows update?

Windows updates can change file permissions, network settings, or the OneDrive app itself. If the update corrupts the OneDrive cache or alters the folder’s ACLs, the sync client may fail with this error. Resetting OneDrive usually resolves it.

Can I use a third-party tool to fix this error?

It’s not recommended. Most third-party “OneDrive repair” tools are unnecessary and may contain malware. The built-in reset and reinstall methods are safe and effective. If those fail, contact Microsoft support.

Does this error affect my files in the cloud?

No. The error is local – it only affects the syncing process. Your files in OneDrive.com remain intact. The problem is that changes you make locally won’t upload, and changes made elsewhere won’t download until the sync is fixed.

How long does it take to fix?

Most users fix it in under 15 minutes by following the reset steps. If you need to reinstall OneDrive, add another 5–10 minutes. The actual sync time depends on how many files you have.

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

The whole Tech How-To bed →