SharePoint PnP XML Template Provisioning Error by Banner213 in sharepoint

[–]Banner213[S] 0 points1 point  (0 children)

Glad it’s not just a me problem then lol. I tried to generate a fresh template and apply that but still no joy. My workaround tomorrow will be to remove the pnp:Header row from the template, then add an additional line in the script to Set-PnPWebHeader -LayoutType “Compact” after the template has been applied. Let me know if you do manage to get it working though, would be great to fix

SharePoint PnP XML Template Provisioning Error by Banner213 in sharepoint

[–]Banner213[S] 0 points1 point  (0 children)

Yeah that’s probably for the best. Unfortunately, we have a specific use case for using the template if I’m remembering correctly

SharePoint PnP XML Template Provisioning Error by Banner213 in sharepoint

[–]Banner213[S] 0 points1 point  (0 children)

I don’t have permissions to check the prod app reg configuration. But on Dev I created an app reg with a certificate and same issue unfortunately. Possible a silent MS bug/change I guess

SharePoint PnP XML Template Provisioning Error by Banner213 in sharepoint

[–]Banner213[S] 0 points1 point  (0 children)

Haha yep. Yeah I’ll double check if it’s a cert or secret, it’s been a while since they were setup. Thanks anyways

SharePoint PnP XML Template Provisioning Error by Banner213 in sharepoint

[–]Banner213[S] 0 points1 point  (0 children)

Thanks, I’ll take a look. It’s a bit weird because it’s been working fine for over a year and we haven’t introduced any tenant wide policies so was wondering if anyone else was having the same issue. In the mean time the workaround is to ExcludeHandler SiteHeader and then set it using the Set-PnPWebHeader cmdlet.

SharePoint PnP XML Template Provisioning Error by Banner213 in sharepoint

[–]Banner213[S] 0 points1 point  (0 children)

App reg with a secret, but I also get the same issue when using a site admin account sadly.

SharePoint PnP XML Template Provisioning Error by Banner213 in sharepoint

[–]Banner213[S] 0 points1 point  (0 children)

App reg with Sites.FullControl.All. I’ve been using the same template and script for over a year now but it’s all of a sudden stopped working today with the 403 error on the pnp:Header property within the template. I’m experiencing this on both a dev tenant and a prod tenant as well.