Forum Discussion

Brandon Murray's avatar
Brandon Murray
Brass Contributor
Oct 16, 2018
Solved

PnP PowerShell error: Apply-PnPProvisioningTemplate : File Not Found

Hi all, I'm trying to run the below script on my tenant just to get started with building a more complex provisioning template: $templateSiteUrl = "https://MYTENANT.sharepoint.com/sites/pstemplate1"...
  • Brandon Murray's avatar
    Brandon Murray
    Oct 17, 2018

    Removing those lines did in fact fix the issue. My script isn't ready, though, because the PowerShell I wrote to automatically change the contents of the PNP file isn't working.

     

    For now, the solution to the issue reported in the OP is to remove the <PNP:Field> elements where ID = 1a53ab5a-11f9-4b92-a377-8cfaaf6ba7be.

     

    When I remove those elements by hand, the template works. Now I need to get my script to automatically fix the template working, but that's a topic for another thread.

Resources