How to Identify Long File Paths in OneDrive Over 255 Characters?

0
2
Asked By CloudyDay23 On

I'm dealing with a bit of a nightmare scenario here. I've inherited a OneDrive situation where there are file paths longer than 255 characters—some are pushing 400! I can't sync with a local drive to look for them, so I'm trying to figure out how to check this directly in the cloud. Is there any script or tool out there that can help me connect to OneDrive and identify these long paths? I've tried using ChatGPT, but after several hours of frustration trying to set up certificates and secret keys, I'm at my wit's end. If anyone has successfully tackled this problem, I'd really appreciate your help!

5 Answers

Answered By ScriptMaster99 On

This command might be helpful for local checks: Get-ChildItem -Recurse | Where-Object { $_.FullName.Length -gt 254 }. But keep in mind, it won't work for the cloud directly.

PathFinder54 -

Good point! I'd like to check online since the app crashes on both Windows and Macs.

Answered By MigrateMaster On

Even though this is a Powershell-focused question, you might find the SharePoint Migration Tool really useful. It generates analysis reports on path lengths exceeding 255 characters and is pretty user-friendly.

HelpfulHank -

Thanks for the links! They look super useful.

GratefulUser -

I appreciate the suggestions! Really helps me out.

Answered By EasyFixFinder On

You might want to try using ShareGate, too. It’s simple for non-techies to use, which could save you from having to teach someone how to run scripts as updates occur.

CloudyDay23 -

I’m open to any solution, so thank you for the suggestion!

Answered By TechGuru92 On

You should consider using PnP PowerShell to check for documents in your OneDrive or SharePoint site. Another option is to enable the long path fix, as it can extend limits beyond what SharePoint/OneDrive generally enforce. This could help resolve your issue!

FileWizard88 -

That's a handy tip! But keep in mind that the long path fix only addresses local path limitations on Windows. It won't necessarily help with syncing issues on OneDrive itself.

MacUser90 -

I’ve run into sync issues as well, especially with Macs involved. Long paths can crash OneDrive, which complicates things further.

Answered By FileExplorerFan On

Is this issue related to OneDrive or SharePoint? If it’s SharePoint, my advice would be to stop syncing locally since it just eats up time. I might have an old script that could help you out; let me know if you're interested!

CloudyDay23 -

It's actually for OneDrive.

DocuMentor101 -

Just remember, it’s all tied into SharePoint, but they handle things a bit differently.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.