PnP-PowerShell
PnP-PowerShell copied to clipboard
Enable-PnPFeature Document Sets site collection feature not working consistently
###Notice: many issues / bugs reported are actually related to the PnP Core Library which is used behind the scenes. Consider carefully where to report an issue:###
-
Are you using
Apply-PnPProvisioningTemplate
orGet-PnPProvisioningTemplate
? The issue is most likely related to the Provisioning Engine. The Provisioning engine is not located in the PowerShell repo. Please report the issue here: https://github.com/pnp/PnP-Sites-Core/issues. - Is the issue related to the cmdlet itself, its parameters, the syntax, or do you suspect it is the code of the cmdlet that is causing the issue? Then please continue reporting the issue in this repo.
- If you think that the functionality might be related to the underlying libraries that the cmdlet is calling (We realize that might be difficult to determine), please first double check the code of the cmdlet, which can be found here: https://github.com/pnp/PnP-PowerShell/tree/master/Commands. If related to the cmdlet, continue reporting the issue here, otherwise report the issue at https://github.com/pnp/PnP-Sites-Core/issues
Reporting an Issue or Missing Feature
In my PnP PowerShell script I am rolling out a Team Site. To use managed metadata features I am activating the following SharePoint features:
$EnableDocSetFeature = Enable-PnPFeature -Identity 3bae86a2-776d-499d-9db8-fa4cdc7884f8 -Scope Site -ErrorAction Stop
$EnablePushNotificationsFeature = Enable-PnPFeature -Identity 41e1d4bf-b1a2-47f7-ab80-d5d6cbba3092 -Scope Web -ErrorAction Stop
$EnableTaxonomyFeature = Enable-PnPFeature -Identity 73ef14b1-13a9-416b-a9b5-ececa2b0604c -Scope Site -ErrorAction Stop
I notice that periodically this feature is not run properly. I observe that there is no exception or error showing up in the Azure Runbook result, but that the site feature is not disabled. When I re-run the job, it runs successfully without changing anything.
Expected behavior
Consistent behavior.
Actual behavior
No error message, but the site feature not being activated. I observe this through Site Settings -> Site Collection features. If I re-run the job, it runs fine.
Steps to reproduce behavior
Please review code above
Which version of the PnP-PowerShell Cmdlets are you using?
- [ ] PnP PowerShell for SharePoint 2013
- [ ] PnP PowerShell for SharePoint 2016
- [ ] PnP PowerShell for SharePoint 2019
- [x] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
SharePointPnPPowerShellOnline module version 3.22.2006.2
How did you install the PnP-PowerShell Cmdlets?
- [ ] MSI Installed downloaded from GitHub
- [x] Installed through the PowerShell Gallery with Install-Module
- [ ] Other means
Azure PowerShell Gallery -> Import module
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Is there is any update ? I am facing same issue and i am not able to assign custom permissions using PNP
Is there is any update ? I am facing same issue and i am not able to assign custom permissions using PNP
Unfortunately not...