How to Fix SharePoint File Copy Limits and Maximum Path Length Errors
Question details
The user encounters an error when trying to copy an entire folder in SharePoint and needs to know the limits on file count and path length.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Copying a large folder or multiple files from one location to another within SharePoint Online.
- Observed behavior
- The copy operation fails or aborts, potentially due to exceeding the maximum path length limit, file count restrictions, or restrictive destination permissions.
Before troubleshooting, capture the exact error message provided by SharePoint and ensure you have full edit permissions for both the source and destination directories.
Reduce Path Length and Copy in Smaller Batches
Resolve the error by ensuring your file paths do not exceed SharePoint's 400-character limit and breaking down the bulk copy operation into smaller sets of files.
SharePoint Online enforces a strict maximum total path length of 400 characters. This length includes the entire site URL, all folder names, and the file name itself. Exceeding this limit will immediately trigger a copy or move failure.
Additionally, while there is no single file-count limit for copying, large batch operations exceeding 100 GB or 30,000 files often time out due to server thresholds.
Review the names of your folders and files. If they are deeply nested or have exceptionally long names, right-click and rename them to be shorter.
Select a target destination closer to the main Document Library root rather than copying into a deeply nested folder hierarchy to save character space.
Instead of selecting the main parent folder, open it, select fewer files or smaller subfolders at a time, click 'Copy to' from the top command bar, and move them in stages.

Verify Source and Destination Permissions
Ensure that restricted permissions or locked files are not causing the copy process to abort midway.
Manage Documents Efficiently with WPS Office
If cloud limitations like SharePoint's path lengths and file copy errors are disrupting your workflow, consider handling large documents locally. WPS Office is a highly compatible, free, and lightweight alternative to Microsoft Office that allows for seamless local document editing without complex online restrictions.
- 1. Download the software: Visit the official WPS Office website to download and install the free suite on your PC or Mac.
- 2. Open Office files directly: Launch WPS Office and open your Word, Excel, or PowerPoint files with perfect formatting retention.
- 3. Save locally or to WPS Cloud: Edit and save your documents directly to your local drive to avoid restrictive cloud path limits.

Frequently Asked Questions
What is the exact maximum path length limit in SharePoint Online?
SharePoint Online has a strict maximum total file path length of 400 characters. This includes the entire domain URL, all folder names, the file name, and the file extension.
Is there a maximum number of files I can copy at once in SharePoint?
While SharePoint does not list a strict universal limit for every copy scenario, Microsoft strongly recommends keeping bulk copy operations under 100 GB in total size and no more than 30,000 files per operation to avoid timeouts and service throttling.
Why does my SharePoint file copy fail with no clear error message?
Silent failures during large copy operations are usually caused by browser timeouts, temporary server throttling, or hidden locked files that another user is currently editing. Breaking the copy into smaller batches often resolves the issue.




