Gravatar for wvuong@captechconsulting.com

Question by wvuong, Sep 30, 2016 1:05 PM

The parameter 'p_SearchIndex' must not be null

I am getting a precondition failed except with the following message: The parameter 'p_SearchIndex' must not be null. This happens when calling Model.GetJavaScriptInitializationOptions() in a search view. This is only happening when opening the standard values item of a template in experience editor mode. Otherwise this works when opening a normal content item in experience editor mode and on the web database.

Does the item being a standard values item affect the model differently?

We are using Coveo for Sitecore 4.

1 Reply
Gravatar for wvuong@captechconsulting.com

Answer by wvuong, Sep 30, 2016 2:11 PM

This was due to default crawlers not being configured to crawl templates.

See here for how to add a new crawler. https://developers.coveo.com/display/public/SitecoreV4/Changing+the+Crawling+Root+of+an+Index

Ask a question