sp-starter-kit
sp-starter-kit copied to clipboard
Invoke-PnPTenantTemplate : The property or field 'ServerRelativeUrl' has not been initialized.
Category
- [x] Bug
Describe the bug
Expected or Desired Behavior
Starterkit being installed
Observed Behavior
Invoke-PnPTenantTemplate : The property or field 'ServerRelativeUrl' has not been initialized. It has not been
requested or the request has not been executed. It may need to be explicitly requested.
In Zeile:1 Zeichen:1
+ Invoke-PnPTenantTemplate -Path .\starterkit.pnp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Invoke-PnPTenantTemplate], PropertyOrFieldNotInitializedException
+ FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Tenant.InvokeTenantTemplate
Steps to Reproduce
Connect-PnPOnline -Url "https://tenant-admin.sharepoint.com"
Environment Details (Development & Target environment)
- Starter kit version: v2
- OS: Windows 10
- Target Environment: SharePoint Online
- Framework: ?
- PnPPowerShell Version : 1.11.0
- Browser(s): Chromium Edge v104
- Additional details: Prereq done as described in wiki and:
Get-PnPException
Message : The property or field 'ServerRelativeUrl' has not been initialized. It has not been requested or
the request has not been executed. It may need to be explicitly requested.
Stacktrace : bei Microsoft.SharePoint.Client.ClientObject.CheckUninitializedProperty(String propName)
bei Microsoft.SharePoint.Client.Web.get_ServerRelativeUrl()
bei Microsoft.SharePoint.Client.ListExtensions.GetListByUrl(Web web, String webRelativeUrl,
Expression`1[] expressions)
bei PnP.Framework.Provisioning.ObjectHandlers.Utilities.TenantHelper.ProcessApps(Tenant tenant,
ProvisioningTenant provisioningTenant, FileConnectorBase connector, TokenParser parser,
PnPMonitoredScope scope, ApplyConfiguration configuration, ProvisioningMessagesDelegate
messagesDelegate)
bei PnP.Framework.Provisioning.ObjectHandlers.ObjectHierarchyTenant.ProvisionObjects(Tenant
tenant, ProvisioningHierarchy hierarchy, String sequenceId, TokenParser parser, ApplyConfiguration
configuration)
bei
PnP.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.ApplyTenantTemplate(Tenant
tenant, ProvisioningHierarchy hierarchy, String sequenceId, ApplyConfiguration configuration)
bei PnP.PowerShell.Commands.Provisioning.Tenant.InvokeTenantTemplate.ExecuteCmdlet()
bei PnP.PowerShell.Commands.PnPSharePointCmdlet.ProcessRecord()
ScriptLineNumber : 1
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Will look into this. There may have been updates to the PnP Powershell Module that we haven't reflected in our PnP Templates used in the PnP Starter Kit.
It would also help to have PS debug logging enabled to understand where in the provisioning process this error is being triggered. https://github.com/pnp/sp-starter-kit/blob/v3/documentation/common-provision-results.md#error-general-cascading-errors