When you edit an Office file in OneDrive for Business, the sync status may display “Sync Pending” for hours or never clear. This happens because Office applications lock the file during editing, and OneDrive waits for the lock to release before uploading changes. The problem becomes permanent when the lock is not released due to a crashed Office process, a stale file handle, or a conflict with real-time co-authoring. This article explains why the pending state gets stuck specifically for Office documents and provides the exact steps to force the sync to complete.
Key Takeaways: Clear Stuck Sync Pending on Office Files
- OneDrive > Settings > Office > Use Office 2016 or later to sync Office files that I open: Disabling this option stops Office from locking the file during sync, which often resolves stuck pending states.
- Task Manager > End task on WINWORD.EXE, EXCEL.EXE, or POWERPNT.EXE: Killing a hung Office process releases the file lock and lets OneDrive upload the changes.
- OneDrive > Settings > Account > Unlink this PC: Resetting the sync relationship clears all stuck pending states without deleting local files.
Why Office Files Get Stuck on Sync Pending
OneDrive for Business uses a feature called “Office sync integration” that hands off file changes to the Office application itself. When you save a .docx, .xlsx, or .pptx file, Office does not immediately write the data to disk. Instead, it holds a write lock on the file while the application is still running. OneDrive sees the lock and sets the sync status to “Sync Pending” because it cannot read the file safely. This lock is normally released a few seconds after you close the document or switch to another app. However, if the Office process crashes, if you close the document without saving, or if the file is left open on a remote desktop session, the lock persists indefinitely. The sync engine then waits for a lock release that never comes, and the pending state never clears.
Co-Authoring and Real-Time Sync Conflicts
When multiple users edit the same Office file simultaneously, OneDrive uses co-authoring via the Office integration. Each co-author holds a temporary lock on the file segment they are editing. If one user disconnects abruptly, that lock segment may remain orphaned. OneDrive then shows “Sync Pending” for that user because the server is waiting for the orphaned lock to expire. The default lock timeout is 30 minutes, but in some tenant configurations it can be longer. During that time, the file appears stuck in a pending state for every co-author.
Steps to Force OneDrive to Clear Sync Pending for Office Files
Follow these steps in order. Test the sync status after each step before moving to the next one.
- Close all Office applications and kill lingering processes
Open Task Manager by pressing Ctrl+Shift+Escape. Look for WINWORD.EXE, EXCEL.EXE, POWERPNT.EXE, or OUTLOOK.EXE in the Processes tab. Select each one and click End task. Do not skip this step even if you think all Office apps are closed — background processes often remain running. - Pause and resume OneDrive sync
Right-click the OneDrive cloud icon in the system tray. Select Pause syncing and choose 2 hours. Wait 10 seconds, then right-click the icon again and select Resume syncing. This forces OneDrive to re-evaluate the file state. Check the sync status in File Explorer. - Disable Office sync integration temporarily
Right-click the OneDrive cloud icon and select Settings. Go to the Office tab. Uncheck the box labeled “Use Office 2016 or later to sync Office files that I open.” Click OK. OneDrive will prompt you to restart. Do not restart yet. Instead, right-click the OneDrive icon and select Exit. Wait 30 seconds, then launch OneDrive from the Start menu. The sync pending status should clear within two minutes. - Reset the file by renaming the local copy
If the pending status remains, close all Office processes again. Navigate to the local OneDrive folder. Right-click the stuck file and select Rename. Add “.old” to the end of the filename, for example “report.docx.old”. OneDrive will detect the missing file and download a fresh copy from the server. After the download completes, delete the .old file and rename the new copy back to the original name. Open the file and save it again to trigger a new sync. - Unlink and relink your OneDrive account
Right-click the OneDrive icon and select Settings. Go to the Account tab. Click Unlink this PC. In the confirmation dialog, click Unlink account. OneDrive will close. Open File Explorer and navigate to the OneDrive folder. Verify that all files are still present locally — unlinking does not delete files. Open OneDrive from the Start menu and sign in again. OneDrive will re-scan the local folder and upload any pending changes. The sync pending status should clear within five minutes.
If OneDrive Still Shows Sync Pending After the Main Fix
OneDrive Shows Sync Pending Only for Excel Files
Excel files with external data connections or linked workbooks are more prone to lock conflicts. Open the problematic workbook in Excel Online instead of the desktop app. Edit and save a single cell. This forces the server to release any orphaned locks. Close the browser tab and check OneDrive sync status. If the pending status clears, the issue was a stale lock from the desktop Excel process.
Sync Pending Returns Every Time You Edit the Same File
This indicates that the Office sync integration setting is the root cause. Leave the setting disabled permanently. With the integration off, OneDrive will sync Office files like any other file type — it will upload the file immediately after the Office application writes it to disk. The trade-off is that co-authoring features will not be available. If you need co-authoring, keep the integration on but ensure you close the document completely before switching away from Office.
The File Shows Sync Pending on Multiple Computers
This indicates a server-side lock issue. Ask the file owner or a global admin to check the file in the SharePoint admin center. The admin can run the “Check out” command from the library settings to force a lock release. After the check-out is complete, the admin should check the file back in without making changes. This clears all orphaned locks on that file. All users must then close and reopen the file to reset their local lock state.
Office Sync Integration On vs Off: Key Differences
| Item | Office Sync Integration Enabled | Office Sync Integration Disabled |
|---|---|---|
| Sync trigger | Office application releases the file lock | File save to disk triggers upload |
| Co-authoring support | Full real-time co-authoring available | No co-authoring; only sequential editing |
| Sync pending duration | Can last up to 30 minutes with orphaned locks | Clears within seconds after file save |
| File lock behavior | Office holds a write lock during editing | No lock; OneDrive reads file immediately |
| Best for | Teams that need live co-authoring | Single users who want reliable sync |
After completing these steps, the “Sync Pending” status should clear for your Office files. Re-enable the Office sync integration only if you need co-authoring features. For a permanent fix on a single-user machine, keep the integration disabled and rely on the standard file-save sync behavior. As an advanced tip, you can create a scheduled task that runs taskkill /f /im WINWORD.EXE at logoff to ensure no Office processes remain locked overnight.