The "Index was not found" error in distributed Sitecore environments


Description

The following error may appear in the log files of a distributed Sitecore environment when a Sitecore instance (typically Content Management) attempts to update the index that does not exist on another Sitecore instance (typically Content Delivery).

ERROR Exception while handling event Sitecore.ContentSearch.Events.IndexingFinishedEvent
Exception: System.ArgumentException
Message: Index sitecore_master_index was not found
Source: Sitecore.ContentSearch
   at Sitecore.ContentSearch.ContentSearchManager.GetIndex(String name)
   at Sitecore.ContentSearch.Maintenance.EventHub.UpdateIndexTimestampDirectHandler(Object sender, EventArgs args)
   at Sitecore.Events.Event.EventSubscribers.RaiseEvent(String eventName, Object[] parameters, EventResult result)
   at Sitecore.Events.Event.RaiseEvent(String eventName, Object[] parameters)
   at Sitecore.ContentSearch.Maintenance.EventHub.<Initialize>b__b(IndexingFinishedEvent event)
   at Sitecore.Eventing.EventProvider.RaiseEvent(Object event, Type eventType, EventContext context)

Solution

Perform the following steps on each Sitecore instance (all CM and CD instances).

  1. Download the assembly corresponding to your Sitecore version and place it into the /bin folder:
  2. Download the config file corresponding to your Sitecore version and place it into the /App_config/Include folder: