The Search Display Templates are not present on this Site Collection

1 Comment

While configuring some Search Result Sources for a client, I had the following error when trying to build my query.

“The Search display templates are not present on this site collection. To add them, you need to activate the “Search Server Web Parts and Templates” feature on the Site Collection Features page.

Display Error: The display template had an error. You can correct it by fixing the template or by changing the display template used in either the Web Part properties or Result Types.

Template ‘~sitecollection/_Catalogs/masterpage/DisplayTemplates/System/Control_QueryBuilderPreview.js’ not found or has sytax errors. (Load Template: ) ”

Search Display Templates are not present on this Site Collection

After looking at what was missing, me and my colleague Joseph Henry Passineau found that in fact there was a feature missing on the Central Administration site collection. The feature is called Search WebParts. So, to fix the problem, simply run the following command in an elevated SharePoint Management Shell:

Enable-SPFeature SearchWebParts -url http://<central admin url>

Afterwards, re open the “build your query” page, and everything should work properly!

Leave  a comment and don’t forget to like the Absolute SharePoint Blog Page on Facebook and to follow me on Twitter here  for the latest news and technical articles on SharePoint.  Also, don’t forget to check out SharePoint Community.Net for more great SharePoint Content.

Previous Post
Community Site is Missing the Enable Auto Approval Option
Next Post
Step by Step: Create a Result Source for a BCS Entity

1 Comment

  • March 6, 2021 at 12:51 pm

    That fixed it for me! Thanks Vlad


Leave a Reply

15 49.0138 8.38624 1 0 4000 1 300 1