Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix OneDrive Error 0x8004da9a: Step-by-Step Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

OneDrive error 0x8004da9a usually appears when the app can’t sign in or sync because of a corrupted token, a cached credential, or a network issue. The quickest fix is to sign out of OneDrive, clear the cached credentials, and sign back in. Below is a complete step-by-step guide that works on Windows 10 and Windows 11.

What You'll Need

  • Your Microsoft account credentials (email and password)
  • Administrator access to your Windows PC (for some steps)
  • A stable internet connection

Step-by-Step

  1. Close OneDrive completely. Right-click the OneDrive cloud icon in the system tray (bottom-right near the clock) and select Exit. If you don’t see the icon, click the upward arrow to show hidden icons. If OneDrive is still running, open Task Manager (Ctrl+Shift+Esc), find “OneDrive” under Processes, right-click it, and choose End Task.
  2. Clear OneDrive’s cached credentials. Open the Run dialog (Windows key + R), type %localappdata%\Microsoft\OneDrive\settings and press Enter. In that folder, look for files named Business1 or Personal (they may have numbers after them). Delete those files. This removes the stored sign-in token. If you’re not sure which ones to delete, move them to your Desktop instead of deleting permanently—you can restore them if needed.
  3. Reset OneDrive. Press Windows key + R, type onedrive.exe /reset and press Enter. A command prompt window may flash briefly, and OneDrive will restart automatically. Wait a few seconds for the icon to reappear in the system tray. If it doesn’t, type onedrive.exe in the Run dialog and press Enter.
  4. Sign back into OneDrive. Click the OneDrive icon in the system tray, then click Sign in. Enter your Microsoft account email and password. If you use two-step verification, complete that as well. Choose your OneDrive folder location and click Next to start syncing.
  5. Check your date and time settings. Incorrect system time can cause authentication errors. Go to Settings > Time & Language > Date & time and ensure “Set time automatically” and “Set time zone automatically” are both toggled on. If they are already on, toggle them off, wait a few seconds, and toggle them back on.
  6. Run the OneDrive sync troubleshooter. Open Settings > Update & Security > Troubleshoot > Additional troubleshooters (on Windows 10) or Settings > System > Troubleshoot > Other troubleshooters (on Windows 11). Find “OneDrive” in the list and run it. Follow any prompts it gives.
  7. Repair or reinstall OneDrive. If the error persists, go to Settings > Apps > Apps & features, find “Microsoft OneDrive”, click it, and select Repair. If that doesn’t help, uninstall OneDrive and reinstall it from the official Microsoft website. Your files remain in the cloud and on your PC—you won’t lose any data.

Common Mistakes

  • Not closing OneDrive before deleting cache files. If OneDrive is still running, it may recreate the corrupted token files immediately, so the fix won’t work.
  • Deleting the wrong files. The settings folder contains many files. Only delete the ones that look like Business1 or Personal (or similar). Don’t delete the entire folder unless you’re comfortable resetting all OneDrive settings.
  • Skipping the reset command. The /reset command is essential because it clears the app’s internal state. Just signing out and back in may not remove the underlying corruption.
  • Ignoring system time. A wrong date or time can cause SSL certificate validation to fail, which shows up as error 0x8004da9a even though the network is fine.

Tips

  • Always sign out of OneDrive before attempting any cache-related fix. Right-click the tray icon and choose Sign out first, then close it.
  • If you have multiple OneDrive accounts (personal and work/school), make sure you’re signing into the correct one. The error can appear if the token for one account is corrupted while the other works fine.
  • Keep OneDrive updated. Microsoft regularly releases updates that fix sync bugs. Check for updates in the OneDrive settings or download the latest version from the official site.
  • If you’re on a corporate network, a proxy or firewall might block OneDrive’s authentication servers. Try connecting to a different network (like a mobile hotspot) to see if the error goes away.

Troubleshooting

If the steps above don’t resolve the error, try these additional checks in order:

  1. Check Microsoft’s service status. Visit the Microsoft 365 Service Health page (or the OneDrive status page) to see if there’s an ongoing outage. If there is, you’ll need to wait until it’s resolved.
  2. Disable third-party antivirus temporarily. Some security software can interfere with OneDrive’s authentication. Temporarily disable your antivirus (not Windows Defender) and try signing in again. Re-enable it immediately after testing.
  3. Create a new Windows user profile. If the error is tied to your user account’s registry or permissions, creating a new local user account and signing into OneDrive from there can isolate the issue. If it works, you may need to migrate your files to the new profile.
  4. Use the “Reset” option in Windows Settings. Go to Settings > Apps > Apps & features, find OneDrive, click Advanced options, and select Reset. This clears the app’s data and settings (but not your files). You’ll need to sign in again.
  5. Check for Windows updates. Go to Settings > Update & Security > Windows Update and install any pending updates. A system-level update can fix underlying authentication components.

If none of these work, the issue may be with your Microsoft account itself. Try signing into account.microsoft.com in a browser to verify your password and security info. If you can’t sign in there, reset your password and then try OneDrive again.

Frequently Asked Questions

Will I lose my files if I reset OneDrive?

No. Resetting OneDrive only clears the app’s local configuration and cache. Your files remain in the cloud and on your PC—they just won’t sync until you sign in again.

Does this error affect both personal and work OneDrive accounts?

Yes, error 0x8004da9a can appear for either type of account. The fix is the same, but make sure you’re clearing the correct token file (e.g., Personal vs Business1).

Why does the error happen after a Windows update?

Windows updates can change how OneDrive handles authentication tokens. A stale or corrupted token from before the update can trigger this error. The reset steps above usually resolve it.

Can I fix this error on a Mac?

Error 0x8004da9a is specific to Windows. On a Mac, the equivalent issue is usually resolved by quitting OneDrive, clearing the app’s cache from ~/Library/Application Support/OneDrive, and restarting the app.

Is there a way to prevent this error from happening again?

Keeping OneDrive and Windows updated, and regularly signing out and back in when you change your Microsoft account password, can reduce the chances of token corruption.

What if I don’t see the OneDrive icon in the system tray?

Press the Windows key, type “OneDrive” and open the app. If it doesn’t start, type onedrive.exe in the Run dialog (Windows key + R) and press Enter. The icon should appear after a few seconds.