Knowledge - Details
OneDrive Sync is broken - missing files, says files already exist when they don't
Date Added: 12/2/2022
Date Added: 12/2/2022
Problem: OneDrive fails to sync a folder from Sharepoint to a local folder on the PC. Some files are just missing from the PC or the server, and won't sync to the other location. OneDrive might show a "Sync Error" complaining that a file/folder you dragged into the local path already exists on the server (even though it actually does not), so it wants you to rename the local folder to fix the sync. Cause: OneDrive bugs. Apparently, OneDrive maintains a list of contents of the local PC and the server, and uses that list to decide what to sync. If that list of contents gets corrupt or out of sync from reality, OneDrive isn't smart enough to detect it and fix it. Solution: Run this command from the command prompt (not as admin): C:\Program Files\Microsoft OneDrive\onedrive.exe /reset OneDrive will automatically close and restart itself, and will display a message saying it has been reset. Then, OneDrive will immediately begin syncing things correctly.
Disclaimer: Everything on this website is written for my own use. I disclaim any guarantees that the procedures and advice listed here are accurate, safe, or beneficial for anyone else. If you attempt to follow any procedures or advice shared here, you do it at your own risk. Part of IT work is knowing how to recover from problems.