How to Fix OneDrive Invalid Filename Errors with Extra Characters on Mac
Question details
The user needs to resolve synchronization errors in OneDrive caused by invisible, temporary, or duplicate files containing extra characters.

- Product
- OneDrive
- Device & OS
- Mac
- Scenario
- Synchronizing local folders to OneDrive on a Mac
- Observed behavior
- OneDrive reports synchronization errors due to invalid filenames that start with extra characters like '._', even when these files are not visible in the Finder.
Before unlinking your account, ensure that all currently syncing files are paused and verify that your Mac has a stable internet connection to prevent any partial data transfers.
Reset OneDrive Sync by Unlinking Your Mac
Disconnecting and reconnecting your Mac to OneDrive forces the application to rescan your directories, which can clear stuck synchronization states caused by invisible AppleDouble (._) files.
Mac operating systems often generate hidden metadata files starting with '._' when handling files on specific drives. OneDrive may incorrectly flag these as invalid filenames. Resetting the connection helps bypass these ghost errors.
Click the OneDrive cloud icon located in the Mac Menu bar at the top of your screen.
Click on 'More' (or the gear icon) in the dropdown menu, and then select 'Preferences' to open the OneDrive settings window.
Go to the 'Account' tab and click the 'Unlink This Mac' link. Confirm the action if prompted.
Once the setup screen appears, sign in again with your Microsoft account credentials. Choose your OneDrive folder location and allow the synchronization process to finish completely.

Enjoy Seamless Document Management with WPS Office
Tired of dealing with complex synchronization errors and hidden file issues on your Mac? WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office, featuring its own built-in cloud service for hassle-free document syncing.
- 1. Download and Install: Get the free WPS Office application from the official website and install it on your Mac.
- 2. Open Existing Documents: Open your existing .docx, .xlsx, and .pptx files directly without losing any formatting.
- 3. Save to WPS Cloud: Enable WPS Cloud backup to securely sync your documents across all your devices without the hidden filename errors.

Frequently Asked Questions
Why does OneDrive flag '._' files as invalid on my Mac?
Mac macOS creates hidden files starting with '._' (known as AppleDouble files) to store file attributes and metadata. OneDrive sometimes fails to process these hidden metadata files during a sync, flagging them as invalid filenames with extra characters.
How can I view these invisible files to delete them manually?
You can reveal hidden files in Finder by navigating to your OneDrive folder and pressing the keyboard shortcut 'Command + Shift + Period (.)'. This will make the invisible '._' files visible so you can inspect or remove them.
Will unlinking my Mac delete the files currently stored in my OneDrive?
No. Selecting 'Unlink This Mac' only disconnects the OneDrive application from your account. Your files remain completely safe in the cloud, and any files already downloaded to your Mac's hard drive will stay exactly where they are.




