Forum Discussion

PÃ¥l Eilertsen's avatar
PÃ¥l Eilertsen
Copper Contributor
Aug 28, 2019

Intermitten "Failed to apply web template." when using ApplyProvisioningTemplate

Hi,

 

I am using a Azure Function together with a Logic App to provision new SiteCollections. Intermittenly I get:


Failed to apply web template.
Site: {url}
Template: D:\home\site\wwwroot\Files\Template\web-template.xml
Operation is not valid due to the current state of the object.

 

I am able to apply the template using PowerShell Apply-PnPProvisioningTemplate afterwards. What are the likely culprits?

 

I am checking that the sitecollection exists prior to adding the template. For the most part everything works fine, but sometimes it fails.

 

PÃ¥l

 

No RepliesBe the first to reply

Resources