Not able to Open Xaml, UiPath displaying "An Internal error has occurred. It is recommended to restart UiPath Studio" error message

Whenever I open Xaml file which I created to compare 2 Data Rows, I’m getting the error when I scroll down to Comparison sequence where I have used Multiple Assign

Please refer the log printed

An internal error has occurred. It is recommended to restart UiPath Studio.

Error: System.InvalidOperationException: Specified element is already the logical child of another element. Disconnect it first.
at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
at System.Windows.FrameworkElement.AddLogicalChild(Object child)
at System.Windows.Controls.Decorator.set_Child(UIElement value)
at System.Activities.Presentation.View.VisualBasicEditor.OnEditorLoaded(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)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
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), HResult -2146233079


Try restarting your pc

Kindly delete the json file from the project folder and try once opening the xaml file.

Cheers @Mohanraj_Murugesan

Hi @rmunro I tried it but no luck same error message appearing

Hi @Palaniyappan I tried your solution but no luck, same error appearing

I had this error appear as well and I was able to fix it by updating the packages. I also made sure to close out of UiPath Studio after updating and opening the project again.

1 Like