pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

[Bug] Add-PnPFolder fails for folder names containing a hash (#) #2905

Open nnawalage opened 4 years ago

nnawalage commented 4 years ago

Reporting an Issue or Missing Feature

When I try to create a folder using Add-PnPFolder -Name "Test # Folder" -Folder "ABC/", it throws error "The argument must be a single folder name and cannot contain path characters"

Expected behavior

For SharePoint Online, Add-PnPFolder should be able to create a folder, that contains an hashtag(#). You can create a folder like this using UI.

Actual behavior

Throws exception. Message ""The argument must be a single folder name and cannot contain path characters"

Steps to reproduce behavior

Create a folder with # in the name Add-PnPFolder -Name "Test # Folder" -Folder "ABC/"

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

3.24.20

How did you install the PnP-PowerShell Cmdlets?