UpdateSearchIndexObserver might throw an exception during application restart

  • Description

    The following error might occur when the application restarts (for example, at the time of application pool reset, IIS restart, and so on). In such a case, the UpdateSearchIndexObserver fails to get initialized in the constructor:

    Exception type: IndexNotFoundException 
    Exception message: Index sitecore_marketingdefinitions_web was not found
       at Sitecore.ContentSearch.ContentSearchManager.GetIndex(String name) 
       at Sitecore.Marketing.Search.Observers.Activation.UpdateSearchIndexObserver`1..ctor(ILogger`1 logger, String databaseName, String searchIndex)

Applies to:

CMS 9.0 Initial Release - 9.1 Update-1

CMS 9.2 Initial Release

June 24, 2019
August 01, 2019

Reference number:

255663