Sitecore Contacts – Cluster Name

Cluster Name

When a contact is created in MongoDB, the value of the Analytics.ClusterName setting is stored there.   The cluster name should match the public domain of the CD server on both CM and CD, which is listed in the scaling guide.  If not updated, the default value of that setting is “default-cd-cluster”.

When a contact is modified on the CM server, like during Email Experience Manager sending, the value of Analytics.ClusterName is used as the hostname to allow CM to modify the record through the CD server.  If you neglected to update this value properly, all existing analytics records will have “default-cd-cluster” for that value.  This will cause access to the contact to fail and the contact to report as “locked”.

The solution is to run a command in MongoDB to fix it:

Log in with RoboMongo or another tool to the analytics database:

db.Contacts.update({"Lease.Owner.Identifier": {$eq:"default-cd-cluster"}},
{ $set: { "Lease.Owner.Identifier": "www.mysite.com" } },
{ multi: true }
)

If you are looking for a query to see if this is an issue, you can use this query to get a list of all values in the collection:

db.getCollection('Contacts').distinct('Lease.Owner.Identifier')

Author: Dan Persson

As the VP of Technology, Dan leads the MedTouch Product Team and is responsible for our healthcare modules for Sitecore as well as serving as a technical consultant to key clients. Dan has 15 years of experience with a variety of Content Management Software (CMS) tools and was instrumental in building the MedTouch Healthcare Accelerator Framework. He served as Technical Lead on several MedTouch award-winning sites, including The University of Kansas Hospital (Sitecore Healthcare Site of the Year Winner), Drexel Medicine (Interactive Media Awards, Hospital Best in Class 2012) and Providence Health & Services. Dan is a long-standing Sitecore certified developer and graduated from the University of Massachusetts, Amherst, with a B.S. in Computer Science.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s