Hi,
I have been doing some analysis of a large amount of data migrating from SharePoint 2007 to SharePoint 365, and have had thousands of exceptions based on file paths being too long.
I've analysed a couple of random cases of files that copied successfully, and in one case there were so many folders in folders, and the file name was long, that the total number of characters in the URL was 367 if spaces are %20, and 243 if not.
I read somewhere that the total allowed characters was 400, however I've had a number of cases where file transfers have failed and the total characters in the file path was much less than that. I just can't seem to get a solid answer and it's driving me nuts!!
Any help appreciated
Dave
Hi Dave,
As per my enquiry with Microsoft they confirmed if we purely use SharePoint online via browser then the character limit is 400, whereas when we sync the folders to one-drive then window file path limit is applied of 218 characters, that is also very tricky because each space is equal to 3 characters as its encoded to %20 so at the end of the day its very tedious to know what is the actual file path length.
Another issue you will face is when saving a file using 'Save as' , please notice it will save in file path directory something like this https://domain-name.sharepoint.sharepoint.com/sites/DocumentCenter/Shared Documents/ now these characters are also being used in 218 character limit which further reduces down your character limit.
Regards,
Adnan.