How to Fix OneDrive Error 0x8004def5 When Creating Files or Signing In
Question details
The user is unable to create documents or access settings on OneDrive for Web, and cannot sign into the OneDrive desktop application due to error code 0x8004def5.
- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to create a new file via the web portal or trying to authenticate and sign into the desktop sync client.
- Observed behavior
- OneDrive on the web fails to create new documents or open the settings menu. Meanwhile, the desktop client completely fails to sign in, returning the specific error code 0x8004def5.
Verify your Microsoft account storage quota on the web to ensure your account is not frozen due to exceeding storage limits, and confirm whether you are logging in with a personal or work/school account.
Use Private Browsing and Check Storage Status
Use this solution to rule out browser cache issues and verify if a full storage quota is preventing file creation on OneDrive Web.
Launch your web browser and open a New Incognito or InPrivate window. Navigate to the OneDrive website and sign in.
Attempt to create a new document or open the settings menu. If it works, clear your standard browser cache and cookies.
If you still cannot create files, look at the bottom-left corner of the OneDrive web interface to check if your storage is full. If full, you will need to delete unnecessary files or upgrade your storage plan.
Clear Saved Microsoft Credentials
Clearing old or corrupted cached credentials on your desktop can resolve authentication loops and sign-in errors like 0x8004def5.
Reset the OneDrive Desktop Client
Resetting the application clears internal sync data and configuration errors, making it the most effective way to fix persistent 0x8004def5 sign-in issues.
Experience Seamless File Management with WPS Office
If persistent OneDrive errors and sync failures are disrupting your workflow, consider switching to WPS Office. As a lightweight, highly compatible alternative to Microsoft Office, it features integrated WPS Cloud storage that offers seamless and reliable document synchronization without the frustrating sign-in errors.
- 1. Download and Install: Get the free version of WPS Office from the official website and install it on your device.
- 2. Activate WPS Cloud: Sign in with your email or Google account to automatically activate your free WPS Cloud storage space.
- 3. Save and Sync: Open your existing Word, Excel, or PowerPoint files and save them directly to WPS Cloud for instant syncing across your computer and mobile phone.

Frequently Asked Questions
What causes OneDrive error code 0x8004def5?
This error is typically caused by corrupted cached credentials, network connectivity issues disrupting the authentication process, or conflicts when both personal and work accounts are configured improperly on the same desktop client.
Will resetting OneDrive delete my local files?
No, resetting the OneDrive application only restores its internal settings to default and clears configuration caches. It does not delete your local files or any previously synced data.
Why can't I create files on the OneDrive web portal?
If you cannot create files on the web, it usually means either your browser's cache is causing a script error, or your Microsoft account has exceeded its storage quota, effectively freezing your ability to upload or create new items.




