Home

Problem opening (desktop)word docs in Onedrive (does work when opened via ODFB online)

%3CLINGO-SUB%20id%3D%22lingo-sub-785300%22%20slang%3D%22en-US%22%3EProblem%20opening%20(desktop)word%20docs%20in%20Onedrive%20(does%20work%20when%20opened%20via%20ODFB%20online)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-785300%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EA%20user%20has%20the%20following%20problem%3A%3CBR%20%2F%3EWhen%20opening%20a%20word%20file%20which%20is%20in%20a%20onedrive%20folder%20(which%20is%20shared%20with%20her%20and%20which%20is%20synced%20with%20the%20onedrive%20tool)%20%3CSTRONG%3Eword%20will%20hang%20indefinite%3C%2FSTRONG%3Euntill%20I%20close%20it%20again.%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20cannot%20open%20the%20file%20in%20this%20way.%3C%2FP%3E%3CP%3EDiagnosis%20so%20far....%3C%2FP%3E%3CUL%3E%3CLI%3EWhen%20going%20into%26nbsp%3B%20the%20folder%20via%20file%20explorer%20and%20checking%20the%20path%20length%20(including%20filename)%3A%20200%20chars.%20I%20know%20word%20has%20a%20path%20limit%20of%20218.%3C%2FLI%3E%3CLI%3ETried%20repair%20word%20both%20quick%20and%20online%20option.--%26gt%3B%20Still%20does%20not%20work.%3C%2FLI%3E%3CLI%3EStart%20word%20in%20safe%20mode%20and%20with%20the%20%2Fa%20mode%20--%26gt%3Bdoes%20not%20work%3C%2FLI%3E%3CLI%3EDOES%20WORK%20when%20I%20pause%20the%20onedrive%20sync%20client%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Ffacepalm_40x40.gif%22%20alt%3D%22%3Afacepalm%3A%22%20title%3D%22%3Afacepalm%3A%22%20%2F%3E%3C%2FLI%3E%3CLI%3EDOES%20WORK%20when%20I%20go%20to%20the%20file%20with%20onedrive%20online%20and%20choose%20open%20in%20word%20(the%20desktop%20app)%3C%2FLI%3E%3CLI%3EDOES%20WORK%20when%20I%20put%20the%20file%20one%20directory%20higher%20(shorter%20path)%3C%2FLI%3E%3CLI%3EDoes%20NOT%20work%20when%20I%20first%20open%20word%20and%20then%20navigate%20to%20it%20by%20open%20file%20dialog.%20BUT%20gives%20me%20an%20error%20saying%20%22the%20document%20name%20or%20path%20is%20invalid%20(20190731XX%2520MeetingMinutes%2520test.docx)%22%3C%2FLI%3E%3CLI%3EDOES%20WORK%20when%20I%20open%20it%20on%20another%20pc%20in%20the%20exact%20same%20location%20(shared%20one%20drive%20folder)%20although%20I%20understand%20that%20in%20%22c%3A%5Cusers%5C%5C%5C%5C.....%22%20the%20part%20is%20shorter%20in%20my%20case.%20BUT%20if%20I%20make%20a%20folder%20one%20dir%20higher%20and%20giveit%20long%20name%20and%20put%20the%20file%20in%20there%20it%20DOES%20work.%20So%20I%20do%20not%20believe%20it%20is%20the%20path%20length.I%20see%20in%20the%20splash%20screen%20of%20word%20that%20it%20is%20actually%20opening%20the%20file%20on%20%3CA%20href%3D%22https%3A%2F%2Fxxx.sharepoint.com%2Fpersonal%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fxxx.sharepoint.com%2Fpersonal%2F%3C%2FA%3E.....%20%3F%3F%3F%20This%20is%20difference%20from%20the%20local%20path%20I%20thought%20I%20was%20opening%20it%20from%20%22c%3A%5Cusers%5C%5C....%22%20%3F%3F%20I%20am%20lost%3F%3CBR%20%2F%3E%3CBR%20%2F%3EI%20really%20like%20to%20understand%20what%20is%20going%20on%20here%3F%3CBR%20%2F%3ECan%20someone%20shed%20a%20light%20on%20this%3F%3CBR%20%2F%3E%3CBR%20%2F%3EI%20know%20a%20simple%20solution%20would%20be%20to%20put%20the%20file%20some%20dirs%20higher%20but%20I%20want%20to%20understand%20what%20is%20going%20on%20to%20prevent%20future%20problems%3CBR%20%2F%3E%3CBR%20%2F%3EI%20use%20ODFB%2C%20office365%2C%20word%202016%2C%20sync%20tool%2019.123.0624.0005%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-785300%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWord%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1059923%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20opening%20(desktop)word%20docs%20in%20Onedrive%20(does%20work%20when%20opened%20via%20ODFB%20online)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1059923%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F386205%22%20target%3D%22_blank%22%3E%40corvus71%3C%2FA%3E%26nbsp%3Bsame%20problem...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1061742%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20opening%20(desktop)word%20docs%20in%20Onedrive%20(does%20work%20when%20opened%20via%20ODFB%20online)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1061742%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20guys%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20you%20see%20the%20file%20in%20Windows%20File%20Explorer%2C%20what%20does%20the%20Status%20show%3F%20Cloud%20icon%3F%20Green%20circle%20with%20green%20tick%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20it's%20the%20%3CSTRONG%3Ecloud%20icon%3C%2FSTRONG%3E%20for%20the%20file%20that%20is%20hanging%2C%20right%20click%20onto%20the%20%3CSTRONG%3Efile%3C%2FSTRONG%3E%20and%20choose%20%3CSTRONG%3EAlways%20keep%20on%20this%20device%3C%2FSTRONG%3E.%20which%20will%20download%20the%20file%20from%20the%20cloud%20to%20your%20PC%20and%20sync%20it%20to%20the%20online%20copy.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20open%20the%20file%20from%20Windows%20File%20Explorer%20and%20see%20if%20this%20fixes%20the%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20the%20file%20had%20the%20cloud%20status%20icon%2C%20tt%20may%20be%20that%20OneDrive%20was%20having%20an%20issue%20downloading%20and%20syncing%20the%20file%20to%20your%20PC%20when%20you%20open%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20gives%20you%20something%20to%20try%20towards%20a%20solution!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGood%20luck%20folks%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1085297%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20opening%20(desktop)word%20docs%20in%20Onedrive%20(does%20work%20when%20opened%20via%20ODFB%20online)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1085297%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F386205%22%20target%3D%22_blank%22%3E%40corvus71%3C%2FA%3EI%20just%20diagnosed%20what%20I'm%20guessing%20is%20the%20same%20issue%20for%20someone%20and%20you%20might%20be%20seeing%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Ffileio%2Fnaming-a-file%3Fredirectedfrom%3DMSDN%23maximum-path-length-limitation%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Epath%20length%3C%2FA%3E%20issue.%26nbsp%3B%20I%20think%20something%20changed%20between%20Word%20versions%201902%20and%201911%2C%20but%20I'm%20not%20able%20to%20narrow%20it%20down%20any%20more%20than%20that.%26nbsp%3B%20The%202%20workarounds%20I%20came%20up%20with%20are%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EDisable%20OneDrive's%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fuse-office-applications-to-sync-office-files-that-i-open-8a409b0c-ebe1-4bfa-a08e-998389a9d823%3Fui%3Den-US%26amp%3Brs%3Den-US%26amp%3Bad%3DUS%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ecollaborative%20editing%3C%2FA%3E%20option.%3C%2FLI%3E%3CLI%3ESwitch%20to%20back%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Foffice-365-proplus%2Fnew-office-365-proplus-update-channel-names%2Fm-p%2F105438%22%20target%3D%22_self%22%3E%22Broad%22%20(semi-annual)%20channel%3C%2FA%3E%20and%20test.%26nbsp%3B%20As%20of%20today%2C%20this%20is%20Word%20version%201902%20for%20me.%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Fwww.l4urenz.nl%2F2019%2F02%2F24%2Fswitch-office-2016-to-monthly-targeted-channel%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EThese%20instructions%3C%2FA%3E%20are%20good%20if%20you're%20testing%20on%20a%20single%20machine.%3C%2FLI%3E%3C%2FOL%3E%3CP%3EI%20found%20it%20easiest%20to%20test%20if%20it's%20a%20path%20length%20issue%20by%20creating%20files%20with%20a%20lot%20of%20spaces%20in%20the%20names.%26nbsp%3B%20The%20spaces%20get%20encoded%20into%20%2520%20when%20opening%20the%20collaborative%20editing%20URL%2C%20so%20a%20filename%20with%2060-80%20spaces%20should%20be%20enough%20to%20trip%20the%20limit.%26nbsp%3B%20For%20example%2C%20the%20file%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EC%3A%5CUsers%5Cusername%5COneDrive%20-%20Company%20Name%5C-%20%20.docx%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E...ends%20up%20being%20something%20like%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3CDOMAINGUID%3E-my.sharepoint.com%2Fpersonal%2Fusername_domainname_tld%2FDocument%2F-%2520%2520.docx%3Fweb%3D1%3C%2FDOMAINGUID%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20example%20may%20not%20look%20like%20a%20big%20difference%2C%20but%2C%20for%20us%2C%20we%20have%20some%20customers%20with%20long%20company%20names%20which%20usually%20means%20a%20long%20domain%20name%20and%20domainGUID.%26nbsp%3B%20For%20example%2C%20%22Rumpelstiltskin's%20Gold%20Spinners%20Inc.%22%20could%20look%20like%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Erumpelstiltskinsgoldspinners-my.sharepoint.com%2Fpersonal%2Frumpelstiltskin_rumpelstiltskinsgoldspinners_com%2FDocuments%2F%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20uses%20115%20characters%20before%20anyone%20creates%20a%20directory%20structure%20or%20adds%20any%20files.%26nbsp%3B%20I've%20set%20up%20accounts%20where%20the%20company%20name%20ends%20up%20being%20set%20to%20initials%20(ex%3A%20RGS)%20to%20save%20a%20few%20characters%20on%20the%20unchangeable%20OneDrive%20directory%20name%20on%20local%20PCs.%26nbsp%3B%20This%20change%20makes%20collaborative%20editing%20unusable%20in%20those%20cases.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20me%20it%20feels%20like%20an%20unintended%20bug%20since%2C%20as%20you%20pointed%20out%2C%20it's%20possible%20to%20open%20the%20file%20by%20jumping%20through%20Word%20Online's%20%22Open%20in%20Desktop%20Client%22%20link.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPath%20length%20issues%20like%20this%20are%20the%20biggest%20problem%20we%20have%20with%20Office%20365%20%2F%20OneDrive.%26nbsp%3B%20They're%20almost%20impossible%20to%20explain%20to%20regular%20users.%26nbsp%3B%20Personally%20I'm%20kind%20of%20hoping%20this%20issue%20trickles%20into%20the%20semi-annual%20channel%20and%20breaks%20collaborative%20editing%20for%20a%20lot%20of%20people.%26nbsp%3B%20Maybe%20then%20the%20path%20length%20issue%20will%20get%20some%20attention.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1085406%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20opening%20(desktop)word%20docs%20in%20Onedrive%20(does%20work%20when%20opened%20via%20ODFB%20online)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1085406%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F164843%22%20target%3D%22_blank%22%3E%40Ryan%20Jaeb%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20reading%20your%20comment%20I%20started%20trying%20to%20find%20the%20pathlength%20again%20to%20get%20an%20idea%20about%20the%20actual%20allowed%20path%20length.%3C%2FP%3E%3CP%3EUsing%20a%20document%20stored%20in%20a%20folder%20with%20a%20very%20long%20name%20I%20started%20adding%20spaces%20until%20it%20would%20not%20open%20anymore.%20Replacing%20all%20the%20spaces%20with%20%22%2520%22%26nbsp%3B%20I%20get%20a%20path%20length%20of%20220%20as%20a%20limit.%20221%20characters%20and%20the%20file%20will%20not%20open%20anymore.%3C%2FP%3E%3CP%3EIt%20would%20be%20nice%20if%20MS%20would%20have%20a%20statement%20somewhere%20about%20%3CSTRONG%3Ehow%3C%2FSTRONG%3E%20long%20it%20is%20allowed%20to%20be.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20all%20our%20users%20use%20the%20onedrive%20sync%20client%20they%20want%20some%20way%20to%20easily%20refer%20to%20a%20file%20stored%20locally.%20A%20shortcut%20would%20not%20work%20since%20all%20synced%20files%20have%20a%20%25userprofile%25%20in%20the%20link%20which%20makes%20a%20shortcut%20different%20for%20everyone.%3C%2FP%3E%3CP%3EFor%20ease%20of%20collaboration%20they%20use%20folders%20like%20e.g.%20%226.2.5.6%20some%20title%22%20to%20easily%20communicate%20the%20location%20of%20a%20folder%20to%20colleagues.%20Instead%20of%20mentioning%20the%20very%20long%20path%20they%20say%3A%20%226.2.5.6%20some%20title%5CA.docx%22.%20As%20you%20can%20guess%20the%20folder%20name%20gets%20very%20long%20by%20using%20a%206.x.x.x.x.x%20structure.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20users%20do%20as%20a%20workaround%20when%20the%20file%20does%20not%20open%20is%3A%3C%2FP%3E%3CP%3ECopy%20the%20file%20to%20their%20desktop.%20Work%20on%20it.%20Copy%20it%20back%20to%20the%20location%20were%20it%20came%20from.%20With%20a%20risk%20that%20someone%20else%20also%20worked%20in%20the%20document....%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1086308%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20opening%20(desktop)word%20docs%20in%20Onedrive%20(does%20work%20when%20opened%20via%20ODFB%20online)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1086308%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F386205%22%20target%3D%22_blank%22%3E%40corvus71%3C%2FA%3EThe%20limit%20is%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F325573%2Fyou-receive-error-messages-when-you-try-to-open-an-office-document%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E259%20(218%20for%20Excel)%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20based%20on%20my%20experience%2C%20it's%20really%20difficult%20to%20advise%20about%20an%20exact%20limit.%26nbsp%3B%20On%20the%20filesystem%20a%20space%20counts%20as%201%20character.%26nbsp%3B%20The%20collaborative%20editing%20URL%20encodes%20it%20to%20%2520%2C%20so%203%20characters.%26nbsp%3B%20Plus%20the%20difference%20in%20%25userprofile%25%20path%20lengths%20that%20you%20mentioned%20can%20vary%20the%20length%20by%20several%20characters%20between%20users.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20hardest%20part%20for%20us%20isn't%20technically%20the%20limit.%26nbsp%3B%20It's%20the%20ambiguity%20which%20makes%20it%20impossible%20to%20explain%20to%20regular%20users.%26nbsp%3B%20If%20all%20of%20the%20Office%20apps%20would%20give%20an%20error%20when%20a%20user%20tries%20to%20use%20a%20path%20%2B%20filename%20that%20exceeds%20the%20limit%2C%20it's%20be%20much%20easier%20to%20deal%20with%20IMO.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20have%20any%20way%20of%20asking%20for%20the%20situation%20to%20be%20improved%20and%2C%20judging%20by%20the%20volume%20of%20similar%20complaints%20%2F%20questions%20I%20see%20online%2C%20I'm%20guessing%20it's%20a%20tough%20problem%20for%20them%20to%20solve.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHopefully%20the%20info%20I%20gave%20is%20enough%20that%20you%20can%20do%20some%20additional%20testing%20and%20get%20an%20idea%20of%20what%20the%20limits%20are.%26nbsp%3B%20Good%20luck!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1092235%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20opening%20(desktop)word%20docs%20in%20Onedrive%20(does%20work%20when%20opened%20via%20ODFB%20online)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1092235%22%20slang%3D%22en-US%22%3E%3CP%3EOur%20company%20also%20has%20this%20problem.%20No%20Onedrive%20office%20documents%20can%20be%20opened%20via%20the%20explorer%20anymore.%20However%2C%20via%20the%20Onedrive%20online%20display%20or%20a%20local%20copy%2C%20without%20using%20Onedrive%20is%20working.%20Is%20there%20a%20solution%20for%20this%20problem%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1092268%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20opening%20(desktop)word%20docs%20in%20Onedrive%20(does%20work%20when%20opened%20via%20ODFB%20online)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1092268%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F507762%22%20target%3D%22_blank%22%3E%40NL2020%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20mean%20NONE%20whatsoever%3F%20Indendant%20of%20the%20path%20length%3F%20In%20that%20case%20it%20must%20be%20something%20else...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1094053%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20opening%20(desktop)word%20docs%20in%20Onedrive%20(does%20work%20when%20opened%20via%20ODFB%20online)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1094053%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F386205%22%20target%3D%22_blank%22%3E%40corvus71%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20we%20tested%20a%20custom%20shorter%20path%20length%2Ffilename.%20That%20works.%3C%2FP%3E%3CP%3EBut%20this%20problem%20occurs%20in%20last%20months.%20Before%20we%20didn't%20had%20the%20issues.%20This%20problem%20must%20be%20solved.%3C%2FP%3E%3CP%3EWe%20can%20not%20simple%20shorten%20all%20the%20office%20file%20names%20from%20all%20office%20documents%20from%20the%20past.%20Why%20is%20this%20new%20problem%20happening%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1097184%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20opening%20(desktop)word%20docs%20in%20Onedrive%20(does%20work%20when%20opened%20via%20ODFB%20online)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1097184%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F164843%22%20target%3D%22_blank%22%3E%40Ryan%20Jaeb%3C%2FA%3E%26nbsp%3Bthanks%20for%20the%20tip%20on%20disabling%20the%20collaboration%20feature%20on%20OneDrive.%26nbsp%3B%20This%20resolved%20my%20issue!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
corvus71
New Contributor

