Open cmuellerd opened 3 years ago
The Commandlet use GetDefaultKeywordsTermStore this throws an Error when you did not use Keywords in Managed Meta Data
The Commandlet should use the Function GetDefaultSiteCollectionTermStore which returns the TermStore even when you not use keywords
Konsolelog : powershell_ise.exe Information: 0 : 2020-10-23 16:52:17.6149 [Provisioning] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.2501 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.2521 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 2ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.2521 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.2532 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.2532 [Term Groups] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Error: 0 : 2020-10-23 16:52:19.6098 [OfficeDevPnP.Core] [0] [Error] ExecuteQuery threw following exception: Microsoft.SharePoint.Client.ServerException: Cannot invoke metho d or retrieve property from null object. Object returned by the following call stack is null. "GetDefaultKeywordsTermStore Microsoft.SharePoint.Taxonomy.TaxonomySession.GetTaxonomySession " bei Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream) bei Microsoft.SharePoint.Client.ClientRequest.ProcessResponse() bei Microsoft.SharePoint.Client.ClientContext.ExecuteQuery() bei Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay, String userAgent) ServerErrorCode: -1 ServerErrorTypeName: Microsoft.SharePoint.Client.ClientServiceException ServerErrorTraceCorrelationId: f181869f-eb0d-f08b-de9d-d479e629463c ServerErrorValue: ServerErrorDetails: . 0ms powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6128 [Term Groups] [16] [Debug] Code execution scope ended 358ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6128 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6138 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6138 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6148 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6168 [Persist Template Info] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:22.8341 [Persist Template Info] [16] [Debug] Code execution scope ended 3217ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:22.8351 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:22.8411 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 6ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:23.1303 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:23.1313 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:23.1313 [Provisioning] [16] [Debug] Code execution scope ended 5516ms 4141386f-bddd-43c7-accf-3c9e4d4e5709
Use the Commandlet when your Farm ist configured to not using Keywords
RootModule = 'PnP.PowerShell.2019.Commands.dll' ModuleVersion = '3.26.2010.0'
Reporting an Issue
The Commandlet use GetDefaultKeywordsTermStore this throws an Error when you did not use Keywords in Managed Meta Data
Expected behavior
The Commandlet should use the Function GetDefaultSiteCollectionTermStore which returns the TermStore even when you not use keywords
Actual behavior
Konsolelog : powershell_ise.exe Information: 0 : 2020-10-23 16:52:17.6149 [Provisioning] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.2501 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.2521 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 2ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.2521 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.2532 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.2532 [Term Groups] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Error: 0 : 2020-10-23 16:52:19.6098 [OfficeDevPnP.Core] [0] [Error] ExecuteQuery threw following exception: Microsoft.SharePoint.Client.ServerException: Cannot invoke metho d or retrieve property from null object. Object returned by the following call stack is null. "GetDefaultKeywordsTermStore Microsoft.SharePoint.Taxonomy.TaxonomySession.GetTaxonomySession " bei Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream) bei Microsoft.SharePoint.Client.ClientRequest.ProcessResponse() bei Microsoft.SharePoint.Client.ClientContext.ExecuteQuery() bei Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay, String userAgent) ServerErrorCode: -1 ServerErrorTypeName: Microsoft.SharePoint.Client.ClientServiceException ServerErrorTraceCorrelationId: f181869f-eb0d-f08b-de9d-d479e629463c ServerErrorValue: ServerErrorDetails: . 0ms powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6128 [Term Groups] [16] [Debug] Code execution scope ended 358ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6128 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6138 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6138 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6148 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:19.6168 [Persist Template Info] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:22.8341 [Persist Template Info] [16] [Debug] Code execution scope ended 3217ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:22.8351 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:22.8411 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 6ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:23.1303 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope started 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:23.1313 [ProvisioningTemplate WebHook Call] [16] [Debug] Code execution scope ended 0ms 4141386f-bddd-43c7-accf-3c9e4d4e5709 powershell_ise.exe Information: 0 : 2020-10-23 16:52:23.1313 [Provisioning] [16] [Debug] Code execution scope ended 5516ms 4141386f-bddd-43c7-accf-3c9e4d4e5709
Steps to reproduce behavior
Use the Commandlet when your Farm ist configured to not using Keywords
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
How did you install the PnP-PowerShell Cmdlets?