During the creation of some SharePoint objects like site, file, folder and group, we will get the following kind of issues.
A name cannot contain a <tab> or any of the following characters /\*:?#><|”%&{}
Server error: The file or folder name “<folder name>” contains invalid characters. Please use a different name.
Why we are getting these kind of issues
This happens because by OOTB SharePoint has limitations and restrictions on naming the items. Here, I have listed the limitations / restrictions of naming the items.
Common Invalid Characters for Site Names, File Names and Group Names
The following characters are not allowed anywhere in site names, sub-site names, folder names, file names and SharePoint group names.
- Tilde (~)
- Number sign (#)
- Percent (%)
- Ampersand (&)
- Asterisk (*)
- Braces ({ })
- Backslash (\)
- Colon (:)
- Angle brackets (< >)
- Question mark (?)
- Slash (/)
- Plus sign (+)
- Pipe (|)
- Quotation mark (")

Common Invalid strings for File Names and Folder Names
The string “_vti_” should not be used in the beginning of a file name or folder name. If we try to create a folder name with “_vti_” then it gives the following error:

The following strings also should not be used in the end of a file name / folder name creation:
- .files
- _files
- -Dateien
- _fichiers
- _bestanden
- _file
- _archivos
- -filer
- _tiedostot
- _pliki
- _soubory
- _elemei
- _ficheiros
- _arquivos
- _dosyalar
- _datoteke
- _fitxers
- _failid
- _fails
- _bylos
- _fajlovi
- _fitxategiak
- The site name, sub site name and group names should not start with the underscore (_) character.
- The site name, sub site name and group names should not start with the period (.) character

Other folder and file name limitations
- The folder or file name should not start with the period (.) character
- The folder or file name should not have a consecutive period (.) character
- The folder or file name should not end with a period (.) character
- Use of the underscore (_) character at the beginning of the folder or file name makes that folder or file as a hidden one respectively.
- 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.
Server error: 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.

Dinesh GabhanePosted Nov 18, 2019, 3:57 AM
Good One. Keep It Up.
SriramPosted Jul 6, 2015, 1:47 AM
Good.................
Vipin TyagiPosted May 27, 2015, 2:10 AM
Sir Can you please describe the limitations with SharePoint Online(O365).
Karthik Muthu KaruppanPosted Apr 23, 2015, 11:37 AM
nice
Manoj BhoirPosted Apr 18, 2015, 11:10 AM
Good One. Keep It Up.
Prasad PathakPosted Apr 17, 2015, 5:35 AM
informative article.Thanks
Gowtham RajamanickamPosted Apr 17, 2015, 12:13 AM
good show..
Rahul Kumar SaxenaPosted Apr 17, 2015, 12:03 AM
good show..
Santhakumar MunuswamyPosted Apr 16, 2015, 11:56 PM
Thanks for good one