How to Fix OneDrive Upload Error for File Paths Longer Than 400 Characters
Question details
The user is unable to upload or sync files to OneDrive because the file or folder paths exceed the platform's character limit.

- Product
- OneDrive for Business / SharePoint
- Device & OS
- not provided
- Scenario
- Attempting to synchronize or upload deeply nested folders and files to OneDrive or SharePoint.
- Observed behavior
- Files fail to upload or synchronize, returning an error that the file path is too long and exceeds the 400-character limit.
Click the OneDrive cloud icon in your system tray to review the sync error list and identify the exact files triggering the long path warning.
Shorten File Names and Reduce Folder Depth
The most effective and officially supported method to resolve this issue is to manually reduce the character count of the file path.
OneDrive and SharePoint strictly enforce a path limit of approximately 400 characters. This limit includes the entire folder structure plus the file name and extension.
Workarounds such as symbolic links or directory junctions are not reliably supported by OneDrive and can cause data synchronization issues. Modifying the Windows Registry to allow long paths does not bypass the cloud server limits.
Open File Explorer and navigate to the specific files or folders that OneDrive flagged as having paths that are too long.
Right-click the deepest or longest folders in the path, select 'Rename', and use shorter, more concise names.
Remove unnecessary nested folders by moving the target files closer to the root directory of your synchronized OneDrive folder.
Wait a few moments for the OneDrive desktop client to detect the changes and automatically resume uploading your files.

Use WPS Office for Seamless Cloud File Management
If you frequently encounter limitations and sync errors with OneDrive, consider switching to WPS Office. It provides a highly compatible, lightweight alternative with its own built-in WPS Cloud, offering seamless document synchronization without the heavy restrictions of traditional office suites.

Frequently Asked Questions
Why does OneDrive have a 400-character path limit?
OneDrive and SharePoint enforce a maximum path length of approximately 400 characters to ensure cross-platform compatibility with web browsers, system APIs, and underlying server architectures.
Can I use symbolic links to bypass the OneDrive path limit?
No. While symbolic links or directory junctions might provide a shorter local path on your computer, they are not officially supported by OneDrive and often result in synchronization failures.
Does enabling Long Paths in the Windows Registry fix this OneDrive error?
No. Enabling Win32 long paths in the Windows Registry only allows your local operating system to handle long paths. It does not override the strict 400-character limit enforced by the OneDrive cloud servers.




