pnpframework
pnpframework copied to clipboard
Invoke-PnPSiteTemplate throw error: "Access is denied" for these fields _Emoji,_ColorHex,_ColorTag
_Emoji,_ColorHex, _ColorTag fields are added automatically to the extracted template. These fields are not available in the source site but still added to the extracted template which causes the provisioning to fail with below errors. After removing these fields manually from the template and then re-apply the same template is working fine. Please check and let us know why those hidden fields are automatically added to the template while extracting from the base site using Get-PnPSiteTemplate command.
These additional fields are currently breaking our automated site provisioning process.
XML Template
In my opinion, those fields should not be extracted into a site template as any other OOTB fields. The solution might be to add those fields to BuiltInFieldId. This should prevent the fields from getting extracted. I can work on a PR for this if needed.