Long file paths in OneDrive for Business

%3CLINGO-SUB%20id%3D%22lingo-sub-165799%22%20slang%3D%22en-US%22%3ELong%20file%20paths%20in%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-165799%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20tenant%20has%20the%20long%20file%20paths%20now%20so%20I%20can%20go%20beyond%20the%20255%20characters.%26nbsp%3B%20I%20altered%20my%20registry%20to%20extend%20the%20path%20length%2C%20and%20that%20also%20works.%26nbsp%3B%20But%20I%20cannot%20save%20a%20file%20via%20the%20SaveAs%20feature%20that%20places%20the%20file%20into%20my%20OneDrive%20folder%20that%20is%20beyond%20255%20Characters%3F%26nbsp%3B%20Now%20I%20understand%20that%20the%20Office%20App%20need%20the%20LongFilePathAware%20in%20the%20manifest.%26nbsp%3B%20Why%20wouldn't%20that%20already%20be%20there%20so%20this%20can%20work%3F%26nbsp%3B%20Or%20do%20I%20need%20something%20else%20I%20am%20missing%20trying%20to%20weave%20this%20all%20together%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326470%22%20slang%3D%22en-US%22%3ERe%3A%20Long%20file%20paths%20in%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326470%22%20slang%3D%22en-US%22%3EThanks%20for%20the%20answer.%20Let's%20hope%20the%20%22feature%22%20is%20moved%20up%20on%20their%20list.%20This%20feature%20is%20crucial%20and%20basic.%20But%20it%20seems%20to%20be%20the%20AI%20and%20fancy%20stuff%20that%20gets%20the%20focus%20nowadays.%20So%20I%20must%20say%20I%20am%20not%20positive.%20And%20if%20one%20more%20says%20I%20must%20open%20a%20support%20case%20and%20vote%20on%20Uservoice%20I%20think%20I'll%20explode.%20It%20does%20not%20work.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-325816%22%20slang%3D%22en-US%22%3ERe%3A%20Long%20file%20paths%20in%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-325816%22%20slang%3D%22en-US%22%3E%3CP%3ESorry%2C%3C%2FP%3E%3CP%3EBut%20I%20don't%20think%20this%20is%20fixed%20yet%20as%20MS%20needs%20to%20re-write%20their%20Office%20products%20to%20be%20long%20file%20path%20aware.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-324961%22%20slang%3D%22en-US%22%3ERe%3A%20Long%20file%20paths%20in%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-324961%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20the%20same%20problem.%3C%2FP%3E%3CP%3EIn%20our%20Document%20libraries%20we%20have%20a%20lot%20of%20files%20that%20are%20stored%20with%20long%20file%20paths.%20We%20have%20migrated%20them%20from%20file%20system%20to%20SharePoint.%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20can%20open%20these%20files%20in%20Word%2FExcel%20but%20we%20cannot%20save%20them%20in%20the%20same%20folder.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20manage%20to%20fix%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20we%20can%20shorten%20the%20file%20paths%20or%20store%20documents%20in%20a%20folder%20that%20is%20not%20so%20long.%20It%20does%20not%20solve%20our%20problem%20since%20we%20cannot%20so%20easily%20change%20the%20filepaths%26nbsp%3Bor%20filenames%20or%20even%20the%20sharepoint%26nbsp%3Burls.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20how%20far%20I%20got.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20added%20a%20local%20group%20policy%20to%20allow%20long%20file%20paths.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20411px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F70826i934C366C2B6DD553%2Fimage-dimensions%2F411x224%3Fv%3D1.0%22%20width%3D%22411%22%20height%3D%22224%22%20alt%3D%22GPedit%20enable%20long%20paths.png%22%20title%3D%22GPedit%20enable%20long%20paths.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ENow%20Windows%20Explorer%20works%20fine%20with%20long%20file%20names.%20Both%20new%20files%20and%20copies%20of%20existing%20files%20can%20be%20put%20into%20the%20long%20folder%20names.%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20use%20Windows%20Explorer%20with%20synced%20Onedrive%20files%20from%20SharePoint%20libraries%20where%20the%20files%20are%20stored.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20Office%20Click%20to%20run%20build%201808.%3C%2FP%3E%3CP%3ESave%20from%20Word%20does%20not%20work%20still%20even%20if%20the%20policy%20works%20in%20Windows%20Explorer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-177461%22%20slang%3D%22en-US%22%3ERe%3A%20Long%20file%20paths%20in%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-177461%22%20slang%3D%22en-US%22%3E%3CP%3EI%20asked%20our%20TAM%20about%20this%20and%20where%20to%20find%20and%20alter%20the%20Office%20products.%26nbsp%3B%20I%20was%20informed%20this%20is%20something%20MS%20is%20working%20on%20and%20the%20Office%20suite%20will%20take%20advantage%20of%20the%20extended%20paths%20in%20a%20future%20version%20update%20of%20Office.%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%200in%200pt%3B%22%3E%3CFONT%20color%3D%22%23000000%22%20face%3D%22Calibri%22%3EThe%20fix%20is%20expected%20to%20be%20released%20in%20the%20build%20version%2016.0.9209.1000%2B.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-166728%22%20slang%3D%22en-US%22%3ERe%3A%20Long%20file%20paths%20in%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-166728%22%20slang%3D%22en-US%22%3E%3CP%3EMeans%20you%20need%20to%20enable%20the%20corresponding%20options%2Freg%20keys%26nbsp%3Bin%20Office%2C%20ODFB%2C%20Windows%2C%20for%20proper%20support.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-166721%22%20slang%3D%22en-US%22%3ERe%3A%20Long%20file%20paths%20in%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-166721%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Vasil%2C%3C%2FP%3E%0A%3CP%3EI%20am%20not%20sure%20what%20you%20mean%20all%20opt-in.%26nbsp%3B%20Longpaths%20work%20in%20the%20tenant%2C%20and%20LongPaths%20work%20on%20my%20Win10%20PC%20with%20the%20reg%20dink.%26nbsp%3B%20What%20doesn't%20work%20is%20the%20Word%20app%20when%20I%20try%20to%20save%20a%20file%20to%20a%20path%20longer%20than%20260%20characters.%26nbsp%3B%20So%20all%20my%20research%20tells%20me%20the%20manifest%20must%20contain%20a%20line%20called%20LongFilePathAware%2C%20or%20something%20to%20that%20affect.%26nbsp%3B%20I%20am%20not%20sure%20where%20I%20need%20to%20go%20to%20alter%20that%20for%20Word%2C%20or%20Office%20or%20OneDrive%20for%20Business.%26nbsp%3B%20Because%20this%20feature%20is%20out%20now%2C%20I%20would%20expect%20MS%20to%20include%20this%20in%20the%20Office%20suite%3F%26nbsp%3B%20If%20opting%20in%20means%20alter%20the%20manifest%2C%20could%20that%20location%20be%20provided%20for%20Office%20and%20OneDrive%20so%20I%20could%20do%20that%20myself%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-166194%22%20slang%3D%22en-US%22%3ERe%3A%20Long%20file%20paths%20in%20OneDrive%20for%20Business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-166194%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20are%20lot%20of%20dependencies%20on%20older%20code%2Flibraries%20that%20have%20the%20MAX_PATH%20limit%2C%20and%20it%20will%20take%20some%20time%20before%20this%20is%20supported%20across%20the%20board.%20If%20you%20want%20some%20more%20technical%20details%2C%20read%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fwindows%2Fdesktop%2Faa365247(v%3Dvs.85).aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fwindows%2Fdesktop%2Faa365247(v%3Dvs.85).aspx%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20the%20time%20being%2C%20it's%20all%20%22opt-in%22%2C%20for%20Windows%2C%20Office%2C%20ODFB...%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

