OneDrive keeps renaming every file that I work on

David Owen-Keister 0 Reputation points
2026-11-25T17:45:55.14+00:00

OneDrive keeps renaming every file I work on to a tmp folder. This makes it impossible for me to share files and collaborate with other people on files. OneDrive, for some reason, tries to resave the file under a new name every 5-10 minutes. Also, my naming convention for files only includes one special character ( _ ), and that's it. Is there any way to prevent this from happening?

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

2 answers

Sort by: Most helpful
  1. Vikki-T 15,205 Reputation points Microsoft External Staff Moderator
    2026-11-26T09:19:58.2066667+00:00

    Hello David Owen-Keister,

    The underscore (_) is supported in OneDrive file names, so it is unlikely to be causing this behavior. The AI-generated answer has already provided the main steps for handling temporary files and repairing the OneDrive sync connection.

    To narrow down whether the .tmp files are being created by OneDrive or by the application editing the documents, could you please confirm:

    • Which file types and applications are affected?
    • What is one example of the file name before and after it changes?
    • Does the original file name also change when you check OneDrive on the web, or only in File Explorer/Finder?
    • Are you using Windows or macOS, and is this a personal or work/school OneDrive account?
    • Does this happen with every application, or only with one specific application?

    Please also let me know whether any third-party backup, sync, antivirus, or file-management software is monitoring the OneDrive folder. These details should help distinguish a OneDrive sync issue from an application repeatedly creating temporary working files. Thank you so much for your understanding.     


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    1 person found this answer helpful.

  2. AI answer

    2026-11-25T17:46:52.8566667+00:00

    Do not delete or rename the active TMP files; close the application creating them, restart the computer, and then move only the remaining stale TMP files outside OneDrive before repairing the sync connection.

    An underscore is not among Microsoft’s listed restricted filename characters, so changing that naming convention is not the relevant next step. Temporary .tmp files are working or recovery files created by an application, and altering one while it is active can cause lost work or break the originating application.[^1^](https://support.microsoft.com/onedrive/onedrive-is-stuck-on-sync-pending#onedrive-folder-shows-sync-pending-but-no-file-is-visible "OneDrive is stuck on "Sync pending" | Microsoft Support")

    Clear the active temporary-file cycle

    1. Save the document under its intended filename.
    2. Close the document and fully exit the application that edits it.
    3. Select the OneDrive cloud icon in the taskbar or menu bar and note which files are syncing or showing an error. Temporary or hidden files can block synchronization.[^2^](https://support.microsoft.com/onedrive/troubleshoot-onedrive-sync-issues-stuck-on-processing-changes#how-to-fix-onedrive-sync-stuck-on-processing-changes "Troubleshoot OneDrive Sync Issues: Stuck on "Processing Changes" | Microsoft Support")
    4. Restart the computer. This releases a TMP file that the application may still have locked.
    5. If the TMP files remain after restarting, move them to a temporary folder outside the OneDrive folder. Keep them until the original documents have opened correctly and synced successfully.
    6. Open one affected document, make a small test change, close it, and confirm through OneDrive on the web that the original filename received the update.

    If this happens only with one application or file type, that application is the likely creator of the temporary files. Test another Office document in the same OneDrive folder to distinguish an application-specific save problem from a general OneDrive sync problem.

    Repair OneDrive for Windows if every application is affected

    For OneDrive Personal on Windows, unlink and reconnect the PC:

    1. Select the OneDrive cloud icon → Help & Settings → Settings → Account.
    2. Select Unlink this PC → Unlink account.
    3. Press Windows+R, enter %localappdata%\Microsoft\OneDrive\settings, and select OK.
    4. Delete PreSignInSettingsConfig.json.
    5. Start OneDrive, sign in, and select Use this folder when told the folder already exists.
    6. Wait for synchronization to finish before testing another edit.

    Unlinking temporarily disconnects the local folder but does not delete the cloud or local files.^3^

    If the behavior continues, reset the sync client:

    1. Press Windows+R.
    2. Run:
    %localappdata%\Microsoft\OneDrive\onedrive.exe /reset
    
    1. If Windows cannot find it, run:
    C:\Program Files\Microsoft OneDrive\onedrive.exe /reset
    
    1. Start OneDrive manually from the Start menu.

    A reset rebuilds OneDrive’s sync state and performs a full synchronization; it does not delete the files.^4^

    Check these distinct cases

    • Files receive the computer name as a suffix, such as Report-DESKTOP.xlsx: this is duplicate/conflict behavior rather than TMP handling. Open Credential Manager → Windows Credentials → Generic Credentials, remove entries containing MicrosoftAccount and the account username, and restart OneDrive.^5^
    • Mac shows OneDriveCloudTemp in Finder: that folder is temporary storage used by OneDrive’s Open in App feature and is normally hidden. To remove it only from Finder’s sidebar, Option-click it → Remove from Sidebar. This does not delete the folder or repair files that are genuinely being renamed.^6^
    • Office reports a document-cache problem or remains stuck uploading: in an Office application, use File → Options → Save → Cache Settings → Delete cached files, then restart Office. Newer Microsoft 365 versions maintain this cache even when Upload Center is not visible.^7^

    After the original filename remains stable and the latest version appears online, create a new sharing link; an existing link can stop working after the target filename changes.^8^


    References

    1. OneDrive is stuck on "Sync pending" | Microsoft Support
    2. Troubleshoot OneDrive Sync Issues: Stuck on "Processing Changes" | Microsoft Support
    3. Fix OneDrive sync problems
    4. Reset OneDrive | Microsoft Support
    5. Duplicate files in OneDrive | Microsoft Support
    6. [Mac](https://support.microsoft.com/onedrive/fixes-or-workarounds-for-recent-issues-in-onedrive)
    7. Managing Office document cache size | Microsoft Support
    8. Why has my filename changed? | Microsoft Support
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.