A Microsoft file hosting and synchronization service.
Dear @Ruben L,
Thank you for your update. I am sorry to hear that the "path is too long" notification is still persisting.
From my research, even if you enable the Windows system setting for long paths, shortening the path remains the only reliable and supported solution. While the Windows system limit might allow for paths up to approximately 300 characters, the OneDrive sync mechanism itself imposes a stricter ceiling, usually around 255-260 characters for the full path. When you exceed this, we must reduce the character count.
Here are the most effective path-shortening techniques, presented as workable solutions:
1: Shorten the OneDrive Root Folder (Most Effective)
Changing the name of the main OneDrive folder on your local drive removes a large chunk of characters from every single file path, often solving the problem instantly.
- Unlink OneDrive: Right-click the OneDrive cloud icon in your system tray and select Settings (the gear icon).
- Go to the Account tab and click Unlink this PC. (This is necessary to safely change the folder location).
- Relaunch Setup: When OneDrive asks you to sign in again, follow the setup prompts.
- Change Location: When it prompts you for the folder location, click Change Location.
- Choose a simple, short path, such as C:\OD or C:\Cloud, instead of the default long path (e.g., C:\Users\YourName\OneDrive - Personal).
- Select Use this folder. OneDrive will resync your files to this new, shorter location.
2: Shorten Nested Folder and File Names
If the issue is only with a few deeply nested files, you can modify the names of the specific folders that lead to them.
- Rename Folders: Use the OneDrive web interface or your File Explorer to rename deeply nested folders (e.g., change 2024_Q3_Project_Documentation_Review to Q3-DOCS).
- Rename Files: Shorten the file names themselves (e.g., change Final_Draft_of_Quarterly_Report_v2.docx to QReport_Final_v2.docx).
3: Unsync Deep Folders (If Path Cannot Be Shortened)
If you cannot shorten the path (e.g., due to organizational naming conventions) and still exceed the character limit, the only option is to stop that specific folder from syncing locally:
- Access OneDrive Settings: Right-click the OneDrive cloud icon in your system tray and select Settings.
- Go to the Account tab and click Choose folders.
- Uncheck the box next to the long, problematic folders.
- Click OK. This removes those folders from your local hard drive, eliminating the path error. You can still access and work with these files via OneDrive online in your web browser.
I hope this information helps clarify the situation and provides you with workable solutions. Should you have any further questions or need additional assistance, please don't hesitate to reach out. We're always here to help. Have a wonderful day!
If you found the answer helpful, we kindly invite you to mark it as the accepted answer. Once marked, it will automatically be pinned to the top. Since many other users also search for information in this community, your valuable contribution will help them easily find the right channel and useful insights more quickly.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.