Fix OneDrive and SharePoint Renaming Invalid File Characters
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.

- 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.
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.
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.
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 (|).
Navigate to your OneDrive or SharePoint document library, right-click the file or folder, and select 'Rename'.
Delete the restricted characters and replace them with supported alternatives, such as dashes (-) or underscores (_), then press Enter to save.

Update Power Automate Flows with Valid File Names
Adjust your existing automated workflows to match the corrected file names so they run properly.
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. Download the installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the installer and follow the on-screen instructions to complete the setup.
- 3. Open your documents: Launch WPS Office and directly open your synced OneDrive or SharePoint documents to edit them seamlessly.

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.




