How to Fix OneDrive Cannot Sync Files with Invalid Names on Mac
Question details
The user is unable to sync certain files on OneDrive for Mac because the application persistently flags them as having invalid file names, even after renaming.

- Product
- OneDrive
- Device & OS
- macOS
- Scenario
- Syncing files such as PSD, JPG, JPEG, and PDF documents to OneDrive on a Mac.
- Observed behavior
- OneDrive reports files as having invalid names and fails to sync them, occasionally affecting thousands of files or specific documents like PowerPoint presentations that seemingly contain no forbidden characters.
Make sure your Mac is connected to a stable internet network and that your local OneDrive application is updated to the latest version.
Remove Unsupported Characters and Reserved Names
Check your file and folder names against OneDrive's strict naming rules to remove hidden special characters or reserved system names.
OneDrive has specific restrictions on file names across all operating systems. Even if macOS allows certain characters in a file name, OneDrive will block the sync if the name violates its cross-platform guidelines.
Click the OneDrive cloud icon in your Mac's menu bar to view the list of files experiencing sync errors.
Rename the files to ensure they do not contain quotation marks, asterisks, colons, angle brackets, question marks, slashes, backslashes, or vertical bars.
Ensure no files or folders are named exactly CON, PRN, AUX, NUL, COM0 through COM9, LPT0 through LPT9, _vti_, desktop.ini, or .lock.
Look for invisible files or temporary documents that begin with ~$ and delete them if they are no longer needed.

Test Uploading via OneDrive for Web
Manually uploading files via the browser helps isolate whether the issue lies with the local macOS sync client or the files themselves.
Reset the OneDrive App on macOS
Resetting the OneDrive sync client forces the app to perform a full re-sync, which often clears false 'invalid file name' errors.
Experience Hassle-Free Document Management with WPS Office
If persistent sync issues and complex cloud restrictions are slowing down your workflow, try WPS Office. It provides a lightweight, highly compatible alternative to Microsoft Office, complete with seamless cross-platform file management and an intuitive interface.
- 1. Download the installer: Visit the official WPS Office website and download the Mac version of the software.
- 2. Install and launch: Follow the on-screen prompts to install WPS Office, then launch the application from your Applications folder.
- 3. Open and sync your files: Open your existing Office documents directly and utilize WPS Cloud for error-free document synchronization.

Frequently Asked Questions
What characters are not allowed in OneDrive file names?
OneDrive does not support file or folder names that contain quotation marks ("), asterisks (*), colons (:), angle brackets (< or >), question marks (?), slashes (/), backslashes (\), or vertical bars (|).
Why does OneDrive say my PowerPoint file has an invalid name when it doesn't?
This can happen due to a glitch in the sync client cache, or if the file contains invisible characters, leading or trailing spaces, or is a temporary file starting with '~$' that the system generates when the presentation is actively open.
Will resetting OneDrive on my Mac delete my files?
No, resetting the OneDrive app only resets the sync settings and rebuilds the local index. Your actual files stored in the cloud and the local OneDrive folder remain completely safe.




