0
Kavandatud

An item with the same key has already been added.

Anonüümne 8 aastat tagasi Studio uuendaja Gandalf 8 aastat tagasi 4
Email Address : Barney.buchan@dev2.co.za

Steps to follow : 1. In the variable list Create a recordset
2. Give it a field
3. Give it another field with the same name
OBSERVE: This error


at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
at Dev2.Data.DataListModel.PopulateWithData(String data) in C:\Development\Repos\Warewolf-ESB\Dev\Dev2.Data\DataListModel.cs:line 121
at Dev2.Data.DataListModel.Create(String data, String shape) in C:\Development\Repos\Warewolf-ESB\Dev\Dev2.Data\DataListModel.cs:line 49
at Dev2.Session.Dev2StudioSessionBroker.InitDebugSession(DebugTO to) in C:\Development\Repos\Warewolf-ESB\Dev\Dev2.Core\Session\Dev2StudioSessionBroker.cs:line 96
at Dev2.Studio.ViewModels.Workflow.WorkflowInputDataViewModel.LoadWorkflowInputs() in C:\Development\Repos\Warewolf-ESB\Dev\Dev2.Studio\ViewModels\Workflow\WorkflowInputDataViewModel.cs:line 379
at Dev2.Studio.ViewModels.Workflow.WorkflowDesignerViewModel.GetWorkflowLink() in C:\Development\Repos\Warewolf-ESB\Dev\Dev2.Studio\ViewModels\Workflow\WorkflowDesignerViewModel.cs:line 258
at Dev2.Studio.ViewModels.Workflow.WorkflowDesignerViewModel.FireWdChanged() in C:\Development\Repos\Warewolf-ESB\Dev\Dev2.Studio\ViewModels\Workflow\WorkflowDesignerViewModel.cs:line 1973
at Dev2.Studio.Core.Models.ResourceModel.set_DataList(String value) in C:\Development\Repos\Warewolf-ESB\Dev\Dev2.Studio.Core\Models\ResourceModel.cs:line 284
at Dev2.Studio.ViewModels.DataList.DataListViewModel.WriteToResourceModel() in C:\Development\Repos\Warewolf-ESB\Dev\Dev2.Studio.Core\DataList\DataListViewModel.cs:line 633
at Dev2.Studio.Views.DataList.DataListView.WriteToResourceModel() in C:\Development\Repos\Warewolf-ESB\Dev\Dev2.Studio\Views\DataList\DataListView.xaml.cs:line 122
at Dev2.Studio.Views.DataList.DataListView.UserControlLostKeyboardFocus(Object sender, KeyboardFocusChangedEventArgs e) in C:\Development\Repos\Warewolf-ESB\Dev\Dev2.Studio\Views\DataList\DataListView.xaml.cs:line 110
at System.Windows.Input.KeyboardFocusChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
at System.Windows.UIElement.Focus()
at System.Windows.Input.KeyboardNavigation.Navigate(DependencyObject currentElement, TraversalRequest request, ModifierKeys modifierKeys, DependencyObject firstElement)
at System.Windows.FrameworkElement.MoveFocus(TraversalRequest request)
at Dev2.Studio.AppResources.Behaviors.UserControlFocusNextAndPreviousBehaviour.AssociatedObject_PreviewKeyDown(Object sender, KeyEventArgs e) in C:\Development\Repos\Warewolf-ESB\Dev\Dev2.Studio\AppResources\Behaviors\UserControlFocusNextAndPreviousBehaviour.cs:line 92
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Retested this and its still crashing when you select 1 of the items bins when both are not used.