How to resolve 'path is too long' error - endless abending loop!

Contributor

I'm searching for the proper procedure to resolve a OneDrive for Business issue where a file path is too long. Still, when revised in SharePoint, the OneDrive account doesn't sync the changes and continues to alert the path being too long despite being renamed in SharePoint. :sad:

1 Reply

Hi @Dinorah Flores,

 

Enabling long paths in Windows worked for me. Windows is delivered with a file path limit of 260 characters, largely for historical reasons. 

 

Microsoft has some information in an article here.

 

From the article:

Starting in Windows 10, version 1607, MAX_PATH limitations have been removed from common Win32 file and directory functions. However, you must opt-in to the new behavior.

 

In order to used long paths in Windows 10 v1607, or later, the registry key

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled (Type: REG_DWORD) must exist and be set to 1.

 

If you don't know about the Windows registry and how to make modifications, it would be best if you can find someone who is familiar with it to make this change for you. Please be aware that this modification could potentially break older software (possible but unlikely).

 

Paul