How to Fix OneDrive's Invalid COM0 Filename Sync Error
Question details
The user needs to locate and remove a file or folder named COM0 that is preventing OneDrive from syncing properly.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Attempting to sync local files to OneDrive or SharePoint cloud storage.
- Observed behavior
- Synchronization fails because COM0 is a reserved Windows device name. The offending file cannot be uploaded and is difficult to locate using the OneDrive web interface or standard File Explorer browsing.
Ensure your Windows Search is fully indexing your local drives, and enable the display of hidden files and folders in File Explorer before attempting to locate the offending file.
Locate and Rename the COM0 File using Windows Search
Use the built-in Windows Search function to find the hidden local file containing the reserved name and rename it to resume syncing.
Because COM0 is a reserved system name, files carrying this name cannot be uploaded to Microsoft's servers. As a result, they will only exist locally on your computer and will not appear in the OneDrive web interface.
Open File Explorer on your Windows PC, click on the 'View' tab at the top of the window, and check the box for 'Hidden items'.
Press the Windows key or click the Search bar on your taskbar. Type the exact file name (e.g., 'COM0') to force Windows to search your local index, including offline OneDrive folders.
Once the file or folder appears in the search results, right-click it and select 'Open file location'.
Right-click the file, select 'Rename', and change it to a valid name (avoiding reserved names like CON, PRN, or COM1-9). Alternatively, delete the file if it is a temporary or unnecessary item.
Right-click the OneDrive cloud icon in your taskbar notification area, select 'Pause syncing', and then select 'Resume syncing' to force OneDrive to scan for the renamed file.

Review Local Folders for Temporary Office Files
Check for temporary hidden files created by Office applications that might violate Microsoft's naming restrictions.
Sync and Edit Documents Seamlessly with WPS Office
Dealing with strict filename restrictions and sync errors in Microsoft ecosystems can be frustrating. WPS Office offers a free, lightweight alternative with excellent format compatibility, its own reliable cloud storage, and an intuitive interface that makes managing your files hassle-free.
- 1. Download the software: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the installer file and follow the straightforward on-screen instructions to complete the setup.
- 3. Sign in and sync: Open WPS Office, sign in to your account, and instantly begin saving and syncing your documents using WPS Cloud.

Frequently Asked Questions
Why is COM0 considered an invalid filename in Windows?
COM0 through COM9 are legacy reserved device names in the Windows operating system dating back to MS-DOS. Windows and cloud services like OneDrive prohibit naming files or folders with these terms to prevent core system conflicts.
What other filenames are restricted in OneDrive and SharePoint?
Besides COM0 through COM9, OneDrive restricts legacy system names like CON, PRN, AUX, NUL, LPT0 through LPT9, desktop.ini, _vti_, .lock, and any file names starting with ~$ (which are temporary Office files).
Why can't I see the COM0 file in the OneDrive web interface?
Files with reserved or invalid names fail to upload to the cloud servers entirely. They only exist locally on your computer's hard drive, which is why you must use your local Windows Search or File Explorer to find and fix them.
How do I restart OneDrive to resume synchronization after fixing the filename?
Right-click the OneDrive cloud icon in your Windows taskbar notification area, select the Settings (gear) icon, click 'Pause syncing' for any duration, and then immediately click 'Resume syncing'. You can also quit the OneDrive app completely and reopen it from the Start menu.




