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:...
View ArticleSitecore Advanced Configuration in .config files
Sitecore allows you to create configuration sections in /configuration/sitecore/ that consists of hierarchies of configurations including lists, and it will even help you serialize the configuration to...
View ArticleSitecore Measure Pipeline performance and profile processors
In Sitecore, Pipelines are by far my favorite dependency injection pattern, and I have used them since Sitecore 5. One of the secret features of pipelines are the built in profiling. Oh, yes, by...
View ArticleSitecore Event Queue – How to clean it – and why
Yesterday the dreaded Sitecore Event Queue almost killed me again – well it certainly almost killed my CM server. The server went from being busy but stable to being unresponsive. CPU and memory load...
View ArticleSitecore Publishing – Programmatically determine if item should be published
Sitecore uses it’s publish settings to determine if an item should be published. But you can only control a publish from versions and date times. Sitecore Publishing Settings So what if you have other...
View ArticleSitecore Scheduled Tasks – Run on certain server instance
If you would like certain Sitecore Scheduled Tasks run on a certain server instance (your CM server for example) the approach is pretty simple. First, create a new folder under /sitecore/system/Tasks....
View ArticleSitecore General error when submitting contact – Another contact with the...
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...
View ArticleSitecore custom cache that is cleared on publish
In this article I will demonstrate how to create a custom Sitecore cache and how to ensure that it is cleared when you publish. First I will create the simplest custom cache available: namespace...
View ArticleSend email via SparkPost and C#
SparkPost is yet another email service. It is easy to work with, seems robust, and it will be fairly easy on your client’s budget, as you get 100.000 emails per month for free (as per jan 2017). A...
View ArticleSitecore MongoDB – What do we know about a contact?
The Sitecore Analytics can be somewhat of a black box. All we know is that Sitecore stores everything about a site visitor in a Contact object and stuffs it into MongoDB when the visitor session...
View ArticleGet Sitecore System Info
Would you like to know the System Info of your current Sitecore instance: Sitecore System Info It’s fairly easy. I created an SysInfo.aspx page and dumped in into the /sitecore modules/shell folder....
View ArticleSitecore Failed to update profile pattern
My Sitecore CD servers logged the following errors 2-3 times per minute: 7760 11:10:46 ERROR Failed to update profile pattern Exception: System.ArgumentNullException Message: Value cannot be null....
View ArticleSitecore how to make the experience editor a great experience for your editors
In Sitecore it is very easy to toss in a few renderings on a page, set the renderings flag to “editable”, and voila, the page is editable using the Sitecore Experience Editor. But that kind of laziness...
View ArticleSitecore Hiding items: Clean up the cluttered content tree
As a followup to a question from Derek Dysart on my previous post, How to make the experience editor a great experience for your editors I will explain how you can clean up the Sitecore content tree by...
View ArticleSitecore how to configure SSL (HTTPS) in your Sitecore config files
SSL and HTTPS have been the hot topic since Google began to use HTTPS as a signal in their search rankings. Fortunately, Sitecore really does not care if it runs in HTTP or HTTPS, so most of the...
View ArticleSitecore and Feature Flags using LaunchDarkly
Feature flags are a software development best practice of gating functionality. Functionality can be deployed “off”, then turned on via the feature flag, separate from deployment. With feature flags,...
View ArticleSitecore Caching – Clear caches individually
The Sitecore caching engine is a simple yet powerful tool where Sitecore not only stores it’s own data for fast retrieval, but allows you to store your own data of any kind. Sitecore have a built in...
View ArticleSitecore ContentSearch Get Latest Version
The Sitecore ContentSearch API allows you to index content in either .NET Lucene or SOLR, dramatically speeding up retrieval of content, especially when querying items that are scattered across your...
View ArticleSitecore user:created event not fired on Membership.CreateUser
Sitecore have since 7.5’ish fired events each time you manipulate the users in the .NET Membership database: <event name="user:created"></event> <event...
View ArticleSitecore ContentSearch – Get items from SOLR or Lucene – A base class...
Reading items from Sitecore is pretty straight forward: Sitecore.Data.Items.Item item = Sitecore.Context.Database.GetItem("/sitecore/context/.../..."); And it is fast, unless you need to retrieve items...
View Article