Hi,
Please refer to this support article:
As the article said:
- Each segment of the path (a segment is a file name or folder name like “Promotion” or “Some File.xlsx” in the examples above) can't be more than 255 characters due to operating system limitations.
- The length of the OneDrive root folder (e.g. C:\users\meganb\OneDrive - Contoso) + the relative path of the file (up to 400 chars) cannot be more than 520 characters.
- The organization name can be updated in the M365 admin center but that will not propagate to existing Sync relationships (only newly established ones). For existing Sync relationships to have the new organization name, users need to unlink and relink their account.
- When syncing, you are also limited to the Windows Explorer or macOS file path limits. For example, in Windows Explorer, the limit is 256 usable characters not including the drive letter (like C:) nor the terminating null character. Read more about max path limitations in Windows.
SharePoint Server versions only support up to 260 characters for file and path lengths, Microsoft Excel and older Office version have a lower limit, see KB 326039 for details.
If you exceed any limits, you'll receive an error message.
Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
If the response is helpful, please click "Accept Answer" and upvote it.
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.