Application Error – Sitecore.ContentTesting

We are using Sitecore 9.3 and we activated Personalization on the Home page of our website. Everything was working as expected but we started noticing that Google Bot was directed to 500 Error page inconsistently.

Upon more research we understood that there was one error consistent in the logs whenever the Google bot was redirected to 500 error page. And it read the below:

7628 16:28:45 ERROR Application error.
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Sitecore.ContentTesting
   at Sitecore.ContentTesting.Pipelines.EvaluateTestExposureBase`1.Process(TPipelineArgs args)
   at (Object , Object )
   at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
   at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists)
   at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
   at Sitecore.Mvc.Pipelines.PipelineService.RunPipeline[TArgs](String pipelineName, TArgs args)
   at Sitecore.Mvc.Routing.RouteHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

While researching more, we understood that it is known bug in Sitecore 9.3 and is fixed in Sitecore 10. So we got the Sitecore Support Patch from here.

It is very important to read all the points mentioned in the KB article because if you have already installed any other Sitecore Support package then it can break any functionalities.

This support package is in .update format and you need to install it using Update Center unlike other packages where you can use Installation Wizard.

Note: If your Update Center is broken or you don’t want to take that path then rename the file extension to zip and extract the files.

In this package, you will have 6 dlls related to ContentTesting.

Hope it helps..

Thank you.. Keep Learning.. Keep Sitecoring.. 🙂

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