Migration Creates Duplicate Root Folders: OneDrive for Business Fix
🔍 WiseChecker

Migration Creates Duplicate Root Folders: OneDrive for Business Fix

When migrating user data to OneDrive for Business, administrators sometimes see two folders with the same name appear at the top of the user’s OneDrive root. This happens when a migration tool or manual copy creates a folder inside another folder with the same name, or when OneDrive syncs a local folder structure that includes a top-level folder that already exists in the cloud. The duplicate root folders cause confusion, file duplication, and can break sync for affected users. This article explains why duplicate root folders appear after migration and provides a reliable method to remove the extra folder and restore a clean OneDrive structure.

Key Takeaways: Removing Duplicate Root Folders After OneDrive Migration

  • OneDrive web app > My files > Identify duplicate folder: Locate the extra folder that has the same name as another folder at the root level.
  • Move or rename the duplicate folder in the web app: Use the Move to command or rename the duplicate to separate its contents before deleting the empty shell.
  • Pause and resume OneDrive sync after cleanup: Force the sync client to re-evaluate the folder structure and remove the duplicate from the local File Explorer view.

ADVERTISEMENT

Why Migration Creates Duplicate Root Folders in OneDrive

Duplicate root folders occur when a migration process copies files to a user’s OneDrive in a way that creates a folder with the same name as an existing root folder. This often happens with tools like SharePoint Migration Tool, Mover.io, or manual drag-and-drop when the source folder structure includes a folder that matches a default OneDrive folder such as Documents, Pictures, or a custom folder that already exists in the target.

The root cause is that the migration tool or user action places the folder inside the existing root folder, but the tool also creates a second instance of that folder at the root level. For example, if a user already has a folder named Projects in their OneDrive root, and the migration attempts to copy a folder named Projects from the source, OneDrive may create a second Projects folder at the root instead of merging the contents into the existing one.

Another common scenario involves Known Folder Move. When KFM redirects Desktop, Documents, and Pictures to OneDrive, and a migration tool later copies those same folders again, OneDrive may create duplicate folders with names like Desktop 1 or Documents 1 at the root level. The sync client then shows both the original folder and the duplicate, leading to confusion and potential data loss if users delete the wrong folder.

Steps to Identify and Remove Duplicate Root Folders

Follow these steps to find the duplicate folder, move its contents to the correct folder, and delete the empty duplicate. Perform all actions in the OneDrive web app to avoid sync conflicts.

  1. Open OneDrive in a web browser
    Go to https://onedrive.live.com and sign in with the affected user’s Microsoft 365 account. This ensures you are working with the cloud copy of the files.
  2. Identify the duplicate folder
    Look at the root level of My files. You will see two folders with the same name. One folder contains the correct files; the other may contain a subset or the same files. Click each folder to compare contents.
  3. Move files from the duplicate to the correct folder
    Open the duplicate folder. Select all files and folders inside by pressing Ctrl + A. Click the Move to button in the toolbar. Navigate to the correct folder with the same name at the root level and click Move here. This merges the contents.
  4. Delete the now-empty duplicate folder
    After moving all contents, go back to the root level. Select the empty duplicate folder and click Delete. OneDrive sends the folder to the recycle bin. Confirm deletion if prompted.
  5. Empty the recycle bin
    Click Recycle bin in the left navigation. Select the deleted duplicate folder and click Delete permanently. This prevents the folder from reappearing during a future sync cycle.
  6. Pause and resume OneDrive sync on the user’s PC
    On the user’s computer, right-click the OneDrive cloud icon in the system tray. Select Pause syncing and choose 2 hours. After two hours, right-click again and select Resume syncing. This forces the sync client to re-evaluate the folder structure and remove the local copy of the duplicate folder.
  7. Verify the local folder structure
    Open File Explorer and navigate to the OneDrive folder. Confirm that only one instance of the folder appears at the root level. If the duplicate still appears, restart File Explorer by pressing Ctrl + Shift + Escape to open Task Manager, find Windows Explorer, right-click and select Restart.

ADVERTISEMENT

If OneDrive Still Has Issues After the Main Fix

The duplicate folder reappears after deletion

If the duplicate folder returns after you delete it, the migration tool may have set a sync rule that recreates the folder. Check the migration tool’s configuration to ensure it is not set to copy the folder again. For SharePoint Migration Tool, review the job settings and remove any folder-level mapping that targets the root of OneDrive. For Mover.io, verify that the source folder is not set to overwrite or merge with the target folder. Rerun the migration only for the affected folder with a merge rule instead of a copy rule.

OneDrive sync shows a red X on the duplicate folder

A red X on a folder in File Explorer indicates a sync error. This can happen if the duplicate folder was created with characters that OneDrive cannot sync, such as a trailing space or a period at the end of the folder name. To fix this, rename the duplicate folder in the OneDrive web app to remove the problematic character. For example, rename Projects. to Projects. After renaming, delete the folder and follow the steps above to move its contents to the correct folder. Then resume sync on the user’s PC.

The user cannot delete the duplicate folder because it contains files

If the duplicate folder contains files that you cannot move due to permission restrictions, the user may not have edit permissions on the parent folder. Check the folder permissions in the OneDrive web app by right-clicking the duplicate folder and selecting Manage access. Ensure the user has Can edit permission. If not, assign edit permission through the Microsoft 365 admin center under Users > Active users > select the user > OneDrive settings. After granting permission, retry the move operation.

Files On-Demand vs Manual Cleanup: Key Differences

Item Files On-Demand Cleanup Manual Web App Cleanup
Description Uses OneDrive Files On-Demand to delete the local duplicate without removing the cloud copy Requires logging into the OneDrive web app to move files and delete the duplicate folder
Steps required Right-click the duplicate folder in File Explorer > Free up space; then delete the online-only folder from the web app Move files via web app, delete the empty folder, empty recycle bin, then pause and resume sync
Risk Low if Files On-Demand is already enabled; user may accidentally delete the cloud copy if not careful Low if steps are followed exactly; user must remember to empty the recycle bin
Best for Users who prefer to work from File Explorer and have Files On-Demand turned on Administrators performing remote cleanup for users who cannot access their PC

Duplicate root folders after migration are a common but fixable issue. By identifying the extra folder, moving its contents to the correct folder, and cleaning up both the OneDrive recycle bin and the local sync cache, you can restore a clean folder structure. For future migrations, configure the migration tool to merge folders with the same name instead of creating copies. This prevents duplicates from occurring in the first place.

ADVERTISEMENT