OneDrive Red X Fix: Files Not Syncing on Windows Server
OneDrive shows red X on files? This is usually a sync conflict or credential issue. Here's the quick fix that works for most people.
That Red X Means Something's Broken
You open File Explorer, see a red X on your OneDrive files, and nothing's moving. Frustrating, right? I've seen this on dozens of small business servers. Usually it's a quick fix, but sometimes it's a deeper issue. Let's get your files syncing again.
The Main Fix: Reset OneDrive Credentials
Most of the time, the problem is OneDrive lost its connection to your Microsoft account. Happens after password changes, or when the server restarts oddly. Here's what I do first:
- Unlink OneDrive — Right-click the OneDrive icon in the system tray (near the clock), go to Settings > Account > Unlink this PC. Hit yes. Don't worry, files stay on disk.
- Clear the cache — Press Win+R, type
%localappdata%\Microsoft\OneDrive\settings\Personal. Delete everything in that folder. Close File Explorer. - Re-sign in — Open OneDrive from the Start menu. Sign in again with your work or school account. Let it re-sync for a minute.
Did that work? For about 7 out of 10 clients, it's enough. The red X goes away after the files re-check.
When That Doesn't Work: Kill the Sync Process
Sometimes OneDrive itself is stuck. Open Task Manager (Ctrl+Shift+Esc), look for Microsoft OneDrive processes. End them all. Then restart OneDrive from Start. This clears any hung sync loops. Had a client last month whose entire print queue died because of a stuck OneDrive sync — same fix.
Why This Works
The red X means OneDrive can't verify the file's status on the cloud. This happens when credentials are stale (your token expired), or the local cache got corrupted. Resetting credentials forces a fresh token. Clearing cache removes old metadata that conflicts with new data. It's like rebooting your car's computer — simple but effective.
Less Common Variations
If the main fix didn't work, try these:
1. File Name Conflict
OneDrive hates certain characters in file names: < > : " / \ | ? *. Also, files with very long paths (over 255 characters) cause issues. Rename the offending file or move it to a shorter folder. I had a client with a file named "Report - FINAL (v3 - DO NOT DELETE).docx" — the parentheses and dashes were fine, but the path was 270 characters. Shortened it, synced instantly.
2. OneDrive Stopped Syncing Pending Status
If you see "Pending" in the sync status, run this command in PowerShell as admin to force a sync:
Get-Process OneDrive | ForEach-Object { $_.Kill() } ; Start-Process "$env:LOCALAPPDATA\Microsoft\OneDrive\OneDrive.exe"
This kills and restarts OneDrive. The pending status usually means OneDrive is busy with another file.
3. Error 0x8004de40
This error code shows up when OneDrive can't reach the server. Check your firewall or proxy settings. The fix: add *.onedrive.com and *.live.com to your allow list. I've seen this on servers with strict outbound rules.
4. Windows Server OneDrive Issues
OneDrive isn't fully supported on Windows Server. If you're on Server 2019 or older, use the OneDrive for Business sync app (Groove.exe) instead. On Server 2022, the standard OneDrive app works but might need registry tweaks. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive and add a DWORD DisableFileSyncNGSC set to 0.
How to Prevent It From Coming Back
Once you fix it, don't let it happen again:
- Keep OneDrive updated — Enable automatic updates in OneDrive settings. Outdated versions glitch more.
- Limit file path length — Keep folder names short. Use
\ClientName\Year\Projectinstead of deep nesting. - Don't rename files while syncing — Wait until the green checkmark shows. Renaming mid-sync creates conflicts.
- Check for disk space — Full drives cause sync failures. OneDrive needs room for local cache.
That's it. Most of the time, unlinking and clearing cache fixes the red X. If not, check file names or the error code. You'll be back up and running in 10 minutes.
Was this solution helpful?