pnpframework icon indicating copy to clipboard operation
pnpframework copied to clipboard

Invoke-PnPSiteTemplate throw error: "Access is denied" for these fields _Emoji,_ColorHex,_ColorTag

Open Sudha-msft-github opened this issue 1 year ago • 1 comments

_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.

image

XML Template image

image image

Sudha-msft-github avatar Dec 12 '23 05:12 Sudha-msft-github

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.

wilecoyotegenius avatar Dec 19 '23 19:12 wilecoyotegenius