Hi,

A user has the following problem:
When opening a word file which is in a onedrive folder (which is shared with her and which is synced with the onedrive tool) word will hang indefinite untill I close it again.

It cannot open the file in this way.

Diagnosis so far....

  • When going into  the folder via file explorer and checking the path length (including filename): 200 chars. I know word has a path limit of 218.
  • Tried repair word both quick and online option.--> Still does not work.
  • Start word in safe mode and with the /a mode -->does not work
  • DOES WORK when I pause the onedrive sync client :facepalm:
  • DOES WORK when I go to the file with onedrive online and choose open in word (the desktop app)
  • DOES WORK when I put the file one directory higher (shorter path)
  • Does NOT work when I first open word and then navigate to it by open file dialog. BUT gives me an error saying "the document name or path is invalid (20190731XX%20MeetingMinutes%20test.docx)"
  • DOES WORK when I open it on another pc in the exact same location (shared one drive folder) although I understand that in "c:\users\\\\....." the part is shorter in my case. BUT if I make a folder one dir higher and giveit long name and put the file in there it DOES work. So I do not believe it is the path length.
    I see in the splash screen of word that it is actually opening the file on https://xxx.sharepoint.com/personal/..... ??? This is difference from the local path I thought I was opening it from "c:\users\\...." ?? I am lost?

    I really like to understand what is going on here?
    Can someone shed a light on this?

    I know a simple solution would be to put the file some dirs higher but I want to understand what is going on to prevent future problems

    I use ODFB, office365, word 2016, sync tool 19.123.0624.0005

