Error Details
| Fact | Value | Source | Note |
|---|---|---|---|
| Exact error string | ODAPI_E_NETWORK_NOTCONNECTED — The cloud file provider is not running or not connected | OneDrive sync log and event logs | -> Indicates network connectivity issue |
| Affected OS builds | Windows 10 / Windows 11 | Microsoft documentation | -> Applies to both operating systems |
| Registry key involved | HKCU\SOFTWARE\Microsoft\OneDrive\Accounts\Business1 | Windows Registry | -> Contains user credentials and endpoint URLs |
| Relevant service URL | *.sharepoint.com, onedrive.live.com, *.files.1drv.com | OneDrive network endpoints | -> Commonly blocked by proxies or firewalls |
| Log line signature | Sync failed with error code 0x8004de40 | OneDrive event logs | -> Identifies the specific sync failure event |
Log Files to Check
%LOCALAPPDATA%\Microsoft\OneDrive\logs\Business1\SyncDiagnostics.logC:\Windows\System32\winevt\Logs\OneDrive-Operational.evtx
What This Error Actually Means
The error code0x8004de40 (ODAPI_E_NETWORK_NOTCONNECTED) indicates that OneDrive for Business cannot establish a connection to Microsoft 365 cloud storage. This issue arises when the OneDrive sync client fails to authenticate or communicate with the SharePoint Online tenant endpoint. The error is typically logged in the OneDrive tray icon as "OneDrive sync is paused" or "Can't connect to OneDrive," and synced files display a red circle-X overlay in File Explorer.
The root of this issue lies in the OneDrive synchronization engine, specifically when it cannot reach the Microsoft 365 cloud storage endpoints. This can occur due to network connectivity issues, authentication failures, misconfigured proxy settings, or problems with the device's system clock.
Affected Versions and Scope
This error affects Windows 10 and Windows 11 operating systems running OneDrive for Business. It is not specific to any particular version of OneDrive but is more commonly observed in environments with strict network policies, conditional access requirements, or complex tenant configurations. Organizations using Microsoft 365 with customized SharePoint endpoints or those that have recently migrated tenants are particularly susceptible.Where To Look First: Logs and Event IDs
To diagnose this issue, examine the following logs: 1. **OneDrive Sync Log**:%LOCALAPPDATA%\Microsoft\OneDrive\logs\Business1\SyncDiagnostics.log. Search for entries containing '0x8004de40' or 'ODAPI_E_NETWORK_NOTCONNECTED'.
2. **OneDrive Event Log**: Open Event Viewer and navigate to Applications and Services Logs > OneDrive > Operational. Look for events with the ID 1003 (Sync failed) containing the error code 0x8004de40.
3. **General OneDrive Log**: %LOCALAPPDATA%\Microsoft\OneDrive\logs\Business1\general.keystore.log. Search for entries with 'loginError' or 'network'.
Use the following PowerShell cmdlet to search for relevant events:
Get-WinEvent -LogName "Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin" -MaxEvents 50 | Where-Object { $_.Id -eq 1003 }
Root Causes
Expired OAuth2 Token with Conditional Access Block
OneDrive uses OAuth2 tokens for authentication. If the token has expired and interactive sign-in is blocked by a Conditional Access policy, OneDrive cannot refresh the token, leading to this error.Network Connectivity Issues
Corporate proxies or firewalls may block access to Microsoft 365 endpoints such as*.sharepoint.com, onedrive.live.com, and *.files.1drv.com. Verify network connectivity using:
Invoke-WebRequest -Uri https://onedrive.live.com
Device Clock Synchronization Issues
If the device's clock is out of sync by more than 5 minutes, token validation fails. Check the system clock with:w32tm /query /status
Stale Credentials in Credential Manager
The Windows Credential Manager may retain outdated OneDrive credentials, preventing re-authentication. Clear these entries to resolve the issue.Fix Procedure
- Reset OneDrive Credentials: Open Credential Manager (
credwiz.exe) and remove entries for 'OneDrive Cached Credential' and any 'MicrosoftOffice16_Data'. Sign out of OneDrive from the tray icon, unlink the account in Settings > Account, then re-sign in. - Verify System Clock: Use
w32tm /query /status. If the clock is unsynchronized, runw32tm /resync /force. - Check Proxy Settings: Run
netsh winhttp show proxyand test connectivity withInvoke-WebRequest -Uri https://onedrive.live.com. Update proxy bypass lists as needed. - Run OneDrive Troubleshooter: Access via the tray icon > Settings > About > Diagnostics. Alternatively, reset OneDrive using
C:\Program Files\Microsoft OneDrive\OneDrive.exe /reset. - Address Conditional Access Policies: Navigate to Entra admin center > Sign-in logs and review policies affecting 'OneDrive SyncEngine'. Ensure devices comply with access requirements.
Error Code Variants
| Error Code | Description | Distinguishing Factors |
|---|---|---|
| 0x8004de40 | ODAPI_E_NETWORK_NOTCONNECTED | Network or authentication failure preventing OneDrive sync. |
| 0x8004de41 | ODAPI_E_NO_CONNECTION | Temporary network disconnection, typically resolves on reconnection. |
| 0x80072ee7 | E_POLICY_ERROR | Conditional Access policy blocks access entirely. |
Verification
After applying fixes, verify success by checking: - OneDrive tray icon shows syncing (green checkmark). - File Explorer overlays confirm files are synced. - Event Viewer no longer logs error code0x8004de40.
- Entra admin center sign-in logs show successful authentication.
Prevention
Implement the following policies: 1. Ensure devices maintain accurate time via NTP synchronization. 2. Monitor and update proxy configurations to allow OneDrive endpoints. 3. Review Conditional Access policies to prevent blocking legitimate access. 4. Use Intune to enforce device compliance requirements.
Warning: Clearing credentials in Credential Manager may affect other Microsoft services. Ensure users have alternate methods to re-authenticate.
Tip: Use
dsregcmd /status to quickly verify device enrollment status and identify potential compliance issues.