My tenant has the long file paths now so I can go beyond the 255 characters.  I altered my registry to extend the path length, and that also works.  But I cannot save a file via the SaveAs feature that places the file into my OneDrive folder that is beyond 255 Characters?  Now I understand that the Office App need the LongFilePathAware in the manifest.  Why wouldn't that already be there so this can work?  Or do I need something else I am missing trying to weave this all together?

7 Replies

There are lot of dependencies on older code/libraries that have the MAX_PATH limit, and it will take some time before this is supported across the board. If you want some more technical details, read here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx

 

For the time being, it's all "opt-in", for Windows, Office, ODFB...

Thanks Vasil,

I am not sure what you mean all opt-in.  Longpaths work in the tenant, and LongPaths work on my Win10 PC with the reg dink.  What doesn't work is the Word app when I try to save a file to a path longer than 260 characters.  So all my research tells me the manifest must contain a line called LongFilePathAware, or something to that affect.  I am not sure where I need to go to alter that for Word, or Office or OneDrive for Business.  Because this feature is out now, I would expect MS to include this in the Office suite?  If opting in means alter the manifest, could that location be provided for Office and OneDrive so I could do that myself?

Means you need to enable the corresponding options/reg keys in Office, ODFB, Windows, for proper support.

I asked our TAM about this and where to find and alter the Office products.  I was informed this is something MS is working on and the Office suite will take advantage of the extended paths in a future version update of Office. 

The fix is expected to be released in the build version 16.0.9209.1000+.

 

I have the same problem.

In our Document libraries we have a lot of files that are stored with long file paths. We have migrated them from file system to SharePoint. 

We can open these files in Word/Excel but we cannot save them in the same folder.

 

Did you manage to fix it?

 

I know we can shorten the file paths or store documents in a folder that is not so long. It does not solve our problem since we cannot so easily change the filepaths or filenames or even the sharepoint urls.

 

This is how far I got. 

I added a local group policy to allow long file paths.

GPedit enable long paths.png

Now Windows Explorer works fine with long file names. Both new files and copies of existing files can be put into the long folder names. 

We use Windows Explorer with synced Onedrive files from SharePoint libraries where the files are stored.

 

We have Office Click to run build 1808.

Save from Word does not work still even if the policy works in Windows Explorer.

 

Sorry,

But I don't think this is fixed yet as MS needs to re-write their Office products to be long file path aware. 

Thanks for the answer. Let's hope the "feature" is moved up on their list. This feature is crucial and basic. But it seems to be the AI and fancy stuff that gets the focus nowadays. So I must say I am not positive. And if one more says I must open a support case and vote on Uservoice I think I'll explode. It does not work.