This SharePoint tutorial, we will discuss how to resolve the specified file or folder name is too long sharepoint 2013/2016 error. The error will come if you will provide folder name more than 128 characters in SharePoint on-premise or SharePoint Online.
The full error will appear as:
The specified file or folder name is too long. The URL path for all files and folders must be 260 characters or less (and no more than 128 characters for any single file or folder name in the URL). Please type a shorter file or folder name.
the specified file or folder name is too long SharePoint
There is a limit of 128 characters for folder names in SharePoint. So the best thing is to give small meaningful names as well as avoid spaces and special characters. For example, a space encoded as %20 will take three characters.
Length Restrictions:
- The file/folder name should not have more than 128 characters.
- The full path of file/folder length should not exceed more than 260 characters.
You may like the following SharePoint tutorials:
- SharePoint Document Sets Vs Folder
- Create the folder if not exists using PowerShell
- Microsoft Flow Example: Copy files from one SharePoint Online account or folder to another
- How to sort folders in SharePoint document library?
- Excel cannot connect to the SharePoint list
- Page Viewer Web Part in SharePoint Online
- SharePoint Find an Item List search box does not return results
Hope this article will be helpful to resolve the specified file or folder name is too long SharePoint 2013/2016 error.
Bhawana Rathore is a Microsoft MVP (3 times in Office Apps & Services) and a passionate SharePoint Consultant, having around 10 years of IT experience in the industry, as well as in .Net technologies. She likes to share her technical expertise in EnjoySharePoint.com and SPGuides.com
full path length is now 400, not 256. https://techcommunity.microsoft.com/t5/microsoft-sharepoint-blog/new-maxpath-limits-in-sharepoint-and-onedrive/ba-p/68273