Forum Discussion
Clive1
Nov 25, 2026Copper Contributor
Microsoft OneDrive File Path/Name Length Limit.
Microsoft OneDrive File Path too long error. I belive this is a very common problem. Is there a log term solution and is Microsoft planning to upgrade to allow longer file paths?
Dec 03, 2026
Yes, this is a known limitation, but it is important to distinguish between the OneDrive/SharePoint cloud limit and the Windows client limit.
OneDrive and SharePoint Online currently support a maximum of 400 characters for the entire decoded path, including the file name.
On Windows, another limitation can apply. File Explorer and some Microsoft Office desktop applications can still encounter the traditional 260-character path limitation. Even when Windows long-path support is enabled, individual applications must support it, so enabling the Windows setting alone does not necessarily resolve the issue.
For this reason, the practical workaround is still to shorten folder/file names and reduce the number of nested folders. Microsoft also recommends reorganizing folder structures when paths exceed the supported limit.
Regarding a long-term increase to these path limits, I am not aware of any Microsoft announcement confirming that the current OneDrive/SharePoint path-length limit will be increased.