Friday, August 3, 2018

Sitecore Experience Commerce - index rebuild failure

When attempting to rebuild the web index for an experience commerce instance which contained a number of categories and sellable items, the following error occurred:
Exception: System.NullReferenceExceptionMessage: Object reference not set to an instance of an object.Source: Sitecore.Commerce.Engine.Connectat Sitecore.Commerce.Engine.Connect.Search.Crawlers.CatalogCrawlerBase`1.<>c__DisplayClass52_1.<AddItemsToIndex>b__0(CommerceCatalogIndexableItem indexable, ParallelLoopState loopState)
In the content editor by updating the data templates (commerce) and clearing the cache, the index would then rebuild to completion.