0

I am getting below error in my sitecore application.

Exception: System.InvalidOperationException Message: Connection string settings not available (tracking.contact) Source: Sitecore.Analytics.MongoDB at Sitecore.Analytics.Data.DataAccess.MongoDb.MongoDbDriver.FromConnectionString(String connectionStringName) at Sitecore.Analytics.Data.MongoDb.ProcessingPool.MongoDbProcessingPool..ctor(String connectionStringName)

Steps I did so far:

I verified the connection string seems no issue with that. Verified my mongodb port settings as well as mongodb is running

Any one can help with the issue I am facing?

Thanks in Advance.

2
  • Can you share the connectionstring entries.. Commented Mar 1, 2019 at 7:28
  • 1
    What is the Sitecore version you are using? Commented Mar 1, 2019 at 14:43

1 Answer 1

2

Make sure, that you have

<add name="tracking.contact" connectionString="mongodb://..."/>

in your ConnectionStrings.config. If yes - check next:

1) Try to connect with this "mongodb://..." connectionstring to collection by using RoboMongo or any other UI software and check that collections are really exist in mongodb.

2) Check versions of Sitecore and MongoDB that you use:

  • Sitecore 8 Update 5 supports MongoDB 3.0
  • older Sitecore versions support MongoDB 2.6.x and MongoDB.Driver.dll version 1.8.3.9

Tip: you can immitate this error by checking your connection programmatically:

var connectionString = ConfigurationManager.ConnectionStrings["tracking.contact"].ToString();
try
{
  var driver = MongoDbDriver.FromConnectionString(connectionString);
}
catch(Exception ex)
{
  // debug here if exception throw
}
1
  • tracking.contact is missing in my CM config, now it is working
    – BV Winoya
    Commented Mar 4, 2019 at 4:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.