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 – Office Dev PnP PowerShell – Mixing up releases

It's not often that I work with SharePoint on-premises anymore, but recently I had a look at PnP PowerShell for SharePoint 2013.  Today I switched back to SharePoint Online.  I started to export some sites using get-PnPProvisioningTemplate and I got the following error message: powershell_ise.exe Information: 0 : 2017-03-20 14:55:48.3702 [Page Contents] [12] [Debug] Code … Continue reading Office 365 – Office Dev PnP PowerShell – Mixing up releases

Office 365 – PnP – Exporting sites with welcome pages not set to a page

Today I tried to export a site as a PnP template and I was getting an annoying error: Get-PnPProvisioningTemplate : Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null. "ListItemAllFields " At D:\Temp\DMPowershell\GetPnPTemplateClients.ps1:9 char:1 + Get-PnPProvisioningTemplate -Web $sourceWeb -Out "d:\Temp\DMPowershel ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo          : … Continue reading Office 365 – PnP – Exporting sites with welcome pages not set to a page

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