Fix OneDrive Path Too Long Error in Windows File Explorer
Question details
The user is unable to open or sync OneDrive files because the file path exceeds the 259-character limit in Windows, despite having long-path policies and registry settings enabled.
- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Accessing or syncing deeply nested files and folders within the local OneDrive directory.
- Observed behavior
- Windows File Explorer refuses to open, modify, or sync the affected files, displaying a 'Path Too Long' error message even though Windows long-path policies have been activated.
Identify the exact files or folders causing the issue by clicking the OneDrive icon in your taskbar and checking the sync error list for specific file locations.
Shorten Folder and File Names
Reduce the overall character count of the file path to fall under the 259-character limit enforced by Windows File Explorer for OneDrive synchronization.
Although Windows 10 and 11 support long paths via registry modifications, the OneDrive and SharePoint sync engines still strictly enforce the 259-character limit within File Explorer for compatibility reasons.
Navigate through File Explorer to the specific folder containing the file that is failing to open or sync.
Right-click the parent folders and select 'Rename'. Use shorter, more concise names to significantly reduce the overall path length.
Right-click the problematic file, select 'Rename', and shorten its filename.
Alternatively, right-click and cut the file or folder, then paste it closer to the root OneDrive directory to bypass deep folder nesting entirely.
Access Files via OneDrive on the Web
Bypass Windows File Explorer limitations entirely by accessing and editing the file directly through your web browser.
Shorten the OneDrive Root Path
Change the default setup location of your OneDrive folder to reduce the base character count for all synced files on your computer.
Try WPS Office for Seamless File Management
While cloud sync path limitations in Windows can be frustrating, managing and editing your documents locally or through built-in cloud services doesn't have to be. WPS Office is a lightweight, fully compatible alternative to Microsoft Office that offers integrated cloud storage and smooth file management without the hassle.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package for Windows.
- 2. Install the software: Run the installer and follow the quick on-screen instructions to set up WPS Office on your PC.
- 3. Open your files: Launch WPS Office and easily open your existing Microsoft Office files (.docx, .xlsx, .pptx) without losing any formatting.
- 4. Save to WPS Cloud: Sign in to your free WPS account to enjoy built-in cloud storage that makes syncing and accessing files simple and seamless.

Frequently Asked Questions
Why do I get a 'path too long' error when long paths are enabled in Windows?
Even though Windows 10 and 11 support paths longer than 260 characters via specific registry edits, the Microsoft OneDrive and SharePoint desktop sync apps still enforce a hard limit of 259 characters within File Explorer for backward compatibility and synchronization stability.
What counts towards the 259-character path limit?
The limit includes absolutely every character in the file's entire location path. This counts the drive letter (e.g., C:\), the root folder names (like Users\YourName\OneDrive\), all nested subfolder names, the specific file name, and the file extension (e.g., .docx).
Can I bypass the OneDrive path limit without renaming my files?
Yes, you can bypass the File Explorer limitation without renaming files by logging into the OneDrive web interface. The web browser version does not share the same strict character restrictions for file navigation as the local Windows desktop client.
How do I easily find which files have paths that are too long?
You can check the OneDrive sync client by clicking its cloud icon in the taskbar; it will typically display a list of files that cannot sync due to path limits in the error section. Alternatively, there are free third-party path scanner tools available online designed to locate deeply nested files on Windows.




