Tag Archives: MongoDB

Sitecore contact cannot be loaded, code never responds

In Sitecore, it is possible to encounter a situation where the calls identifying or locking a contact never responds, but there is no errors returned. A call to identify: And a call to Load a contact: Can both take forever … Continue reading

Posted in Sitecore 7, Sitecore 8 | Tagged , , , , | Leave a comment

Sitecore General error when submitting contact – Another contact with the same identifier already exists

In Sitecore when creating your own contacts you can get the following exception: 10604 10:16:27 ERROR General error when submitting contact. Exception: System.InvalidOperationException Message: Another contact with the same identifier already exists. Source: Sitecore.Analytics.MongoDB at Sitecore.Analytics.Data.DataAccess.MongoDb.MongoDbDataAdapterProvider.SaveContactWithIdentifier(IContact contact, ContactSaveOptions saveOptions) at … Continue reading

Posted in .net, c#, General .NET, Sitecore 8 | Tagged , , , , , | 2 Comments

Sitecore PostSessionEndPipeline failed – MongoDB.Driver.MongoQueryException

In my (huge) Sitecore solution we experienced the following error: ERROR PostSessionEndPipeline failed. Exception: MongoDB.Driver.MongoQueryException Message: QueryFailure flag was Runner error: Overflow sort stage buffered data usage of 33570904 bytes exceeds internal limit of 33554432 bytes (response was { “$err” … Continue reading

Posted in Sitecore 8 | Tagged , , | Leave a comment

Sitecore xDB – flush data to MongoDB

When debugging Sitecore xDB issues, it is a pain that data is not written to MongoDB directly, but you have to wait for your session to end. The legend said that you could either set the session timeout to 1 … Continue reading

Posted in c#, General .NET, Sitecore 8 | Tagged , , , | 5 Comments

Sitecore Contacts – Create and save contacts to and from xDB (MongoDB)

The Sitecore Contact is the cornerstone of the Sitecore Experience Platform and is the place where you store every data you know about any contact, named and anonymous. UPDATE: 09-09-2016: CreateContact Updated: Thanks to moginheden for the update. UPDATE: 27-09-2016: … Continue reading

Posted in .net, c#, General .NET, Sitecore 8 | Tagged , , , , , , , , | 21 Comments

Sitecore contact facets – Create your own facet

This article describes how to create a simple Sitecore facet consisting of a DateTime and a list of strings. A contact is made up of facets. Here are all the facets Sitecore uses (you will find the facets in \App_Config\Include\Sitecore.Analytics.Model.Config): In … Continue reading

Posted in .net, c#, General .NET, Sitecore 8 | Tagged , , , , , , , , | 16 Comments

Sitecore and xDB – Setting up MongoDB on your developer machine

With Sitecore 7.5, Sitecore introduces xDB – the new MongoDB based DMS database. But before you say “oh no, yet another technology I have to deal with”, you should know that working with MongoDB is very easy. In fact it … Continue reading

Posted in Sitecore 8 | Tagged , , , | 19 Comments