How to Recover Unsynced Office Changes From OneDrive Cache
🔍 WiseChecker

How to Recover Unsynced Office Changes From OneDrive Cache

You have been working on an Office document saved in OneDrive. The app crashes, your laptop battery dies, or the network drops. When you reopen the file, your latest unsaved edits are gone. This happens because Office and OneDrive use a local cache folder to store temporary changes before they sync to the cloud. This article explains where that cache is located, how to access it, and how to recover unsynced Office file versions directly from the OneDrive cache folder.

The OneDrive cache stores local copies of synced files and temporary autosave data from Office apps like Word, Excel, and PowerPoint. When a sync fails or an app closes unexpectedly, these cached files remain on your drive for a limited time. You can manually browse the cache to find and recover the lost version before it is overwritten or deleted.

This guide covers the exact folder paths for the OneDrive cache on Windows 10 and Windows 11, the steps to locate unsynced Office documents, and how to extract the most recent saved state. It also explains what to do if the cache does not contain the expected file and how to avoid losing changes in the future.

Key Takeaways: Recover Unsynced Office Changes From the OneDrive Cache

  • OneDrive cache folder: %LocalAppData%\Microsoft\OneDrive\cache: Contains temporary local copies of synced files, including unsaved Office autosave data.
  • OneDrive > Settings > Account > Choose folders: Selectively sync folders to reduce cache size and improve recovery reliability.
  • File Explorer search for .tmp or ~$ prefix: Locate temporary Office backup files stored in the cache or original sync folder.

ADVERTISEMENT

Why Office Changes Stay in the OneDrive Cache

OneDrive keeps a local cache of every file that is synced from the cloud to your PC. This cache is stored in a hidden folder under your user profile. When you open an Office document from OneDrive, Office saves autosave data to the same cache location. If the sync fails because of a network interruption, a crash, or a file conflict, the latest changes remain in the cache and are not uploaded to the cloud.

The cache folder also stores temporary files that Office creates during editing. These files have the same name as the original document but with a .tmp extension or a tilde (~) prefix. OneDrive does not delete these temporary files immediately after a failed sync. They can persist for several hours or until the cache reaches its size limit and OneDrive cleans it up.

Knowing the exact cache path is the first step to recovering your work. The default location is %LocalAppData%\Microsoft\OneDrive\cache. You must enable hidden files in File Explorer to see this folder. Once inside, you can sort files by date modified to find the most recent version of your unsynced Office document.

Steps to Recover Unsynced Office Changes From the OneDrive Cache

Follow these steps in order. Do not skip any step, because missing a step may cause you to overwrite the cache file you want to recover.

  1. Close all Office apps and pause OneDrive sync
    Right-click the OneDrive cloud icon in the system tray. Select Pause syncing and choose 2 hours. This prevents OneDrive from overwriting the cache while you work.
  2. Show hidden files in File Explorer
    Open File Explorer. Click the View menu. In the Show/hide group, check Hidden items. This makes the AppData folder visible.
  3. Navigate to the OneDrive cache folder
    Paste this path into the File Explorer address bar and press Enter:
    %LocalAppData%\Microsoft\OneDrive\cache
  4. Sort files by date modified
    Click the Date modified column header to sort files with the most recent at the top. Look for files with the same name as your missing Office document. These files will not have a file extension or will have a .tmp extension.
  5. Copy the cache file to a safe location
    Right-click the file and choose Copy. Paste it to your Desktop or another folder that is not synced with OneDrive. Do not open the file directly from the cache folder.
  6. Rename the copied file with the correct extension
    Right-click the copied file and select Rename. Change the extension to .docx for Word, .xlsx for Excel, or .pptx for PowerPoint. If the file had no extension, add it manually.
  7. Open the recovered file in Office
    Double-click the renamed file to open it in the corresponding Office app. Verify that your unsynced changes are present. If the file opens as a blank document, try renaming it with a .asd extension and opening it from Word’s File > Open > Recover Unsaved Documents.
  8. Save the recovered file to the original OneDrive folder
    Click File > Save As and choose the original OneDrive folder. This ensures the recovered version syncs back to the cloud. Resume OneDrive sync by right-clicking the system tray icon and selecting Resume syncing.

Alternative Method: Search for Temporary Office Files

If the cache folder does not contain your file, Office may have saved a temporary backup in the original sync folder. Use File Explorer to navigate to the folder where the document was originally stored. In the search bar, type ~$docx for Word files, ~$xlsx for Excel, or ~$pptx for PowerPoint. Files starting with ~$ are temporary owner files created by Office during editing. Copy and rename them using the same steps above.

ADVERTISEMENT

If the OneDrive Cache Does Not Contain Your Missing Changes

Sometimes the cache folder is empty or the file you need is not there. This can happen if OneDrive has already cleaned up the cache, or if the document was never fully saved locally. In that case, you have a few other recovery options.

OneDrive Shows a File Conflict or Version Mismatch

If OneDrive displays a file conflict icon, right-click the file in File Explorer and select Version history. This opens the OneDrive website where you can see previous versions of the file. Download the version that was saved just before the crash. This method works only if the file had been synced at least once before the unsaved changes were made.

Office Autosave Was Disabled

If Autosave was turned off in the Office app, the unsaved changes were never written to the cache. Open the Office app, go to File > Info > Manage Document > Recover Unsaved Documents. Word, Excel, and PowerPoint each store unsaved files in a separate folder: %AppData%\Microsoft\Word\ for Word, %AppData%\Microsoft\Excel\ for Excel, and %AppData%\Microsoft\PowerPoint\ for PowerPoint. Open the .asd file from that folder.

OneDrive Cache Was Cleared by the System

Windows Storage Sense or a third-party cleanup tool may have deleted the cache files. To prevent this in the future, exclude the OneDrive cache folder from automatic cleanup. Open Settings > System > Storage > Storage Sense. Under Temporary files, uncheck the option to delete files in the OneDrive cache. Alternatively, add the cache folder to the exclusion list of your disk cleanup tool.

OneDrive Cache vs Office Autosave: Key Differences

Item OneDrive Cache Office Autosave
Storage location %LocalAppData%\Microsoft\OneDrive\cache %AppData%\Microsoft\[AppName]\
File type stored Full local copy of synced files Temporary .asd backup of unsaved changes
Trigger for creation File sync from cloud to PC Autosave interval in Office (every few seconds)
Retention period Until cache reaches size limit or is manually cleared Until the file is saved or the app is closed normally
Recovery method Copy file from cache, rename extension, open in Office File > Info > Manage Document > Recover Unsaved Documents

How to Prevent Unsynced Office Changes in the Future

To avoid losing work again, enable Autosave in every Office app. In Word, Excel, and PowerPoint, toggle the Autosave switch in the top-left corner of the title bar to On. This saves changes to the cloud every few seconds as long as you have an internet connection.

Also configure OneDrive to always keep the files you are editing on your device. Right-click the OneDrive icon in the system tray and select Settings > Sync and backup > Advanced settings. Under Files On-Demand, select Download all files now. This ensures the full file is stored locally and reduces the chance of data loss during a network outage.

You can recover unsynced Office changes from the OneDrive cache by following the folder path and file renaming steps above. If the cache is empty, use the Office unsaved documents recovery feature or version history on the OneDrive website. Enable Autosave and local file download to minimize future data loss.

ADVERTISEMENT