9 Replies
Highlighted
Highlighted

Hi guys

 

When you see the file in Windows File Explorer, what does the Status show? Cloud icon? Green circle with green tick?

 

If it's the cloud icon for the file that is hanging, right click onto the file and choose Always keep on this device. which will download the file from the cloud to your PC and sync it to the online copy. 

 

Then open the file from Windows File Explorer and see if this fixes the issue.

 

If the file had the cloud status icon, tt may be that OneDrive was having an issue downloading and syncing the file to your PC when you open it.

 

Hope that gives you something to try towards a solution!

 

Good luck folks

Damien

Highlighted

@corvus71I just diagnosed what I'm guessing is the same issue for someone and you might be seeing a path length issue.  I think something changed between Word versions 1902 and 1911, but I'm not able to narrow it down any more than that.  The 2 workarounds I came up with are:

 

  1. Disable OneDrive's collaborative editing option.
  2. Switch to back the "Broad" (semi-annual) channel and test.  As of today, this is Word version 1902 for me.  These instructions are good if you're testing on a single machine.

I found it easiest to test if it's a path length issue by creating files with a lot of spaces in the names.  The spaces get encoded into %20 when opening the collaborative editing URL, so a filename with 60-80 spaces should be enough to trip the limit.  For example, the file:

 

