Fix OneDrive Sync Error 0x8004de40 with SharePoint 2019 FBA
Question details
Users are unable to synchronize SharePoint 2019 libraries using OneDrive when Forms-Based Authentication (FBA) is enabled.

- 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.
Ensure you have your active domain credentials ready and verify whether your organization allows standard Windows Authentication as a fallback.
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.
Launch your web browser and open an InPrivate window (Edge) or Incognito window (Chrome) to ensure no existing sessions or cached tokens are used.
Navigate to your organization's Office Online or SharePoint 2019 web portal.
Attempt to sign in using your Forms-Based Authentication credentials. Check if you can successfully access and browse your OneDrive and SharePoint document libraries.

Switch to Windows Authentication for Sync
Use Windows Authentication as a reliable workaround to synchronize your files.
Review SharePoint Server UPN and SMTP Claims
Escalate to your IT department to fix the missing claims in SharePoint Server 2019.
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. Download WPS Office: Visit the official WPS website and download the free desktop application.
- 2. Sign In to WPS Cloud: Create a free account to activate your built-in WPS Cloud storage space.
- 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.

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.




