Fix Word's Invalid File Name Error When Saving to OneDrive
Question details
The user needs to save a Word document to OneDrive without receiving an invalid file name error.

- Product
- Microsoft Word and OneDrive
- Device & OS
- not provided
- Scenario
- Saving a Word document directly to a OneDrive folder, including a shared folder.
- Observed behavior
- Word reports that the file name is invalid even though the name and path appear valid.
Check whether the error occurs only in a shared OneDrive folder and confirm that you have permission to edit files there. Locate the OneDrive cloud icon and identify a local folder that is not synced to OneDrive.
Turn off Office file synchronization in OneDrive settings
Use this option if Word and OneDrive integration is causing the save error and the setting is available in your OneDrive version.
Select the OneDrive cloud icon, open the Help & Settings menu, and choose Settings.
Open the Office tab if available. Look for “Use Office 2016 to sync Office files that I open” or a similarly named Office file synchronization option.
Clear the checkbox, confirm the change, and try File > Save As in Word again.

Save the document locally, then copy it to OneDrive
Use this workaround if saving directly to OneDrive still fails, particularly with a shared folder.
Check the OneDrive file name and path
Use these checks to rule out unsupported characters or an overly long path.
Edit Word Documents with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Word documents. Its format compatibility makes it easy to move existing files into your workflow, although it does not fix Microsoft Word or OneDrive sync settings.

Frequently Asked Questions
Why does Word say the file name is invalid when it looks correct?
Office and OneDrive synchronization integration can cause this error even when the name appears valid. Check the Office sync option in OneDrive settings, then retry saving.
What if I cannot find the Office tab in OneDrive settings?
The tab or sync option may differ or be unavailable in your OneDrive version. Save the document to a non-synced local folder with File > Save As, then copy or upload it to OneDrive.
Can I save to my desktop and move the document afterward?
Yes, if the desktop is not synced to OneDrive. Otherwise, choose another local folder, save the document there, and copy it to OneDrive or use Upload on the OneDrive website.
Why does the error happen only in a shared OneDrive folder?
Some users report the error when saving directly to shared folders. Try saving locally first and copying the file to the shared folder, and confirm that you have edit permission.




