Hi,
I found this in a Swift project but it's actually platform related, the typeahead page has 2 paragraphs with different apps:
- Product catalog for ViewModel
- Query publisher
If both have "Track queries for statistics" checked the last one is breaking due a duplicate key (see below). We can easily workaround it by unchecking one of the checkboxes but would be great if code would prevent the exception.
System.ArgumentException: Item has already been added. Key in dictionary: 'Dynamicweb.LogQuery' Key being added: 'Dynamicweb.LogQuery'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at Dynamicweb.Tracking.Web.NotificationSubscribers.IndexingAfterQuerySubscriber.OnNotify(String notification, NotificationArgs args)
at Dynamicweb.Extensibility.Notifications.NotificationManager.Notify(String notification, NotificationArgs eventArgs)
at Dynamicweb.Indexing.Querying.QueryService.Query(IQuery query, QuerySettings settings)
at Dynamicweb.QueryPublisher.Frontend.GetContent()
at Dynamicweb.Frontend.Content.GetModuleOutput(Paragraph paragraph, PageView pageview)
DW version 9.17.5
BR Mario