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.

  • Can you share the connectionstring entries.. – Hishaam Namooya Mar 1 '19 at 7:28
  • 1
    What is the Sitecore version you are using? – Hugo Santos Mar 1 '19 at 14:43
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
}
| improve this answer | |
  • tracking.contact is missing in my CM config, now it is working – BV Winoya Mar 4 '19 at 4:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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