Coveo for Sitecore 5 is now available!

Missing Valid xDB License

This issue affects Sitecore versions 8.1 and above.

Symptoms

When opening a Coveo Search Page in the experience editor, the following exception occurs:

[LicenseException: Missing valid xDB license.]
    Sitecore.Analytics.DataAccess.DataAdapterProvider..ctor() +86
    Sitecore.Analytics.Data.DataAccess.MongoDb.MongoDbDataAdapterProvider..ctor(Func`2 driverFactory) +20

Cause

Sitecore added an additional key to its license. Sitecore 8.1 requires this new key to enable xDB features. If you run into this issue, either:

  • Your license does not contain this new key.
  • Your license does not allow xDB features.

Resolution

Solution 1

Get a license with xDB features enabled (see Sitecore Experience Platform 8.1 Initial Release).

Solution 2

Disable xDB in your configuration:

  1. Open the Sitecore.Xdb.config configuration file, located in the /App_Config/Include folder of your Sitecore instance, in a text editor.
  2. Locate the Xdb.Enabled setting.

     <setting name="Xdb.Enabled" value="true" />
    
  3. Set the value of the value attribute to false.

     <setting name="Xdb.Enabled" value="false" />
    
  4. Locate the Xdb.Tracking.Enabled setting.

     <setting name="Xdb.Tracking.Enabled" value="true" />
    
  5. Set the value of the value attribute to false.

     <setting name="Xdb.Tracking.Enabled" value="false" />
    
  6. Save the file.