Files and Folder appear and then disappear from OneDrive and SharePoint

We ran into something at my MSP that I thought I would share. It’s not that we haven’t seen this issue before it is just that it presented itself in a new way.

What was happening is that files and folders were appearing in OneDrive for a moment, then disappearing, then reappearing, then disappearing. The client reported this as OneDrive “flashing”.

This issue occurs when the file path length exceeds the maximum allowed. What was really happening is that the sync engine was writting the meta data, then failing due to the file length, then retrying. As of this writing, the maximum file path length is a much too short 400 characters. That may seem like alot until you realize that it includes the full URL path to the file. We could verify this by looking at the properties of a problem file. Here we see that the character length wiht spaces is 410 so it’s 10 characters over the maximum allowed.

Why is this file length such a problem? Well I’ll use myself as an example. https://thirdtier-my.sharepoint.com/personal/amy_thirdtier_net/Documents/Dont%20Miss%20This%20Setting/M365DontMissThisSettingJanuary.mp4 That’s 136 characters for a file that is held in a top level subfolder of the documents folder. Further I’m using 73 characters just for the front end of the path before I even get to my folders. If you have a client that nests folders or has a file structure that is more than a few folders deep or likes to give files descriptive names, then you’ve got a problem. That data will have to be reoganized and possible renamed before migrating to the cloud.

If you’d like to familiarize yourself with the limits of path length and OneDrive and SharePoint you can find them at this URL. https://support.microsoft.com/en-us/office/invalid-file-names-and-file-types-in-onedrive-and-sharepoint-64883a5d-228e-48f5-b3d2-eb39e07630fa?ui=en-us&rs=en-us&ad=us#filenamepathlengths

All we do is support IT professionals. Help for IT Pros, Super Secret News, Security community, MSP Legislation community, Kits, papers, MSP training and more. https://www.thirdtier.net

Leave a comment

Your email address will not be published. Required fields are marked *

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