Issue/Error Message: When consolidating, you get the following error:
ArgumentException
An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Forecast5.Model.Consolidation.OnOpenForecast()
at Forecast5.Model.Forecast.Open(Node node)
at Forecast5.ViewModel.MainWindowViewModel.OpenForecast(Nullable`1 forecastNodeId)
at Forecast5.ViewModel.SelectDatabaseForecastViewModel.OnClosingOk()
at Forecast5.ViewModel.DialogViewModel.Ok()
at Forecast5.View.MainWindow.ok_Click(Object sender, RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
Solution:
This is caused by attempting to consolidate when two forecasts have slight variations of a record name, e.g. Forecast 1 – Sales record = “Sales” Forecast 2 - Sales record = “sales”.
To resolve, update to version 3.1.041 or above or fix the names to match.
Download the latest version here: www.forecast5.com/release