You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use the cmdlet Set-PnPFolderPermission with the -InheritPermissions switch to restore inheritance to SharePoint document library folders, we are getting a non-descriptive bad request error.
Expected behavior
Previously, this command would complete successfully and set the folder to inherit permissions from the parent folder.
Actual behavior
We get the following error:
Unexpected response from the server. The content type of the response is "text/html". The status code is "BadRequest".
Running Get-PnPException returns:
Message: Unexpected response from the server. The content type of the response is "text/html". The status code is "BadRequest".
Stacktrace: at PnP.PowerShell.Commands.Base.PnPConnectedCmdlet.ProcessRecord() in D:\a\powershell\powershell\src\Commands\Base\PnPConnectedCmdlet.cs:line 103at PnP.PowerShell.Commands.PnPSharePointCmdlet.ProcessRecord() in D:\a\powershell\powershell\src\Commands\Base\PnPSharePointCmdlet.cs:line132 at System.Management.Automation.CommandProcessor.ProcessRecord()
What is the version of the Cmdlet module you are running?
We are currently using the nightly build, version 2.99.119.
We updated to the nightly release after getting this same error with a similar cmdlet that we were using previously (Set-PnPListItemPermission) when using version 2.12.0
Which operating system/environment are you running PnP PowerShell on?
Windows
The text was updated successfully, but these errors were encountered:
I am getting a similar error with code that was working fine until I upgraded to the latest nightly build version (2.99.125) which I had to upgrade to due to a different issue (#4550). I am using the cmdlet Get-PnPListItem like this:
Reporting an Issue or Missing Feature
When trying to use the cmdlet Set-PnPFolderPermission with the -InheritPermissions switch to restore inheritance to SharePoint document library folders, we are getting a non-descriptive bad request error.
Expected behavior
Previously, this command would complete successfully and set the folder to inherit permissions from the parent folder.
Actual behavior
We get the following error:
Unexpected response from the server. The content type of the response is "text/html". The status code is "BadRequest".
Running Get-PnPException returns:
Message: Unexpected response from the server. The content type of the response is "text/html". The status code is "BadRequest".
Stacktrace: at PnP.PowerShell.Commands.Base.PnPConnectedCmdlet.ProcessRecord() in D:\a\powershell\powershell\src\Commands\Base\PnPConnectedCmdlet.cs:line 103at PnP.PowerShell.Commands.PnPSharePointCmdlet.ProcessRecord() in D:\a\powershell\powershell\src\Commands\Base\PnPSharePointCmdlet.cs:line132 at System.Management.Automation.CommandProcessor.ProcessRecord()
ScriptLineNumber : 38
Steps to reproduce behavior
What is the version of the Cmdlet module you are running?
We are currently using the nightly build, version 2.99.119.
We updated to the nightly release after getting this same error with a similar cmdlet that we were using previously (Set-PnPListItemPermission) when using version 2.12.0
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: