Microsoft 365 applications keep turning files into temp files while open.

Caleb Carter 0 Reputation points
2026-12-03T21:23:46.4833333+00:00

Word, Excel, and PowerPoint files stored in OneDrive are being replaced by .temp files. The original filenames and contents disappear from the Windows drive. This affects multiple Office applications and previous community troubleshooting has not resolved it.

Microsoft 365 and Office | OneDrive | For home | Windows
0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-12-03T21:25:57.12+00:00

    If an affected file is still open, do not close the application—immediately use File > Save As or Save a Copy and save it to a local folder outside OneDrive or to another drive.

    An interrupted Office save can leave the current changes open in memory while the original file has already been deleted and the temporary file has not yet received the original name. Saving to another location preserves that in-memory copy. Excel’s documented save process creates a temporary file, deletes the original, and then renames the temporary file; antivirus, software, storage, or other interruptions can disrupt that sequence.^1^

    The same cross-application symptom has been reported for OneDrive files on Windows, but there is no published Microsoft advisory confirming one universal cause or fix.^2^

    Recover the affected files

    1. Preserve every candidate first.
      • Copy the .temp, .tmp, .tmp.upload, or similarly named file to a local folder outside OneDrive.
      • Do not delete or modify the only copy.
      • If Windows will not rename it, the file may still be in use. After preserving any open document through Save As, close Office and restart Windows, then try copying it again.^3^
    2. Try recovering from a copied temporary file.
      • Rename only the copy with the expected extension: .docx, .xlsx, or .pptx.
      • This is only a recovery attempt; changing the extension does not convert the file or guarantee that it contains a complete Office document.
      • Open the corresponding Office application and select File > Open > Browse. Select the copied file, choose the arrow beside Open, and then select Open and Repair.^4^
    3. Check the authoritative cloud copy.
      • Open the OneDrive website and use Search everything.
      • Check Recycle bin and restore the original if present.
      • If subscribed to Microsoft 365 and many files were affected, Restore your OneDrive can undo file and folder actions from the previous 30 days. Files created after the selected restore point are moved to the OneDrive Recycle Bin, so preserve current work first.^5^
    4. For missing Word content, check:
      • Word > File > Info > Manage Document > Recover Unsaved Documents
      • %AppData%\Roaming\Microsoft\Word
      • %LocalAppData%\Microsoft\Office\UnsavedFiles
      • Windows searches for *.asd, *.wbk, *.tmp, and files beginning with ~.^6^

    Isolate OneDrive from the Office save operation

    After recovering the files:

    1. Create a test document in a local folder that is not under OneDrive, such as C:\OfficeTest.
    2. Edit and save it repeatedly in the application that demonstrated the problem.
    3. Repeat with a new file in OneDrive.
    4. Record any Office save message and the status shown by the OneDrive taskbar icon.

    If only the OneDrive copy fails, concentrate on OneDrive integration and the Office document cache. If both copies fail, investigate software that can intercept file replacement operations, particularly security software or a recently installed/updated process; Microsoft specifically documents that another process accessing the temporary file can interrupt Excel before it is renamed.^1^

    Clear the Office cache only when its symptoms apply

    Use this branch if OneDrive remains Sync pending, Office reports a Document Cache/upload error, or temporary Office files remain stuck after all Office applications are closed:

    1. Preserve recoverable files and close all Office applications.
    2. If Microsoft Upload Center is available, open it and select Settings > Delete Cached Files.
    3. Restart Windows and allow OneDrive to synchronize again.

    The Upload Center is associated with older Office components and may not be visible in a current Microsoft 365 installation; newer versions maintain the cache in the background. For a damaged cache that cannot be cleared normally, Microsoft’s full procedure requires administrator rights, a Windows clean boot, cache deletion, and a normal reboot.^7^

    Cache cleanup is a conditional troubleshooting action, not a confirmed fix for every instance of this symptom. Do not delete temporary files until recovery is complete; Microsoft warns that doing so can discard unsaved work.^3^

    If the controlled test still reproduces the replacement, contact Microsoft Support with the Office and OneDrive version numbers, exact temporary filename pattern, timestamps, whether the local-folder test succeeds, and screenshots of any save or sync errors.


    References

    1. Troubleshoot why Excel doesn't save changes
    2. Office Apps keep turning my files into .temp files - Microsoft Q&A
    3. OneDrive is stuck on "Sync pending" | Microsoft Support
    4. Open a document after a file corruption error | Microsoft Support
    5. [Personal](https://support.microsoft.com/onedrive/find-lost-or-missing-files-in-onedrive)
    6. How to recover unsaved Word documents
    7. Delete your Office Document Cache
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    2 people found this answer helpful.
  2. Hendrix-V 21,825 Reputation points Microsoft External Staff Moderator
    2026-12-04T03:53:02.7333333+00:00

    Hi Caleb Carter,

    Since this is happening across Word, Excel, and PowerPoint, it may be useful to check whether another background process is interfering when Office replaces its temporary working file with the saved document. Office applications normally use temporary files during editing and saving, but those files should not remain as the replacement for the original document.

    One additional test would be to perform a clean boot of Windows and then reproduce the issue with a new test document:

    1. Press Win + R, type msconfig, and press Enter.
    2. Under Services, select Hide all Microsoft services, then choose Disable all.
    3. Open Task Manager > Startup apps and temporarily disable non-Microsoft startup applications.
    4. Restart Windows and test saving a new Office document.

    If the issue stops during the clean boot, re-enable the disabled services/startup applications gradually. This can help identify software such as antivirus, backup, synchronization, or file-management utilities that may be accessing the temporary file during the save operation. Microsoft documents that another process accessing an Office temporary file can interfere with completion of the save process.

    If it still happens in a clean-boot environment, I would recommend contacting Microsoft Support and providing the exact .temp filename, approximate time it occurred, affected Office application, and your Microsoft 365/OneDrive version information. Those details should make it easier to investigate an issue that persists across multiple Office applications.

    Please note that this is a user-to-user support forum. Moderators, contributors including external Microsoft employees cannot directly intervene in Microsoft product features or access back-end systems. Our role is limited to providing technical guidance on reported issues, requests, or ideas.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.