C:\Users\username\OneDrive - Company Name\-  .docx

 

...ends up being something like this:

 

<domainGUID>-my.sharepoint.com/personal/username_domainname_tld/Document/-%20%20.docx?web=1

 

That example may not look like a big difference, but, for us, we have some customers with long company names which usually means a long domain name and domainGUID.  For example, "Rumpelstiltskin's Gold Spinners Inc." could look like:

 

rumpelstiltskinsgoldspinners-my.sharepoint.com/personal/rumpelstiltskin_rumpelstiltskinsgoldspinners_com/Documents/

 

That uses 115 characters before anyone creates a directory structure or adds any files.  I've set up accounts where the company name ends up being set to initials (ex: RGS) to save a few characters on the unchangeable OneDrive directory name on local PCs.  This change makes collaborative editing unusable in those cases.

 

To me it feels like an unintended bug since, as you pointed out, it's possible to open the file by jumping through Word Online's "Open in Desktop Client" link.

 

Path length issues like this are the biggest problem we have with Office 365 / OneDrive.  They're almost impossible to explain to regular users.  Personally I'm kind of hoping this issue trickles into the semi-annual channel and breaks collaborative editing for a lot of people.  Maybe then the path length issue will get some attention.

Highlighted

@Ryan Jaeb 

 

