Feb 12 2017 07:02 PM
I am facing the issue while applying the provisioning template to a site with Search Settings only. The issue does not occur all the time. Have anyone faced this issue earlier?
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream) at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse() at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) at Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery() at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery() at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery() at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay) at Microsoft.SharePoint.Client.SearchExtensions.SetSearchConfigurationImplementation(ClientRuntimeContext context, SearchObjectLevel searchObjectLevel, String searchConfiguration) at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectSearchSettings.ProvisionObjects(Web web, ProvisioningTemplate template, TokenParser parser, ProvisioningTemplateApplyingInformation applyingInformation) at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.ApplyRemoteTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation provisioningInfo) at Microsoft.SharePoint.Client.WebExtensions.ApplyProvisioningTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation applyingInformation)
Feb 12 2017 10:42 PM
Could you please post your provisioning xml?
Feb 13 2017 12:54 AM
Feb 13 2017 02:21 AM
I do recognize this behavior but never investigated the root-cause. So far when failing I consider the Search service to be in a temporary state ("busy with something" or maintenance) that causes this issue.
I understand you already have a dedicated Provisioning Template for Search Settings so depending on the way you apply your template you could maybe implement some sort of retry-mechanism in applying your template to work around this.
Feb 13 2017 10:58 AM
Ok since it does not happen all the time i can confirm seeing this sometimes with a unstable internet connection or during update of office365
May 15 2019 08:42 AM
I am seeing the same error and it seems very random. We did put 5 retry but even after that sometime it fails.
Is there a way we can get detailed error log from ULS or something?