Error while using UiPath


#1

Hello,

I have experienced this message while using UiPATH:


I can not modify the file anymore.


Workflow Designer

ArgumentNullException:
Value cannot be null.
Parameter name: key

at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at System.Activities.Core.Presentation.FlowchartDesigner.SetFlowElementModelItem(UIElement view, ModelItem model) at System.Activities.Core.Presentation.FlowchartDesigner.ProcessAndGetModelView(ModelItem model) at System.Activities.Core.Presentation.FlowchartDesigner.AddFlowElementsToDesigner(IList1 flowElementMICollection, Boolean addConnectorAfterLoaded)
at System.Activities.Core.Presentation.FlowchartDesigner.PopulateFlowchartChildren()
at System.Activities.Core.Presentation.FlowchartDesigner.OnFreeFormPanelLoaded(Object sender, RoutedEventArgs eventArgs)
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)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
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)

What could i do?
Thanks a bunch


#2

Hello @pal1910,

it seems to me that you’re using Dictionary to store key and value. but key is not initialized.

Cheers,
Pankaj


#3

Thx.
How could i solve it?
thx!

@Pankaj.Patil


#4

could you please attach your workflow here?

Cheers,
Pankaj


#5

Isnt there a way to solve it?
@Pankaj.Patil
it appeared suddenly and i can not see the workflow…


#6

Workflow Designer

ArgumentNullException:
Value cannot be null.
Parameter name: key

at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at System.Activities.Core.Presentation.FlowchartDesigner.SetFlowElementModelItem(UIElement view, ModelItem model) at System.Activities.Core.Presentation.FlowchartDesigner.ProcessAndGetModelView(ModelItem model) at System.Activities.Core.Presentation.FlowchartDesigner.AddFlowElementsToDesigner(IList1 flowElementMICollection, Boolean addConnectorAfterLoaded)
at System.Activities.Core.Presentation.FlowchartDesigner.PopulateFlowchartChildren()
at System.Activities.Core.Presentation.FlowchartDesigner.OnFreeFormPanelLoaded(Object sender, RoutedEventArgs eventArgs)
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)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
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)


#7

where it disappeared?


#8

Hello!

Try to update all the activities from Manage Package (CTRL +P).

Hope it helps!

Regards,