When you try to save a new document or save an existing document with a new name, Word displays the error: “A document with the name already exists.” This happens even when no file with that name appears in the folder. The cause is often a hidden file conflict, a corrupted temporary file, or a synchronization issue with cloud storage like OneDrive or SharePoint. This article explains the reasons for this error and provides step-by-step fixes to save your document successfully.
Key Takeaways: Fixing the “A Document With the Name Already Exists” Error
- Show hidden items in File Explorer: Reveals temporary or hidden files that Word sees as duplicates.
- Delete the ~$ temporary file: Removes a lock file that Word mistakenly treats as an existing document.
- Save to a different location first: Bypasses the conflict and lets you rename or move the file later.
Why Word Shows the “Already Exists” Error
Word checks for an existing file before saving. If it finds a file with the same name, it blocks the save. The error can appear for several reasons:
Hidden Temporary Files Left by a Previous Crash
When Word crashes or closes unexpectedly, it leaves behind a temporary file that starts with a tilde (~) and dollar sign ($), for example ~$Report.docx. This file is hidden by default. Word treats it as an existing document and refuses to save.
OneDrive or SharePoint Sync Conflicts
Cloud sync services sometimes create a conflict copy of a file. This copy may have the same name as the original but with a suffix like “(conflict)” or a timestamp. Word may detect the original name as already taken.
File Extension Mismatch
If you save a document with the name “Report” but the folder already has a file named “Report.docx” (or vice versa with a different extension), Word considers the name taken.
Steps to Fix the “A Document With the Name Already Exists” Error
Follow these methods in order until the error is resolved.
Method 1: Show Hidden Files and Delete the Temporary Lock File
- Open File Explorer
Press Windows key + E to open File Explorer. - Enable hidden items
Click the View menu on the ribbon, then check the box labeled “Hidden items.” Hidden files will now appear with a faded icon. - Navigate to the folder where you want to save
Go to the exact folder where you are trying to save the document. - Look for a file starting with ~$
Find a file that begins with ~$ followed by your document name, for example ~$Report.docx. This is the temporary lock file. - Delete the ~$ file
Select the ~$ file and press Delete on your keyboard. Confirm the deletion if prompted. - Try saving the document again
Return to Word and press Ctrl + S or click File > Save. The error should no longer appear.
Method 2: Save to a Different Location and Move the File
- Open the Save As dialog
In Word, click File > Save As. - Choose a different folder
Select a different location such as your desktop or a temporary folder. - Save the document
Type the desired name and click Save. The document saves without error. - Close the document in Word
Close the document so no lock remains. - Move or copy the file to the original folder
In File Explorer, drag the file from the temporary location to the original folder. If a conflict dialog appears, choose “Replace the file in the destination” if you want to overwrite, or rename the file.
Method 3: Rename the Existing File
- Locate the existing file in File Explorer
Go to the folder where you see the error. - Right-click the file and select Rename
Change the name to something temporary, such as “Old_Report.docx.” - Try saving in Word again
Return to Word and save your document with the original name. The name is now available.
Method 4: Disable OneDrive Sync Temporarily
- Right-click the OneDrive icon in the system tray
The OneDrive icon is near the clock in the taskbar. - Select Pause syncing
Choose a duration such as 2 hours. - Try saving the document again
Save the document to the OneDrive folder. With sync paused, the conflict may be avoided. - Resume syncing after saving
Right-click the OneDrive icon again and select Resume syncing.
If Word Still Shows the Error After the Main Fix
“I deleted the ~$ file but the error still appears”
The ~$ file may have been recreated by a background Word process. Close all instances of Word: open Task Manager (Ctrl + Shift + Escape), look for Microsoft Word under Processes, select it, and click End task. Then delete the ~$ file again and restart Word.
“The error happens only with one specific document name”
The file extension may be hidden. In File Explorer, click View > Show > File name extensions. Look for a file with the same base name but a different extension, such as Report.docx and Report.doc. Delete or rename the conflicting file.
“The error occurs when saving to a network drive”
Network drives can have delayed file visibility. Save the file to your local hard drive first, then copy it to the network drive using File Explorer. If the error persists, ask your network administrator to check for file permissions or locked files.
Local Save vs OneDrive Save: Conflict Behavior Differences
| Item | Local Save | OneDrive Save |
|---|---|---|
| Hidden ~$ file created | Yes, by Word | Yes, by Word |
| Conflict copy created automatically | No | Yes, when sync detects a conflict |
| Error message shown | “A document with the name already exists” | Same error, or a sync conflict notification |
| Fix required | Delete ~$ file or rename file | Delete ~$ file or pause sync before saving |
The error “A document with the name already exists” is almost always caused by a hidden temporary file or a sync conflict. Deleting the ~$ file in the target folder resolves most cases. If the error persists, save to a different location first, rename the existing file, or pause OneDrive syncing. After fixing the error, consider enabling File Explorer’s hidden items view permanently so you can spot ~$ files quickly in the future. For frequent cloud sync conflicts, set Word to save locally and then manually upload to OneDrive.