Invalid characters in file names

In a scenario when your file contains an invalid character in its name, you will get the following error:

The file or folder name "KanBoDoc/Manual #1.pdf" contains invalid characters. Please use a different name. Common invalid characters include the following: # % * : < > ? / |
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
at KanBo.Web.Plugins.Builtin.DocSourceSP.Sharepoint15UploadLogic.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KanBo.Web.Plugins.Builtin.DocSourceSP.DefaultSharepointSource.d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KanBo.Web.BlockingQueueUploadManager.BlockingQueueUploadTask.<>c__DisplayClass9_0.<<-ctor>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KanBo.Web.BlockingQueueUploadManager.BlockingQueueUploadTask.End()
at KanBo.Core.Actions.Upload.EndUploadSingleHandler.Invoke(EndUploadSingle args)
at KanBo.Web.InvokableActionWrapper`1.<>c__DisplayClass2_0.b__0()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KanBo.Web.KanBoHub.d__2.MoveNext()



KanBo uses SharePoint to store files and it has some restrictions in regards to file names. In this case, your file or file path contains invalid characters. To get rid of this issue, please change the name of the file or the path and try again.


You cannot use the following characters in a file name or file path:

  • Tilde (~)
  • Number sign (#)
  • Percent (%)
  • Ampersand (&)
  • Asterisk (*)
  • Braces ({ })
  • Backslash (\\)
  • Colon (:)
  • Angle brackets (< >)
  • Question mark (?)
  • Slash (/)
  • Plus sign (+)
  • Pipe (|)
  • Quotation mark (")
  • Double dot (i.e. documentname..pdf)

Also:

You cannot use the period character consecutively in the middle of a file/folder name.
You cannot use the period character at the end of a file/foldername.
You cannot start a file/foldername with a period character.
If you use an underscore character (_) at the beginning of a file/foldername, the file/folder will be a hidden file/folder.


Once you upload a new document, containing not supported characters, a communicate will appear. Now you can move forward and upload the document with corrected name – KanBo will change the name for you.



This article is based on https://support.microsoft.com/pl-pl/help/905231/information-about-the-characters-that-you-cannot-use-in-site-names,-folder-names,-and-file-names-in-sharepoint .

Is this article helpful for you?