Open ghost opened 5 years ago
Having the same issue. Tried to revert back and use 3.1.xxx and even 3.2xxxx but I get an error showing Apply-PnPTenantTempalte is not a known function. Any ideas on what I can do to rectify that?
Try the below command, you should get a listing of commands available. I believe that command is relatively new and may not be part of 3.1
Get-Command -Module SharePointPnPPowerShellOnline | Select-Object -Property name, version
Be sure to use Apply-PnPTenantTemplate . Seems you have a type on that command
Having the same issue. My pnp powershell version is 3.3.1811.0.
@anavikra ,
Can you try again with the latest version of PnP PowerShell? The instructions for installing page transformation do mention you need to have at least the December version while you're using the November version.
Expected behavior
I should be able to upload an app package to the tenant app catalog via provisioning template like so:
<pnp:Tenant> <pnp:AppCatalog> <pnp:Package Src="..\..\sharepoint\solution\mypkg.sppkg" Action="UploadAndPublish" SkipFeatureDeployment="false" Overwrite="true" /> </pnp:AppCatalog> <pnp:StorageEntities> <pnp:StorageEntity Key="CONFIG_LIST" Value="My Title" /> </pnp:StorageEntities> </pnp:Tenant>
Actual behavior
With 3.2.1810.0 the following error occurs:
Apply-PnPProvisioningTemplate : The property or field 'RootSiteUrl' has not been initialized. It has not been requested or the request has not been executed. it may need to be explicitly requested.
Switching back to 3.1.X works.
Steps to reproduce behavior
Apply a template on 3.2.1810.0 targeting Tenant and uploading an app.
Which version of the PnP-PowerShell Cmdlets are you using?
How did you install the PnP-PowerShell Cmdlets?