OneDrive Error Codes

Fix OneDrive Sync Error 0x8004de40 with SharePoint 2019 FBA

John WilsonJohn Wilson Nov 2, 2026 870 views

Question details

Users are unable to synchronize SharePoint 2019 libraries using OneDrive when Forms-Based Authentication (FBA) is enabled.

Fixing OneDrive Sync Error 0x8004de40 with SharePoint 2019 FBA
Product
OneDrive and SharePoint Server 2019
Device & OS
not provided
Scenario
Attempting to sync SharePoint 2019 document libraries to a local device using the OneDrive client configured with FBA.
Observed behavior
The synchronization fails with error code 0x8004de40. SharePoint ULS logs display unauthenticated requests, missing SMTP or UPN claims, and HTTP 403 Forbidden responses.
Before you start

Ensure you have your active domain credentials ready and verify whether your organization allows standard Windows Authentication as a fallback.

Solution 1Recommended

Test SharePoint Web Access in Incognito Mode

Isolate the issue by testing if the FBA login works correctly through a browser without cached credentials.

Before altering server configurations, you need to verify if the account can successfully authenticate to SharePoint Online and OneDrive on the web. Cached browser credentials can sometimes cause false authentication failures in FBA setups.

1
Open a Private Browser Window

Launch your web browser and open an InPrivate window (Edge) or Incognito window (Chrome) to ensure no existing sessions or cached tokens are used.

2
Access Office Online

Navigate to your organization's Office Online or SharePoint 2019 web portal.

3
Authenticate with FBA

Attempt to sign in using your Forms-Based Authentication credentials. Check if you can successfully access and browse your OneDrive and SharePoint document libraries.

Test SharePoint Web Access in Incognito Mode
Diagnostic Outcome: If web access works but the desktop sync still fails with error 0x8004de40, the issue resides in how the OneDrive client processes the SharePoint Server FBA claims.
Free Microsoft Office alternative

Tired of Complex Sync Errors? Try WPS Office

Troubleshooting SharePoint Server FBA issues and OneDrive error codes can drain your productivity. Switch to WPS Office, a highly compatible, free, and lightweight alternative that offers seamless built-in cloud synchronization without the complex server configurations.

  1. 1. Download WPS Office: Visit the official WPS website and download the free desktop application.
  2. 2. Sign In to WPS Cloud: Create a free account to activate your built-in WPS Cloud storage space.
  3. 3. Edit and Sync Seamlessly: Open your Microsoft Office formats directly and let WPS automatically sync your changes to the cloud without complex server authentication.
Completely free and lightweight Office alternativePerfect compatibility with Microsoft Office formats (Word, Excel, PowerPoint)Built-in WPS Cloud for hassle-free file synchronization across devicesFamiliar user interface requiring zero learning curve
microsoft office alternative - wps office

Frequently Asked Questions

What does OneDrive error code 0x8004de40 indicate?

Error code 0x8004de40 indicates that the OneDrive application is having trouble connecting to the cloud server. In the context of SharePoint Server 2019, this is typically caused by a failure in the Forms-Based Authentication process dropping necessary security tokens.

Why does Windows Authentication work but FBA fails for OneDrive sync?

Windows Authentication securely and natively passes your Active Directory tokens directly to SharePoint. FBA relies on a custom membership provider that must explicitly supply UPN and SMTP claims; if the server is misconfigured, these claims are missing, resulting in an HTTP 403 Forbidden error.

Can I fix the missing UPN claims in SharePoint myself?

No, fixing missing UPN or SMTP claims requires administrative access to the SharePoint Server 2019 environment and its authentication provider settings. You must contact your IT department or SharePoint administrator.