Monday, 16 November 2015

Descendant and Ancestor axes are disabled. Set FastQueryDescendantsDisabled setting to false to enable these axes.

Suddenly this morning I started getting error

Descendant and Ancestor axes are disabled. Set FastQueryDescendantsDisabled setting to false to enable these axes.

When researched found there is a setting in web.config 

      <!-- FAST QUERY DESCENDANTS DISABLED
           Determines whether ability to select items through Ancestors/Descendants axes should be disabled in fast query.
           Default value: false
      -->
      <setting name="FastQueryDescendantsDisabled" value="false" />


Surprised that this setting has not been changed ; to invetigate further i searched FastQueryDescendantsDisabled invetigate whole root solution folder..

Then I found one more place where it was true..changed and life back to normal,

               Website\App_Config\Include\Sitecore.Publishing.Optimizations.config 



Please note 


As per sitecore fast query cheat sheet whenever we change this we should clean up the databases.


Note
If the FastQueryDescendantsDisabled setting, in the web.config file, is set to true and then changed back
to false, you must rebuild the Descendents table.
To rebuild the Descendents table, click Sitecore, Control Panel, Databases, Clean Up Database and run
the Clean Up Database wizard.




1 comment:

  1. If you're a good person, the goodness will continue through your descendants. See the link below for more info.

    #descendants
    www.ufgop.org

    ReplyDelete

Featured post

Getting Started With SOLR

Getting Started with Solr ·           Features o    Hit highlighting o    Auto correction o    Faceted Search o    Multi lan...