Gravatar for ravigupta020287@gmail.com

Question by Ravi, May 25, 2017 9:46 AM

Coveo for sitecore: Coveo Index Content Type is not HTML in CES

Hi,

We have a sitecore website, after doing the indexing in sitecore, the CES index browser doesn't show any content in the summary field and search result excerpt doesn't show up in coveo search result view.

CES Index browser contentType is sitecoreItem not HTML as shown below:

Sitecore logs errors:

WARN  The current item (NotFound) could not be processed by the field processor Sitecore.ContentSearch.VirtualFields.UniqueIdFieldProcessor.
Exception: System.Collections.Generic.KeyNotFoundException
Message: The given key was not present in the dictionary.
Source: mscorlib
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Sitecore.ContentSearch.VirtualFields.UniqueIdFieldProcessor.TranslateFieldResult(IDictionary`2 fields, FieldNameTranslator fieldNameTranslator)
   at Coveo.SearchProvider.CoveoDocumentTypeMapper.ReadDocumentFields[TElement](QueryResult p_Document, IEnumerable`1 p_FieldNames, DocumentTypeMapInfo p_DocumentTypeMapInfo, IEnumerable`1 p_VirtualFieldProcessors, TElement p_Result)

How do i correct this?

2 Replies
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, May 25, 2017 11:01 AM

  1. Do you have the HTMLContentInBodyWithRequestProcessor enabled?
  2. Your items do have a layout?
  3. Other exceptions in your logs?
Gravatar for ravigupta020287@gmail.com

Answer by Ravi, May 25, 2017 11:52 AM

  1. Yes, the HTMLContentBodyWithRequestProcessor is enabled in config
  2. Yes, the Items have layout
  3. Exception logs
ManagedPoolThread #6 11:34:05 ERROR An error while rebuilding occurred
Exception: Coveo.Framework.Exceptions.CoveoSearchProviderException
Message: Inactivity timeout expired. Not all documents were committed in the allotted time (01:00:00). Aborting the rebuild task.
Source: Coveo.AbstractLayer
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.AreDocumentsCommitted(UInt32 p_ActualTotalCount, UInt32 p_ExpectedTotalCount, String p_SourceName)
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.<>c__DisplayClass4e.<CreateAddedDocumentsPoller>b__4d()
   at Coveo.Framework.Synchronization.Poller.WaitUntilComplete()
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.StopRebuild(RebuildContext p_Context)
   at Coveo.SearchProvider.ProviderIndexBase.PerformRebuild(IProviderUpdateContext p_Context, Action`1 p_CrawlerAction)
   at Coveo.SearchProvider.ProviderIndexBase.Rebuild(IndexingOptions p_IndexingOptions, IProviderUpdateContext p_Context, Action`1 p_CrawlerAction)


ManagedPoolThread #2 11:34:05 ERROR Exception
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj)
   at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args)
   at (Object , Object[] )
   at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
   at Sitecore.Jobs.Job.ThreadEntry(Object state)


Nested Exception


Exception: Coveo.Framework.Exceptions.CoveoSearchProviderException
Message: Inactivity timeout expired. Not all documents were committed in the allotted time (01:00:00). Aborting the rebuild task.
Source: Coveo.AbstractLayer
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.AreDocumentsCommitted(UInt32 p_ActualTotalCount, UInt32 p_ExpectedTotalCount, String p_SourceName)
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.<>c__DisplayClass4e.<CreateAddedDocumentsPoller>b__4d()
   at Coveo.Framework.Synchronization.Poller.WaitUntilComplete()
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.StopRebuild(RebuildContext p_Context)
   at Coveo.SearchProvider.ProviderIndexBase.PerformRebuild(IProviderUpdateContext p_Context, Action`1 p_CrawlerAction)
   at Coveo.SearchProvider.ProviderIndexBase.Rebuild(IndexingOptions p_IndexingOptions, IProviderUpdateContext p_Context, Action`1 p_CrawlerAction)
   at Coveo.SearchProvider.ProviderIndex.TryPerformIndexingOperation(IndexingOptions p_IndexingOptions, Action p_Action)
   at Coveo.SearchProvider.ProviderIndex.Rebuild()




ManagedPoolThread #6 11:34:05 ERROR Exception
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj)
   at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args)
   at (Object , Object[] )
   at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
   at Sitecore.Jobs.Job.ThreadEntry(Object state)


Nested Exception


Exception: Coveo.Framework.Exceptions.CoveoSearchProviderException
Message: Inactivity timeout expired. Not all documents were committed in the allotted time (01:00:00). Aborting the rebuild task.
Source: Coveo.AbstractLayer
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.AreDocumentsCommitted(UInt32 p_ActualTotalCount, UInt32 p_ExpectedTotalCount, String p_SourceName)
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.<>c__DisplayClass4e.<CreateAddedDocumentsPoller>b__4d()
   at Coveo.Framework.Synchronization.Poller.WaitUntilComplete()
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.StopRebuild(RebuildContext p_Context)
   at Coveo.SearchProvider.ProviderIndexBase.PerformRebuild(IProviderUpdateContext p_Context, Action`1 p_CrawlerAction)
   at Coveo.SearchProvider.ProviderIndexBase.Rebuild(IndexingOptions p_IndexingOptions, IProviderUpdateContext p_Context, Action`1 p_CrawlerAction)
   at Coveo.SearchProvider.ProviderIndex.TryPerformIndexingOperation(IndexingOptions p_IndexingOptions, Action p_Action)
   at Coveo.SearchProvider.ProviderIndex.Rebuild()


11176 11:43:39 ERROR Exception while processing request
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Coveo.Search.Api.Proxy
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.EnsureValidCookieValue(String p_CookieValue)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.CopyIncomingRequest(HttpRequest p_From, HttpWebRequest p_To)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.SetDefaultResponse(HttpContext p_Context)
   at Coveo.SearchProvider.Rest.SitecoreRestHttpHandler.OnReverseProxyRequest(HttpContext p_Context)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.ProcessRequest(HttpContext p_Context)


11176 11:43:39 ERROR Application error.
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Coveo.Search.Api.Proxy
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.EnsureValidCookieValue(String p_CookieValue)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.CopyIncomingRequest(HttpRequest p_From, HttpWebRequest p_To)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.SetDefaultResponse(HttpContext p_Context)
   at Coveo.SearchProvider.Rest.SitecoreRestHttpHandler.OnReverseProxyRequest(HttpContext p_Context)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.ProcessRequest(HttpContext p_Context)
   at Coveo.SearchProvider.Rest.SitecoreRestHttpHandlerDispatcher.ProcessRequest(HttpContext p_Context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


10024 11:43:39 ERROR Exception while processing request
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Coveo.Search.Api.Proxy
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.EnsureValidCookieValue(String p_CookieValue)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.CopyIncomingRequest(HttpRequest p_From, HttpWebRequest p_To)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.SetDefaultResponse(HttpContext p_Context)
   at Coveo.SearchProvider.Rest.SitecoreRestHttpHandler.OnReverseProxyRequest(HttpContext p_Context)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.ProcessRequest(HttpContext p_Context)


10024 11:43:39 ERROR Application error.
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Coveo.Search.Api.Proxy
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.EnsureValidCookieValue(String p_CookieValue)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.CopyIncomingRequest(HttpRequest p_From, HttpWebRequest p_To)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.SetDefaultResponse(HttpContext p_Context)
   at Coveo.SearchProvider.Rest.SitecoreRestHttpHandler.OnReverseProxyRequest(HttpContext p_Context)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.ProcessRequest(HttpContext p_Context)
   at Coveo.SearchProvider.Rest.SitecoreRestHttpHandlerDispatcher.ProcessRequest(HttpContext p_Context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


6624 11:43:39 INFO  HttpModule is being initialized
6832 11:43:44 ERROR Exception while processing request
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Coveo.Search.Api.Proxy
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.EnsureValidCookieValue(String p_CookieValue)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.CopyIncomingRequest(HttpRequest p_From, HttpWebRequest p_To)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.SetDefaultResponse(HttpContext p_Context)
   at Coveo.SearchProvider.Rest.SitecoreRestHttpHandler.OnReverseProxyRequest(HttpContext p_Context)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.ProcessRequest(HttpContext p_Context)


6832 11:43:44 ERROR Application error.
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Coveo.Search.Api.Proxy
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.EnsureValidCookieValue(String p_CookieValue)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.CopyIncomingRequest(HttpRequest p_From, HttpWebRequest p_To)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.SetDefaultResponse(HttpContext p_Context)
   at Coveo.SearchProvider.Rest.SitecoreRestHttpHandler.OnReverseProxyRequest(HttpContext p_Context)
   at Coveo.Search.Api.Proxy.ProxyHttpHandler.ProcessRequest(HttpContext p_Context)
   at Coveo.SearchProvider.Rest.SitecoreRestHttpHandlerDispatcher.ProcessRequest(HttpContext p_Context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Exception: System.Security.Authentication.AuthenticationException
Message: The remote certificate is invalid according to the validation procedure.
Source: System
   at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
   at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.ConnectStream.WriteHeaders(Boolean async)
Gravatar for ravigupta020287@gmail.com

Comment by Ravi, May 25, 2017 11:55 AM

One more point to add here is re-indexing is getting stuck after certain number of items e.g, after 32K items approx.

Gravatar for sbelzile@coveo.com

Comment by Sébastien Belzile, May 25, 2017 12:48 PM

Right, seems like you have a truck load of problems.

1. The first virtual field exception is something we had while qualifying Sitecore 8.2 update 1.

2. The second exception: `Inactivity timeout expired`, and your rebuild stuck at 32K has the same cause.

3. The `AuthenticationException` looks like a certificate issue (?) and could explain the second problem and the missing quickviews. In other words, I suspect communication problems between your CES and Sitecore instances. Fix this and your other problems should resolve themselves.

Question: what are your Sitecore and C4SC versions?

Ask a question