I was following this to restore a site template on a different site collection. But it keeps on throwing an exception "".
Please suggest what I am missing
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI was following this to restore a site template on a different site collection. But it keeps on throwing an exception "".
Please suggest what I am missing
I had exactly the same issue using Joao's code. What fixed it for me was applying a different Template type. Change
-Template "BLANKINTERNET#0"
to
-Template "STS#3"
$web = New-PnpWeb -Title "$siteTitle" -Url "$siteUrl" -Description "$siteDescription" -Locale 1033 -Template "STS#3"