SharePoint Document Issues

Fix OneDrive and SharePoint Renaming Invalid File Characters

Steve KSteve K Oct 7, 2026 871 views

Question details

The user needs to understand why OneDrive and SharePoint are automatically replacing certain characters in file names and how to prevent it from breaking automated workflows.

Why OneDrive and SharePoint Rename Invalid File Name Characters
Product
OneDrive and SharePoint
Device & OS
not provided
Scenario
Uploading files or running automated flows in OneDrive and SharePoint.
Observed behavior
Files containing specific symbols are being automatically renamed, which causes existing Power Automate flows referencing the old file names to fail.
Before you start

Check your Power Automate logs to identify exactly which flows have failed and make a note of the specific file paths and names causing the disruption.

Solution 1Recommended

Remove Restricted Characters from File and Folder Names

Manually clean your file names by removing unsupported symbols to prevent the system from automatically altering them.

Microsoft cloud services do not support certain characters in file and folder names due to operating system and syncing limitations. When these characters are detected, OneDrive and SharePoint will automatically replace them to sync the file successfully.

1
Identify invalid characters

Review your file names for restricted symbols, including commas (,), number signs (#), quotation marks ("), asterisks (*), colons (:), less-than (<), greater-than (>), question marks (?), slashes (/), backslashes (\), and vertical bars (|).

2
Select the affected file

Navigate to your OneDrive or SharePoint document library, right-click the file or folder, and select 'Rename'.

3
Update the file name

Delete the restricted characters and replace them with supported alternatives, such as dashes (-) or underscores (_), then press Enter to save.

Remove Restricted Characters from File and Folder Names
Naming Conventions: Adopting a standardized naming convention using only alphanumeric characters and underscores can permanently prevent auto-renaming issues in the future.
Free Microsoft Office alternative

Manage and Edit Your Documents with WPS Office

While resolving OneDrive and SharePoint file naming restrictions, consider WPS Office as a lightweight, robust alternative for your daily document editing. It runs smoothly on all devices and offers comprehensive compatibility with popular document formats.

  1. 1. Download the installer: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the installer and follow the on-screen instructions to complete the setup.
  3. 3. Open your documents: Launch WPS Office and directly open your synced OneDrive or SharePoint documents to edit them seamlessly.
High compatibility with Microsoft Word, Excel, and PowerPoint file formatsLightweight application that requires minimal system resourcesFamiliar user interface allowing for seamless migration with no learning curveBuilt-in robust cloud storage for simplified file management and sharing
microsoft office alternative - wps office

Frequently Asked Questions

Which characters are invalid in OneDrive and SharePoint file names?

You must avoid using characters such as commas (,), number signs (#), quotation marks ("), asterisks (*), colons (:), less-than (<) and greater-than (>) signs, question marks (?), slashes (/), backslashes (\), and vertical bars (|).

Why did my automated flow suddenly stop working after a year?

If a file your flow depends on contained a character like a colon (:), Microsoft's updated naming restrictions may have automatically renamed the file. Because the file name changed, your flow can no longer find it.

Can I disable the automatic renaming feature in OneDrive?

No, the automatic renaming feature is built into OneDrive and SharePoint to ensure files sync correctly across different devices and operating systems without causing synchronization errors.