Replies: 1 comment 2 replies
-
Here's a new error: This one also happened during applying the template. Seems to be a possible communication error. Maybe it's not getting a response. |
Beta Was this translation helpful? Give feedback.
2 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.
-
I have an Azure Automation Powershell RunBook that we use to create SharePoint Team sites. Part of that script applies a couple of templates to the newly created site using Invoke-PnPSiteTemplate. I am seeing intermittent errors when applying the template. I can run it one time and it completes without any issues. I can then run it again for another site and it fails when applying the template with this error (GUIDs have been replaced):
Invoke-PnPSiteTemplate : The object id "site:00000000-0000-0000-0000-000000000000:web:00000000-0000-0000-0000-000000000000 75:contenttype:0x0120D52000483357DD5D6C6A42B9B0471DCC5B5DEA:fl:00000000-0000-0000-0000-000000000000" is invalid. At line:87 char:9 + Invoke-PnPSiteTemplate -Path https://wipflillp.sharepoint.com ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Invoke-PnPSiteTemplate], ServerException + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.InvokeSiteTemplate
These are brand new sites being created in the script right above the template being applied. The template files are being stored and read from a SharePoint library and are not changing. I'm not sure how something could become "invalid" from one run to the next. Once the runbook finishes I can run the site template command locally and it completes without issue. I have tried PnP.Powershell v1.2 and v1.4 with the same results. Can anyone provide some ideas on what could be causing this?
Beta Was this translation helpful? Give feedback.
All reactions