PnP provisioning: page templates are not published

Copper Contributor

When applying a PnP provisioning template to a site I ran into an error of a secondary version limit being reached on a page template. 


After investigating I found out that page templates are explicitly not published (PnP-Sites-Core, ObjectClientSidePages.cs line 591).


Is there a specific reason for this? And what would be a good alternate to make sure that I can keep provisioning new versions (applying this template is part of a CI release pipeline on Azure DevOps).


Thanks in advance!

2 Replies

@Marcela Bovio Page Templates aren't published because that would cause them to  show up in SharePoint search which may have unintended consequences of showing users pages that would be incomplete

@Beau Cameron that makes sense, thanks!