I am trying to create a new dimension and a new segment to use in my new chart. After many attempts I found this article Create an interaction processor-
From this reference I did the following steps:
- Create dimension class and table
- Creating a dimension class
- Creating a dimension table
- Create fact class and table
- Creating a fact class
- Creating a fact table
- Create an interaction aggregation processor class
- Add processor to configuration
After it, I deployed the code and then I created my "By UserAgent" Flexible Dimension and create the Segment, as showed in the following figure:
My UserAgentChart is configured this way
In my dashboard I saw an error
Note: I know when I create a Segment I need to deploy and I need to way 30min, after this time the data start to be processed.
Are these steps correct? I am doing something wrong? Why I have an error?
From logs i got this
ERROR [Experience Analytics]: SegmentProcessor failed to process interaction 'b1d329f5-1c8a-0000-0000-056780e07875' segment '3a60eaea-0ac5-42c7-947b-f5e53ea87bac' - System.InvalidOperationException: Dimension could not be resolved for for dimension id: 8dae1809-f370-4997-adf8-64107cee49a6 at Sitecore.ExperienceAnalytics.Aggregation.Data.Model.AggregationSegment.get_Dimension() at Sitecore.ExperienceAnalytics.Aggregation.Data.Model.AggregationSegment.GetData(IVisitAggregationContext context) at Sitecore.ExperienceAnalytics.Aggregation.Pipeline.SegmentProcessor.ProcessSegments(IInteractionAggregationContext context, IEnumerable`1 segments)
New issue - why analytics were not stored?