PnP PowerShell – Apply-PnPProvisioningTemplate stuck on initializing engine

Apply-PnPProvisioningTemplate stuck Today I used PnP PowerShell to provision one of my sites. For some reason my Apply-PnPProvisioningTemplate  CmdLet just didn't want to run properly. Every time I ran Apply-PnPProvisioningTemplate it would just hang on Initializing engine.  I enabled the debugging for my PnP Powershell, but still I didn't have much luck finding out what was happening. … Continue reading PnP PowerShell – Apply-PnPProvisioningTemplate stuck on initializing engine

Advertisements

Office 365 – SharePoint 2013/2016 – Replicating or migrating SharePoint sites.

Over the last year or so many of my posts have been related to the PnP Provisioning Engine. I've created multiple scripts to replicate my whole intranet from one tenant to another. I've set this all up in such a way that this would work for any intranet solution based on Office 365 or SharePoint … Continue reading Office 365 – SharePoint 2013/2016 – Replicating or migrating SharePoint sites.

Office 365 – Apply-PnPProvisioningTemplate not updating pages.

Today I ran the latest version of the PnP PowerShell commands to apply some templates. I noticed the folloiwng warning after I enabled debug PowerShell_ISE.exe Warning: 0 : 2017-01-25 10:50:55.3041 [Files] [12] [Information] Skipping upload of file 'Pages\default.aspx' to 'Pages'. 1497ms 7b0362d0-b49b-4d71- 9251-a5c060fac6fe Why are these pages skipped?   Looking at the code responsible for … Continue reading Office 365 – Apply-PnPProvisioningTemplate not updating pages.

Office 365 – Apply-PnPProvisioningTemplate with publishing pages

Today I tried to apply a PnP template to a publishing site and I was getting the following error. Apply-PnPProvisioningTemplate : The object specified does not belong to a list. At line:1 char:1 + Apply-PnPProvisioningTemplate -Path $templateFile -Web $departmentWe ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Apply-PnPProvisioningTemplate], ServerException + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.ApplyProvisioningTemplate I found … Continue reading Office 365 – Apply-PnPProvisioningTemplate with publishing pages