OneDrive File Issues

How to Fix OneDrive's Invalid COM0 Filename Sync Error

Khadija KhanKhadija Khan Oct 29, 2026 870 views

Question details

The user needs to locate and remove a file or folder named COM0 that is preventing OneDrive from syncing properly.

How to Fix OneDrive's Invalid COM0 Filename Sync Error
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.
Before you start

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.

Solution 1Recommended

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.

1
Enable hidden items in File Explorer

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'.

2
Search for the offending file

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.

3
Open the file location

Once the file or folder appears in the search results, right-click it and select 'Open file location'.

4
Rename or delete the file

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.

5
Restart OneDrive sync

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.

Locate and Rename the COM0 File using Windows Search
Synchronization Restored: Once the reserved filename is changed or removed locally, OneDrive will automatically resume syncing your folders to the cloud.
Free Microsoft Office alternative

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. 1. Download the software: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the installer file and follow the straightforward on-screen instructions to complete the setup.
  3. 3. Sign in and sync: Open WPS Office, sign in to your account, and instantly begin saving and syncing your documents using WPS Cloud.
Fully compatible with Microsoft Office file formats (.docx, .xlsx, .pptx) to prevent formatting loss.Includes WPS Cloud for seamless, error-free document synchronization without restrictive Windows legacy naming errors.Lightweight installation that consumes minimal system resources.Familiar user interface requiring no learning curve for easy migration.
microsoft office alternative - wps office

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.