How to Resolve SharePoint and OneDrive Path Length Limits
Question details
The user is unable to perform bulk downloads from SharePoint or OneDrive because the destination path length exceeds the supported character limit.

- Product
- OneDrive and SharePoint
- Device & OS
- not provided
- Scenario
- Attempting to download multiple files or deeply nested folders from OneDrive or SharePoint in bulk.
- Observed behavior
- The bulk download operation fails entirely because the combined character count of the drive, folders, subfolders, and file names exceeds the mandatory system limit.
Before modifying your directory structure, identify the specific files or folders causing the error by looking for exceptionally long names or deeply nested subfolders in your cloud storage.
Shorten File and Folder Names
Manually reduce the character count of your file and folder names to ensure the total path length stays within Microsoft's mandatory limits.
SharePoint and OneDrive have strict limitations on how long a file path can be. By eliminating unnecessary words, dates, or special characters from your folder and file names, you can quickly resolve download failures.
Log in to your SharePoint or OneDrive account via your web browser and navigate to the directory where the bulk download failed.
Right-click on a folder with a long name, select 'Rename', and abbreviate the name. Press 'Enter' to save.
Repeat the renaming process for individual files that have excessively long titles.
Select the newly renamed files and folders, click 'Download' on the top menu bar, and verify if the bulk download completes successfully.
Flatten the Directory Structure
Move files closer to the root directory to eliminate deeply nested subfolders, thereby reducing the overall path length.
Sync Locally Instead of Bulk Downloading
Use the OneDrive desktop sync app to map the cloud storage to your local drive, which often handles complex file operations better than web-based bulk downloads.
Manage Your Local and Cloud Documents Seamlessly with WPS Office
While resolving Microsoft's mandatory path length limits requires manual file reorganization, managing your actual documents shouldn't be a hassle. WPS Office offers a highly compatible, lightweight alternative to Microsoft Office, allowing you to easily open, edit, and save your documents regardless of your local directory structure.
- 1. Download and Install: Visit the official WPS website, download the free installer, and follow the on-screen instructions to set up the software.
- 2. Open Your Files: Launch WPS Office, click 'Open', and navigate to your downloaded SharePoint or OneDrive files.
- 3. Edit and Save: Edit your documents with full formatting support and save them directly to your preferred local or cloud destination.

Frequently Asked Questions
What is the exact path length limit for OneDrive and SharePoint?
The entire decoded file path, including the drive letter, folder names, and the file name, cannot exceed 400 characters for OneDrive and SharePoint. However, older versions of Windows natively restrict paths to 260 characters, which can also trigger errors upon downloading.
Why do bulk downloads fail while downloading a single file works?
When you perform a bulk download, OneDrive zips the selected files and retains their complete folder structure. If the combined path of the newly extracted folder structure exceeds your operating system's limit, the operation fails. Single files bypass this complex folder nesting.
Can I disable the 260-character path limit in Windows to fix this?
Yes, on Windows 10 and 11, you can enable 'Long Paths' via the Registry Editor or Group Policy. While this resolves local saving issues for paths over 260 characters, it does not bypass the mandatory 400-character limitation enforced by the SharePoint and OneDrive cloud platforms.




