Fix the OneDrive Path Character Limit Error for Office Files
Question details
The user needs to save an Office document when OneDrive reports that its file path is too long.

- Product
- Microsoft Office, OneDrive, OneDrive for Business, and SharePoint Online
- Device & OS
- not provided
- Scenario
- Saving an Office document to a OneDrive or SharePoint Online location.
- Observed behavior
- Office reports that the file path exceeds the character limit.
Identify whether the destination is personal OneDrive, OneDrive for Business, or SharePoint Online. Check the file name and nested folder names, and determine whether the error affects one document or multiple files.
Shorten the Office file name and OneDrive folder path
Use this method when the document is stored in deeply nested folders or has a long file name.
The OneDrive or SharePoint path includes the folder names and file name. Keep the complete decoded cloud path under 400 characters; local sync and application limits may also affect saving.
In the Office app, select File > Save As, choose the OneDrive or SharePoint destination, and enter a shorter file name.
In the save dialog, browse to a folder closer to the OneDrive root or the top level of the SharePoint document library instead of a deeply nested folder.
Select Save and check whether the document saves without the path-length error.
In OneDrive or SharePoint, select a long folder name and use Rename, or use Move to place the file in a higher-level folder. Check shared links and access after moving a shared file.

Test the save location and contact Microsoft 365 Support
Use these checks if a shorter path still fails or if a business tenant appears to enforce a 256-character limit.
Work with Office Documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats, making it easy to move existing documents into a new workflow. OneDrive and SharePoint path limits still apply when saving or uploading files there.

Frequently Asked Questions
Does the file name count toward the OneDrive path limit?
Yes. The decoded path includes the file name and folder names. Use File > Save As to shorten the name or select a folder closer to the top of the destination.
What can I do if a shorter file name is not enough?
In the save dialog, choose a higher-level OneDrive folder or SharePoint document library folder. You can also rename long folders or move the file closer to the top of the library.
Why does the file save locally but not to OneDrive?
The cloud destination may have a longer folder path or a different limit. Try uploading the local file through the OneDrive or SharePoint website to a folder with a short path.
What if my organization still encounters a 256-character limit?
Ask a Microsoft 365 administrator to open a support request in the Microsoft 365 admin center. Provide the error screenshot, Office version, destination type, and results of local save and manual upload tests.




