Gravatar for naveen.simhadri467@gmail.com

Question by naveen, Aug 26, 2016 10:41 AM

Coveo for sitecore Indexing is throwing null reference exception

Hi, When doing rebuid on coveo indexes in sitecore , we are getting null reference exception . Any idea what we are doing wrong?

Exception: System.NullReferenceException Message: Object reference not set to an instance of an object. Source: Coveo.Framework at Coveo.Framework.Caching.FieldsCacheHandler.Add(IEnumerable1 p_Entries, String p_DataSourceName) at Coveo.AbstractLayer.FieldManagement.FieldsHandlerUtility.GetCompleteFieldConfigs(String p_IndexName) at Coveo.AbstractLayer.FieldManagement.AdminModuleFieldsHandler.GetSitecoreFields(String p_IndexName, ForeignKeysConfiguration p_ForeignKeysConfiguration) at Coveo.AbstractLayer.FieldManagement.AdminModuleFieldsHandler.UpdateFieldSetAndFields(String p_FieldSetName, String p_IndexName, ForeignKeysConfiguration p_ForeignKeysConfiguration) at Coveo.AbstractLayer.Communication.CES.AdminModule.SetUpRequirements(String p_ServerUrl, String p_TargetSite, Boolean p_ExpandUsers, ForeignKeysConfiguration p_ForeignKeysConfiguration, IList1 pRankingIgnoredFields) at Coveo.AbstractLayer.Communication.CES.CESCommunication.InitializeAdminModule() at Coveo.AbstractLayer.Communication.CES.CESCommunication.Initialize() at Coveo.SearchProvider.AbstractProviderUpdateContext..ctor(ISearchIndexSummary pIndexSummary, IIndexCommunication pCommunication) at Coveo.SearchProvider.ProviderUpdateContext..ctor(ISearchIndex pIndex, IIndexCommunication pCommunication) at Coveo.SearchProvider.ProviderIndex.CreateUpdateContext() at Coveo.SearchProvider.ProviderIndex.b3e() at Coveo.SearchProvider.ProviderIndex.TryPerformIndexingOperation(IndexingOptions pIndexingOptions, Action p_Action) at Coveo.SearchProvider.ProviderIndex.Rebuild()

1 Reply
Gravatar for flguillemette@coveo.com

Answer by François Lachance-Guillemette, Aug 26, 2016 11:05 AM

You are probably missing the caches/fieldsCache node in the coveo node in your Coveo.SearchProvider.config, as the following:

< caches>
  < fieldsCache type="Coveo.Framework.Caching.FieldsCache, Coveo.Framework" singleInstance="true" />
< /caches>

Did you upgrade and follow the upgrade steps ?

Ask a question