Nov 15 2017 06:33 AM - edited Nov 15 2017 07:22 AM
I have this simple powershell:
Connect-PnPOnline https://blabla.sharepoint.com/sites/blasite $templateFolder = "C:\temp\ps" Get-PnPProvisioningTemplate -Out $templateFolder\full.xml New-PnPWeb -Template C:\temp\ps\full.xml -Title bla -Url blasite2
The creation of the .xml runs without errors.
Creating the new web gives me "Invalid file or arguments for template"
What can be the issue here?
Edit: Just to be sure. Ik tried to do the same with an "untouched" teamsite. Same error
Nov 16 2017 01:08 AM
SolutionWhen I create te site first with a standard template (STS#0) and apply my template later, using apply-pnpprovisioningtemplate, it works.
Nov 16 2017 01:08 AM
SolutionWhen I create te site first with a standard template (STS#0) and apply my template later, using apply-pnpprovisioningtemplate, it works.