File path too long on new laptop
Posted: Wed Mar 24, 2021 9:42 am
My company recently issued me a new laptop with Windows 10 Enterprise 10.0.19041 Build 19041. Since then I have had problems building a few of my Flare projects, getting "Build failed: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
The exact same projects built fine on my old laptop. I'm pretty sure the error is accurate because we do have some long path names in the project, but the error doesn't tell me which particular file is causing the problem.
Besides the Windows version, the other difference between old and new laptops is that we are now linking all content to OneDrive, so the path to the Output folder, for example, looks like this: C:\Users\planor\OneDrive - Early Warning Services\Desktop\Flare Projects\CS FCRA\Output\planor\FCRA Help Center and Policies and Procedures\, with the OneDrive part of the path adding over 30 characters to the path length.
I copied the entire project to C:/temp and was able to build successfully, but that would only be a temporary fix as nothing gets backed up that way.
Our IT department went into the registry and enabled Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled but that did not solve the problem.
Has anyone seen similar behavior?
Thanks.
The exact same projects built fine on my old laptop. I'm pretty sure the error is accurate because we do have some long path names in the project, but the error doesn't tell me which particular file is causing the problem.
Besides the Windows version, the other difference between old and new laptops is that we are now linking all content to OneDrive, so the path to the Output folder, for example, looks like this: C:\Users\planor\OneDrive - Early Warning Services\Desktop\Flare Projects\CS FCRA\Output\planor\FCRA Help Center and Policies and Procedures\, with the OneDrive part of the path adding over 30 characters to the path length.
I copied the entire project to C:/temp and was able to build successfully, but that would only be a temporary fix as nothing gets backed up that way.
Our IT department went into the registry and enabled Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled but that did not solve the problem.
Has anyone seen similar behavior?
Thanks.