How to Fix OneDrive Path Too Long Sync Errors on Windows 10
Question details
Users encounter a 'path is too long' error preventing files from syncing to OneDrive or SharePoint.

- Product
- OneDrive and SharePoint
- Device & OS
- Windows 10
- Scenario
- Employees are trying to sync shared company folders or personal files, but the sync fails due to lengthy user, folder, or file names within the directory path.
- Observed behavior
- OneDrive displays a 'path is too long' error message for some users, halting synchronization. Additionally, some files may display truncated operating-system short names instead of their full file names.
Before reorganizing or renaming files, coordinate with your team to ensure no one is actively editing the shared documents, which helps prevent version conflicts during the sync process.
Shorten File Names and Restructure Folders
Reduce the total character count of your file paths by renaming lengthy items and moving deep folders closer to the main OneDrive root directory.
Windows limits standard file paths to 260 characters. This limit includes the drive letter, user profile name, all nested folder names, and the file name itself. If a colleague has a shorter Windows username, they might successfully sync a shared folder that fails for you.
Open Windows File Explorer and navigate to your OneDrive or SharePoint sync folder.
Right-click on files or folders with excessively long names, select 'Rename', and provide a shorter, concise name.
Select deeply nested folders, cut them, and paste them closer to the root of the OneDrive directory (e.g., directly under C:\Users\YourName\OneDrive).
If a project naturally requires long file names, create a new top-level folder in OneDrive specifically for that project to minimize the base path length.

Contact Microsoft 365 Administrator Support
If you have tried shortening paths but specific users still cannot sync shared directories, the issue may require backend investigation by Microsoft.
Experience Hassle-Free Document Management with WPS Office
If you frequently encounter path limitations and complex synchronization errors with Microsoft tools, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with built-in WPS Cloud storage, ensuring smooth and reliable document syncing across all your devices without the usual headaches.
- 1. Download the Installer: Visit the official WPS Office website and click the 'Download Free' button to get the latest version.
- 2. Install the Software: Run the downloaded executable file and follow the straightforward on-screen prompts to install WPS Office on your PC.
- 3. Sign In to WPS Cloud: Launch WPS Office and create a free account to automatically activate your cloud storage and start syncing documents hassle-free.

Frequently Asked Questions
What is the maximum path length limit for OneDrive on Windows 10?
By default, the Windows API restricts file paths to 260 characters (MAX_PATH). OneDrive enforces this limitation. The 260 characters include the drive letter, colons, slashes, your user profile name, all folder names, and the actual file name with its extension.
Why can some employees sync the shared folder while others get the path error?
The total path length includes the user's local Windows profile name (e.g., C:\Users\FirstnameLastname\OneDrive). If one employee has a long username and another has a short username, the employee with the longer username will hit the 260-character limit sooner when syncing the exact same shared folder.
Can I enable long paths in Windows 10 to fix this OneDrive error?
Windows 10 does offer a Registry and Group Policy tweak to 'Enable Win32 long paths'. However, while this allows the operating system to handle longer paths, OneDrive's synchronization client and many traditional applications still strictly enforce the 260-character limit, meaning renaming and moving folders remains the most reliable solution.
What does it mean when my file names suddenly look like abbreviations with tildes (~)?
This is an older Windows operating-system feature called 8.3 short names. When file paths get too long or encounter specific compatibility issues, Windows may display a shortened, auto-generated version of the file name (like DOCUME~1.DOC). This is not a OneDrive setting you can turn off directly.




