--- title: Content delivery instance crashes at index initialization slug: '2894' canonical_url: https://docs.coveo.com/en/2894/ collection: coveo-for-sitecore-v5 source_format: adoc --- # Content delivery instance crashes at index initialization [.version.c4sc.c4sc-issue-resolved.5-0-387-10.May-17&-2019] [Issue resolved](https://docs.coveo.com/en/2875#release-notes) ## Symptoms On a Sitecore `ContentDelivery` instance, you get an error message like the following: ```text Server Error in '/' Application. Could not find add method: AddIndex (type: Sitecore.ContentSearch.ContentSearchConfiguration) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Sitecore.Exceptions.RequiredObjectIsNullException: Could not find add method: AddIndex (type: Sitecore.ContentSearch.ContentSearchConfiguration) Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [RequiredObjectIsNullException: Could not find add method: AddIndex (type: Sitecore.ContentSearch.ContentSearchConfiguration)] Sitecore.Configuration.DefaultFactory.AssignProperties(Object obj, Object[] properties) +1704 Sitecore.Configuration.DefaultFactory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +620 Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +320 Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert) +72 Sitecore.Configuration.DefaultFactory.CreateObject(String configPath, String[] parameters, Boolean assert) +703 Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration() +311 Sitecore.ContentSearch.SolrProvider.SolrContentSearchManager.Initialize() +21 (Object , Object ) +9 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +484 Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) +236 Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22 Sitecore.Nexus.Web.HttpModule.Application_Start() +215 ``` ## Cause A `Coveo.SearchProvider.Custom.config` patch blueprint introduced in the April 18, 2019 release of Coveo for Sitecore doesn't properly support a scenario where the server role is `ContentDelivery`. ## Resolution . Open file `\App_Config\Include\Coveo\Coveo.SearchProvider.Custom.config` in a text editor. . Change the following line: ```xml ``` to ```xml ``` . Change the following line: ```xml ``` to ```xml ``` . Save your changes.