PnP-PowerShell icon indicating copy to clipboard operation
PnP-PowerShell copied to clipboard

Load-PnPProvisioningTemplate error SP2013 on-prem

Open MikaTas opened this issue 9 years ago • 1 comments

Load-PnPProvisioningTemplate throws unexpected error when trying to load template file from given path. Environment is SP2013 On-premise Server (at version: Jan 2017 CU 15.0.4893.1000).

Expected behavior

Should load the PnPProvisioningTemplate

Actual behavior

PS C:\temp> dir Directory: C:\temp

Mode LastWriteTime Length Name


-a--- 25.1.2017 13:46 51839 template.xml

PS C:\temp> Load-PnPProvisioningTemplate -Path template.xml Value cannot be null. Parameter name: source + CategoryInfo : NotSpecified: (:) [Load-PnPProvisioningTemplate], ArgumentNullException + FullyQualifiedErrorId : System.ArgumentNullException,SharePointPnP.PowerShell.Commands.Provisioning.LoadProvisioningTemplate

Steps to reproduce behavior

Connect-PnPOnline -Url

Get-PnPProvisioningTemplate -Out C:\temp\template.xml -IncludeSearchConfiguration -IncludeSiteGroups -PersistPublishingFiles -SkipVersionCheck -Force

Load-PnPProvisioningTemplate -Path C:\temp\template.xml

Using:

  • [ ] PnP PowerShell for SharePoint 2013 (on-premise)

What is the version of the Cmdlet module you are running?

Script 2.11.1701.1 SharePointPnPPowerShell2013

How did you install the PnP-PowerShell Cmdlets?

  • [ ] MSI Installed downloaded from GitHub
  • [ ] Installed through the PowerShell Gallery with Install-Module

MikaTas avatar Jan 25 '17 12:01 MikaTas

We closed this issue as it had not activity within last 180 days. This is a generic process we have decided to perform for issues, which have not been explicitly marked still to be "work in progress" based on tags. We are performing this cleaning to make sure that old issues that have already been solved (but not closed) or are no longer relevant are cleaned out and make the issues more manageable. If this issue still valid, we would ask you to open a new issue and follow the guidance in the issue template related on the recommended location. We do apologize any inconveniences this might cause. Please do remember that issues in the issue lists are also messages for others in the community, so you can also check if you can assist on any of them. “Sharing is caring!”

spdevdocs avatar Apr 28 '18 14:04 spdevdocs