You have moved a department from one file server share to another, but the OneDrive for Business sync tool missed a batch of files during the migration. The root cause is usually a mismatch between the file path that OneDrive cached and the new server location, combined with sync throttling on large folder moves. This article explains why the migration misses files and provides a step-by-step fix to recover every missing file without restarting the entire sync.
Key Takeaways: OneDrive File Server Migration — Recover Missing Files
- OneDrive Settings > Account > Choose folders: Select the new server share path to force a re-scan of the folder hierarchy.
- Windows File History or Previous Versions: Restore files from the original server location if OneDrive marked them as deleted.
- OneDrive Sync Health dashboard: Check for files excluded by size limits or blocked file types after migration.
Why OneDrive Misses Files During a Department File Server Move
When IT moves a department share to a new server or a new folder path, OneDrive does not automatically detect the change. The sync engine continues to reference the original server UNC path. Files that were moved to the new location appear as deleted in OneDrive because the old path no longer exists.
OneDrive for Business has a sync limit of 300,000 files per library. If the department folder contains more than that, the sync engine stops scanning and marks the remainder as not synced. Additionally, file names longer than 400 characters or paths exceeding 400 characters are silently skipped during migration. The OneDrive sync client does not move files across server boundaries. It only syncs files within the library that was originally configured.
File Path Changes and Sync Cache
OneDrive stores a local sync cache that maps each file to its server path. When the server path changes, the cache entry becomes orphaned. OneDrive then reports the file as missing or deleted. The sync client does not automatically update the cache to point to the new server location. You must manually re-add the new path as a sync folder.
File Size and Type Restrictions
OneDrive for Business skips files larger than 250 GB. Files with blocked extensions such as .exe, .dll, or .ps1 are also excluded. During a migration, these files are not copied to OneDrive and appear as missing. The admin must verify that no blocked file types or oversized files were part of the department move.
Steps to Fix Missing Files After a Department Server Migration
Follow these steps in order. Do not skip any step. The goal is to force OneDrive to re-scan the new server location and restore files that were incorrectly marked as deleted.
- Stop OneDrive Sync Temporarily
Right-click the OneDrive cloud icon in the system tray. Select Pause syncing and choose 2 hours. This prevents OneDrive from deleting local copies of files that appear missing. - Verify the New Server Path
Open File Explorer and navigate to the new department share. Confirm that the files are present on the server. Note the exact UNC path, for example \\fileserver02\departments\hr. - Unlink the Old OneDrive Folder
Open OneDrive settings. Go to the Account tab. Click Unlink this PC. Confirm the action. This removes the old sync relationship but does not delete local files. - Re-add OneDrive with the New Path
Open OneDrive again. Sign in with the same work account. On the Sync files from your cloud screen, click the link that says Sync files and folders. Navigate to the new server path and select the department folder. Click Start sync. - Force a Full Re-scan
After the initial sync starts, open OneDrive settings. Go to the Account tab. Click Choose folders. Deselect all folders and click OK. Wait 30 seconds. Then open Choose folders again, select the department folder, and click OK. This triggers a full re-scan of the folder structure. - Check for Files Excluded by Size or Type
Open the OneDrive Sync Health dashboard. Go to the Excluded files tab. Look for any files that were skipped due to size limits or blocked extensions. If you find critical files, move them to a different folder or rename the extension temporarily to allow sync. - Restore Files from Previous Versions
If files remain missing, right-click the parent folder in File Explorer and select Restore previous versions. Choose a version from before the migration. Copy the missing files to a local folder, then drag them into the synced OneDrive folder.
If OneDrive Still Misses Files After the Main Fix
OneDrive Shows a Deleted File Icon on All Files
This happens when OneDrive interprets the server move as a mass deletion. Open OneDrive settings > Account > Choose folders. Deselect the department folder and click OK. Wait for OneDrive to remove the local copies. Then re-select the folder and click OK. OneDrive will re-download the files from the new server path.
Files Are Present on Server but Not in OneDrive Web
The files were never uploaded because OneDrive could not reach the original server path. Use the OneDrive web interface at onedrive.com. Click the Upload button and select Folder. Navigate to the new server path and upload the missing folder. Then sync it to your PC.
OneDrive Sync Throttles and Stops Halfway
OneDrive has a per-library limit of 300,000 files. If the department folder exceeds this, split the folder into sub-folders of 200,000 files each. Sync each sub-folder separately by using the Choose folders option in OneDrive settings.
OneDrive Sync vs Robocopy for Department Migrations
| Item | OneDrive Sync | Robocopy |
|---|---|---|
| File path handling | Requires exact UNC path match | Copies regardless of path changes |
| File size limit | 250 GB per file | No limit |
| File type blocking | Blocks .exe, .dll, .ps1 and others | No blocking |
| Sync cache | Stores path mapping locally | No cache |
| Best for | Ongoing collaboration | One-time bulk migration |
For future department moves, use Robocopy with the /MIR option to mirror the source to the destination. Then configure OneDrive to sync the new location. This avoids the file-missing problem entirely.
You can now recover missing files after a department server migration by unlinking and re-adding OneDrive with the new path. Always verify the file count in the OneDrive Sync Health dashboard after the re-scan completes. For large migrations, use Robocopy first, then point OneDrive to the new folder. This two-step approach prevents files from being missed during the move.