logo
search
OneDrive Error Codes

How to Fix OneDrive Error 0x8004def5 When Creating Files or Signing In

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

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.
Before you start

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.

Solution 1

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.

1
Open a Private Window

Launch your web browser and open a New Incognito or InPrivate window. Navigate to the OneDrive website and sign in.

2
Check File Creation

Attempt to create a new document or open the settings menu. If it works, clear your standard browser cache and cookies.

3
Verify Storage Quota

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.

Free Microsoft Office alternative

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. 1. Download and Install: Get the free version of WPS Office from the official website and install it on your device.
  2. 2. Activate WPS Cloud: Sign in with your email or Google account to automatically activate your free WPS Cloud storage space.
  3. 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.
Fully compatible with Microsoft Office formats, including DOCX, XLSX, and PPTX.Built-in WPS Cloud storage for easy and reliable file synchronization across devices.Free core features, providing an excellent alternative to paid Microsoft 365 subscriptions.Lightweight design with a familiar interface, requiring zero learning curve for new users.
microsoft office alternative - wps office

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.