Could Not Find Property skipFirstTimeSetupCheck Error

Symptoms

You have a multi-server setup and have either:

  • just performed a fresh install of the November 2018 or December 2018 version of Coveo for Sitecore 5, or

  • just upgraded from Coveo for Sitecore 4 to Coveo for Sitecore 5.

Sitecore raises the following error on your Content Delivery (CD) servers:

15964 20:53:59 ERROR Error loading hook: <hook type="Sitecore.ContentSearch.Hooks.Initializer, Sitecore.ContentSearch" patch:source="Sitecore.ContentSearch.config" xmlns:patch="http://www.sitecore.net/xmlconfig/" />
Exception: System.InvalidOperationException
Message: Could not find property 'skipFirstTimeSetupCheck' on object of type: Coveo.AbstractLayer.CoveoDefaultIndexConfiguration
Source: Sitecore.Kernel
   at Sitecore.Configuration.DefaultFactory.AssignProperties(Object obj, Object[] properties)
   at Sitecore.Configuration.DefaultFactory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper)
   at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)

Cause

The Coveo for Sitecore <skipFirstTimeSetupCheck> element was not removed from the November 2018 and December 2018 Coveo for Sitecore 5 package configuration files.

Resolution

  1. On one of your CD servers, open in a text editor the configuration file associated with your version of Sitecore.

    Sitecore 7 and 8 Open the SwitchMasterToWeb.Coveo.config file. It should be located in the [Your Sitecore Instance]\Website\App_Config\Include\Z.SwitchMasterToWeb\ folder.

    Sitecore 9 The configuration to edit is located in the [Your Sitecore Instance]\App_Config\Modules\Coveo\Coveo.SearchProvider.config base configuration file. Therefore, open the corresponding patch file, [Your Sitecore Instance]\App_Config\Include\Coveo\Coveo.SearchProvider.Custom.config, in your text editor.

  2. Delete the <skipFirstTimeSetupCheck> element.

    Sitecore 7 and 8 Locate and delete the <skipFirstTimeSetupCheck> element.

    Sitecore 9 Add a patch:delete for the <skipFirstTimeSetupCheck> element.

  3. Save your changes.

  4. Repeat steps 1 to 3 on each of your CD servers.

  5. Though you don’t need to delete the <skipFirstTimeSetupCheck> element in your CM configuration files as it isn’t taken into account on CMs, you might want to do so nonetheless.

    Sitecore 7 and 8 The <skipFirstTimeSetupCheck> element is located in the [Your Sitecore Instance]\Website\App_Config\Include\Coveo\SwitchMasterToWeb.Coveo.config.example file.

    Sitecore 9 Add a patch:delete in the [Your Sitecore Instance]\App_Config\Include\Coveo\Coveo.SearchProvider.Custom.config to delete the <skipFirstTimeSetupCheck> element of your [Your Sitecore Instance]\App_Config\Modules\Coveo\Coveo.SearchProvider.config file.

Recommended Articles