After reading your comment I started trying to find the pathlength again to get an idea about the actual allowed path length.

Using a document stored in a folder with a very long name I started adding spaces until it would not open anymore. Replacing all the spaces with "%20"  I get a path length of 220 as a limit. 221 characters and the file will not open anymore.

It would be nice if MS would have a statement somewhere about how long it is allowed to be.

 

Since all our users use the onedrive sync client they want some way to easily refer to a file stored locally. A shortcut would not work since all synced files have a %userprofile% in the link which makes a shortcut different for everyone.

For ease of collaboration they use folders like e.g. "6.2.5.6 some title" to easily communicate the location of a folder to colleagues. Instead of mentioning the very long path they say: "6.2.5.6 some title\A.docx". As you can guess the folder name gets very long by using a 6.x.x.x.x.x structure.

 

What users do as a workaround when the file does not open is:

Copy the file to their desktop. Work on it. Copy it back to the location were it came from. With a risk that someone else also worked in the document....

Highlighted

@corvus71The limit is 259 (218 for Excel).

 

However, based on my experience, it's really difficult to advise about an exact limit.  On the filesystem a space counts as 1 character.  The collaborative editing URL encodes it to %20, so 3 characters.  Plus the difference in %userprofile% path lengths that you mentioned can vary the length by several characters between users.

 

The hardest part for us isn't technically the limit.  It's the ambiguity which makes it impossible to explain to regular users.  If all of the Office apps would give an error when a user tries to use a path + filename that exceeds the limit, it's be much easier to deal with IMO.

 

I don't have any way of asking for the situation to be improved and, judging by the volume of similar complaints / questions I see online, I'm guessing it's a tough problem for them to solve.

 

Hopefully the info I gave is enough that you can do some additional testing and get an idea of what the limits are.  Good luck!

Highlighted

Our company also has this problem. No Onedrive office documents can be opened via the explorer anymore. However, via the Onedrive online display or a local copy, without using Onedrive is working. Is there a solution for this problem?

Highlighted

@NL2020 

Do you mean NONE whatsoever? Indendant of the path length? In that case it must be something else...

Highlighted

@corvus71 

 

Yes we tested a custom shorter path length/filename. That works.

But this problem occurs in last months. Before we didn't had the issues. This problem must be solved.

We can not simple shorten all the office file names from all office documents from the past. Why is this new problem happening?

Highlighted

@Ryan Jaeb thanks for the tip on disabling the collaboration feature on OneDrive.  This resolved my issue!