[BUG] Invoke-PnPSiteTemplate Erroring Out #2854
Unanswered
katjones23
asked this question in
Q&A
Replies: 1 comment
-
Same error using PnP.Powershell v1.12.0. The command just stopped working importing *.pnp site templates. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have a PowerShell script to automatically provision extranet sites. On February 3rd, we had a requested site that was completed successfully. On the 23rd, we had a couple of requests come in that were not completed. The issue is with Invoke-PnPSiteTemplate; in troubleshooting, we have found that it specifically is failing when trying to apply lists from the template. We made no changes to the script or updated any modules in between the 3rd and the 23rd. In another environment, we tested with downloading the latest stable releases of PnP.Powershell and Microsoft.Online.SharePoint.PowerShell, as well as older versions, and the error still occurred.
The template is generated from an existing model site using Get-PnPSiteTemplate. When we download a template of that same site with the parameter "-ExcludeHandlers Lists", the template is successfully applied. When I use the site from the 3rd as a template, the same error occurs.
The error thrown:

Installed modules:

Beta Was this translation helpful? Give feedback.
All reactions