Content test data is not saved

  • When creating a content test and visiting the tested page, the Optimization tab might not show any results except the No data has been set message. The following error message can appear in the log files:

    ERROR PostSessionEndPipeline failed.
    Exception: System.InvalidOperationException
    Message: Sequence contains no matching element
    Source: System.Core
       at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
       at Sitecore.ContentTesting.Pipelines.ConvertToXConnectInteraction.ConvertPersonalizationEvent.IsOriginal(TestSet testSet, TestCombination combination, Guid roleSetId)
       at Sitecore.ContentTesting.Pipelines.ConvertToXConnectInteraction.ConvertPersonalizationEvent.<>c__DisplayClass0_1.<Process>b__3(PersonalizationRuleData r)
       at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at Sitecore.ContentTesting.Pipelines.ConvertToXConnectInteraction.ConvertPersonalizationEvent.Process(ConvertToXConnectInteractionPipelineArgs args)
       at (Object , Object[] )
       at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
       at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
       at Sitecore.Analytics.XConnect.DataAccess.PipelineBasedModelConverter.<>c__DisplayClass6_0.<ConvertToXConnectInteraction>b__0()
       at Sitecore.Analytics.XConnect.Diagnostics.PerformanceCounters.OperationPerformanceMonitorExtensions.Monitor[T](OperationPerformanceMonitorBase monitor, Func`1 operation)
       at Sitecore.Analytics.XConnect.DataAccess.XConnectDataAdapterProvider.<>c__DisplayClass19_0.<SaveVisit>b__1(IXdbContext xdbContext)
       at Sitecore.Analytics.XConnect.DataAccess.XConnectDataAdapterProvider.<>c__DisplayClass31_0.<ExecuteWithExceptionHandling>b__0(IXdbContext c)
       at Sitecore.Analytics.XConnect.DataAccess.XConnectDataAdapterProvider.ExecuteWithExceptionHandling[T](Func`2 func)
       at Sitecore.Analytics.XConnect.Diagnostics.PerformanceCounters.OperationPerformanceMonitorExtensions.<>c__DisplayClass1_0.<Monitor>b__0()
       at Sitecore.Analytics.XConnect.Diagnostics.PerformanceCounters.OperationPerformanceMonitorExtensions.Monitor[T](OperationPerformanceMonitorBase monitor, Func`1 operation)
       at (Object , Object[] )
       at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
       at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
       at Sitecore.Analytics.Pipelines.SubmitSessionContext.SubmitSessionContextPipeline.Run(SubmitSessionContextArgs args)
       at Sitecore.Analytics.Data.HttpSessionContextManager.Submit(Session session)
       at Sitecore.Analytics.Pipelines.CommitSession.SubmitSession.Process(CommitSessionPipelineArgs args)
       at (Object , Object[] )
       at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
       at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
       at Sitecore.Analytics.Pipelines.CommitSession.CommitSessionPipeline.<>c__DisplayClass4_0.<Run>b__0()
       at Sitecore.Analytics.XConnect.Diagnostics.PerformanceCounters.OperationPerformanceMonitorExtensions.<>c__DisplayClass1_0.<Monitor>b__0()
       at Sitecore.Analytics.XConnect.Diagnostics.PerformanceCounters.OperationPerformanceMonitorExtensions.Monitor[T](OperationPerformanceMonitorBase monitor, Func`1 operation)
       at Sitecore.Analytics.Pipelines.PostSessionEnd.CommitSession.Process(PostSessionEndArgs args)
       at (Object , Object[] )
       at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
       at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
       at Sitecore.Pipelines.EndSession.PostSessionEndPipeline.Run(PostSessionEndArgs args)
       at Sitecore.Web.Application.RaiseSessionEndEvent(HttpApplication context)
  • To resolve the issue, download and install the patch or hotfix compatible with the affected product version found on the pages:
    • For Sitecore XP 9.0  Initial Release and higher: https://github.com/SitecoreSupport/Sitecore.Support.287210/releases
    • For Sitecore XP 9.1 Initial Release: SC Hotfix 328522-1.zip

      Be aware that the hotfixes were built for specific Sitecore XP versions and must not be installed on other Sitecore XP versions or in combination with other hotfixes. If you have already installed any other hotfixes  on a certain Sitecore XP instance, send a request for a compatibility check to Sitecore Support.

      Note that you must extract the ZIP file contents to locate the installation instructions and related files inside it. You must install the hotfixes on a CM instance and then sync with other instances using the regular development practices.

    • To get a solution for other releases, contact Sitecore Support.

Applies to:

CMS 9.0 Initial Release - 9.2 Initial Release

CMS 9.3 Initial Release

May 01, 2020
May 01, 2020

Reference number:

287210

Keywords: 

  • Content Testing