Disabling EXM throws System.InvalidOperationException error in log


Description

An exception might occur after deploying marketing definitions if exmEnabled:define in the web.config file is set to "no". The following message can be found in the log:

304 16:54:29 ERROR Aggregation Error
Exception: System.InvalidOperationException
Message: Dimension could not be resolved for for dimension id: b459a0ca-9f43-4ac1-8e6d-549e2a3de674
Source: Sitecore.ExperienceAnalytics.Aggregation
   at Sitecore.ExperienceAnalytics.Aggregation.Pipeline.SegmentProcessor.ProcessSegments(IInteractionAggregationContext context, IEnumerable`1 segments)
   at Sitecore.ExperienceAnalytics.Aggregation.Pipeline.InteractionProcessor.AggregateSegments(IInteractionAggregationContext context, AggregationScope scope)
   at Sitecore.Analytics.Aggregation.Pipeline.InteractionAggregationPipelineProcessor.Process(InteractionAggregationPipelineArgs args)
Nested Exception
...

Solution

To resolve the issue, download and install the patch available on the following page: https://github.com/SitecoreSupport/Sitecore.Support.215205/releases

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