You see the OneDrive sync icon spinning endlessly for the same file, or the upload progress bar keeps restarting without completing. This usually happens when a file’s metadata, permissions, or content triggers repeated sync attempts. OneDrive for Business compares file timestamps, size, and checksums to decide if a file needs uploading. If the file changes even slightly or the sync engine gets stuck in a loop, the same file uploads over and over. This article explains the root causes and provides step-by-step fixes to stop the loop.
Key Takeaways: Stop OneDrive from Re-uploading the Same File
- OneDrive Settings > Sync and backup > Advanced settings > Files On-Demand: Disabling and re-enabling Files On-Demand can reset the sync state for a stuck file.
- OneDrive > Pause syncing > Quit OneDrive > Restart PC: A full restart of the sync engine clears temporary file locks and sync queue errors.
- File Explorer > Right-click file > Properties > Details > Remove Properties and Personal Information: Strips metadata that may cause false change detection, such as Office document author or revision numbers.
Why OneDrive Re-uploads the Same File
OneDrive uses a change detection mechanism based on file modification time, size, and a content checksum. When a file appears to change, OneDrive adds it to the upload queue. Common triggers for repeated uploads include:
- Office file metadata updates: Applications like Word, Excel, and PowerPoint write temporary metadata such as author, revision number, or last-saved-by fields even if you do not edit the content. OneDrive sees this as a file change and re-uploads the file.
- File in use by another process: Antivirus software, backup tools, or cloud sync clients can lock a file and cause OneDrive to detect a change each time the lock is released.
- Corrupted local cache: The OneDrive sync database on your computer may have an incorrect record of the file state, causing it to compare against an older version and upload again.
- Known Folder Move conflicts: If you redirected Desktop, Documents, or Pictures to OneDrive and the same folder is synced by another service like Google Drive or Dropbox, file changes from the other service trigger repeated OneDrive uploads.
Steps to Stop OneDrive from Re-uploading the Same File
Follow these steps in order. Test after each step to see if the file stops uploading.
Step 1: Pause and Restart OneDrive Sync
- Pause syncing
Right-click the OneDrive cloud icon in the system tray near the clock. Select Pause syncing > 2 hours. - Quit OneDrive completely
Right-click the cloud icon again and choose Settings. In the Settings window, click the Account tab and then click Unlink this PC only if the file still loops after the next steps. For now, right-click the cloud icon and select Quit OneDrive. - Restart your PC
Click Start > Power > Restart. This clears any file locks held by OneDrive or other processes. - Restart OneDrive
After the PC restarts, open OneDrive from the Start menu. Let it sync. Check if the same file uploads again.
Step 2: Clear the OneDrive Sync Cache
- Quit OneDrive
Right-click the cloud icon and select Quit OneDrive. - Open the cache folder
Press Windows + R, type%localappdata%\Microsoft\OneDrive\, and press Enter. - Delete the cache
In the OneDrive folder, locate the settings folder. Inside it, delete all files and subfolders. Do not delete the settings folder itself. - Restart OneDrive
Open OneDrive from the Start menu. OneDrive will rebuild the sync cache and re-sync the file list. Check if the repeated upload stops.
Step 3: Remove Metadata from the Problem File
- Locate the file
Open File Explorer and navigate to the OneDrive folder that contains the file being re-uploaded. - Open file properties
Right-click the file and select Properties. - Remove metadata
Click the Details tab. Click Remove Properties and Personal Information. - Choose removal option
Select Remove the following properties from this file. Check all boxes, especially Author, Revision number, and Last saved by. Click OK. - Save and check
Click OK in the Properties window. OneDrive will detect the change and upload the file once. After that, the loop should stop.
Step 4: Temporarily Disable Files On-Demand
- Open OneDrive settings
Right-click the cloud icon and select Settings. - Navigate to Files On-Demand
Go to the Sync and backup tab. Click Advanced settings. - Disable Files On-Demand
Under Files On-Demand, uncheck Save space and download files as you use them. Click OK. - Re-enable after sync
Wait for OneDrive to sync all files. Then re-enable Files On-Demand using the same path. This resets the sync state for all files.
Step 5: Exclude the File from Antivirus Scanning Temporarily
- Open Windows Security
Click Start, type Windows Security, and press Enter. - Add an exclusion
Go to Virus & threat protection > Manage settings under Virus & threat protection settings. Scroll to Exclusions and click Add or remove exclusions. - Exclude the file
Click Add an exclusion > File. Browse to the problem file and select it. Click Open. - Test sync
Wait 5 minutes. Check if OneDrive stops re-uploading the file. If it does, the antivirus was interfering. Keep the exclusion or contact your IT admin to whitelist the OneDrive folder.
If OneDrive Still Re-uploads the Same File After the Main Fix
OneDrive Sync Queue Shows the Same File with an Error
Open the OneDrive activity center by clicking the cloud icon and selecting View sync problems. If the file shows a red X or a warning, click the entry to see the error message. Common errors include file name too long, file path too long, or file in use. Rename the file to a shorter name or move it to a subfolder closer to the root of the OneDrive folder.
Another Cloud Sync Service Is Modifying the File
If you use Google Drive, Dropbox, or iCloud on the same PC, check if those services are also syncing the same folder. Each service writes its own metadata or lock files, which OneDrive detects as a change. Move the OneDrive folder to a location not managed by other sync clients, or exclude the OneDrive folder from the other service’s sync settings.
OneDrive Keeps Uploading the Same File on a Shared PC
When multiple users sign in to the same PC with different OneDrive accounts, the sync engine may mix up file ownership. Each user should unlink their account and re-link only the account they need. Go to OneDrive settings > Account > Unlink this PC. Then sign in again.
Files On-Demand vs Always Keep on This Device: Effect on Repeated Uploads
| Item | Files On-Demand Enabled | Always Keep on This Device |
|---|---|---|
| Description | Files appear as online-only placeholders until you open them; they download on demand | Files are downloaded permanently and stay synced locally |
| Effect on repeated uploads | Can reduce false change detection because the local copy is not always present; metadata changes still trigger uploads | Increases chance of repeated uploads because the file is always present and may be touched by local processes |
| Best use case | When you work with large files or have limited disk space and want to minimize sync loops | When you need offline access and can tolerate occasional re-uploads |
You now have five methods to stop OneDrive from repeatedly uploading the same file. Start with pausing and restarting sync, then clear the cache if needed. For Office files, removing metadata often resolves the loop. If the problem persists, disable Files On-Demand temporarily or check for conflicts with antivirus and other sync services. As an advanced tip, you can use the OneDrive Diagnostic Tool (available from Microsoft Support) to generate a detailed sync log that pinpoints the exact file attribute causing the re-upload.