Project converting from 18.2 to 19.4.2 with errors

Installer(.exe or .msi):UiPathStudio.msi 2019.4.2

License type (License code)

Studio/Robot version:18.2.3 > 19.4.2

Current behavior: After converting the “Main” workflow the Workflow is not shown anyore

Main workflow is using several state maschine’s

If I try clos Uipath Studio I go appendix error srceen

19.4.2+Branch.master.Sha.e17a3bedca2a7da0d0b716b5f8f765d1d5ef1ddc

An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowEditor (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.Editor.WorkflowEditor], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned —> An exception was thrown while invoking the constructor ‘Void .ctor(UiPath.Studio.Contracts.IDocument, UiPath.Studio.Contracts.IDocumentService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, UiPath.Studio.Plugin.Workflow.Debug.Breakpoints.IProjectBreakpointsService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IUnresolvedTypesNotificationService)’ on type ‘WorkflowEditor’. —> The value ‘[symanteccheck = true]’ contains significant white space(s) but “xml:space = preserve” cannot be written down on the member ‘{http://schemas.microsoft.com/netfx/2009/xaml/activities}Transition.Condition’. (See inner exception for details.) (See inner exception for details.)

Error: Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowEditor (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.Editor.WorkflowEditor], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned —> An exception was thrown while invoking the constructor ‘Void .ctor(UiPath.Studio.Contracts.IDocument, UiPath.Studio.Contracts.IDocumentService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, UiPath.Studio.Plugin.Workflow.Debug.Breakpoints.IProjectBreakpointsService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IUnresolvedTypesNotificationService)’ on type ‘WorkflowEditor’. —> The value ‘[symanteccheck = true]’ contains significant white space(s) but “xml:space = preserve” cannot be written down on the member ‘{http://schemas.microsoft.com/netfx/2009/xaml/activities}Transition.Condition’. (See inner exception for details.) (See inner exception for details.) —> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor ‘Void .ctor(UiPath.Studio.Contracts.IDocument, UiPath.Studio.Contracts.IDocumentService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, UiPath.Studio.Plugin.Workflow.Debug.Breakpoints.IProjectBreakpointsService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IUnresolvedTypesNotificationService)’ on type ‘WorkflowEditor’. —> The value ‘[symanteccheck = true]’ contains significant white space(s) but “xml:space = preserve” cannot be written down on the member ‘{http://schemas.microsoft.com/netfx/2009/xaml/activities}Transition.Condition’. (See inner exception for details.) —> System.Xaml.XamlXmlWriterException: The value ‘[symanteccheck = true]’ contains significant white space(s) but “xml:space = preserve” cannot be written down on the member ‘{http://schemas.microsoft.com/netfx/2009/xaml/activities}Transition.Condition’.
at System.Xaml.XamlXmlWriter.InMember.WriteXmlSpaceOrThrow(XamlXmlWriter writer, String value)
at System.Xaml.XamlXmlWriter.InMember.WriteValue(XamlXmlWriter writer, String value)
at System.Xaml.XamlXmlWriter.WriteValue(Object value)
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at System.Activities.XamlIntegration.ActivityBuilderXamlWriter.ImplementationNode.ObjectFrame.FlushMembers(XamlWriter parentWriter)
at System.Activities.XamlIntegration.ActivityBuilderXamlWriter.ImplementationNode.WriteEndObject()
at System.Activities.XamlIntegration.ActivityBuilderXamlWriter.WriteEndObject()
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at System.Xaml.XamlServices.Save(XamlWriter writer, Object instance)
at UiPath.Studio.Plugin.Workflow.Serializer.WorkflowXamlSerializer.SaveAsString(ActivityBuilder activityBuilder) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\WorkflowSerializer\WorkflowXamlSerializer.cs:line 30
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.Validation.DesignerStateValidator.GetSaveValidationError(Boolean flushEdits) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\WorkflowHandling\Validation\DesignerStateValidator.cs:line 65
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.GetSaveValidationError() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\WorkflowHandling\DesignerWrapper.cs:line 504
at UiPath.Studio.Plugin.Workflow.Services.DesignerViewService.GetSaveValidationError(String workflowId) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\DesignerViewService.cs:line 32
at UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService.GetSaveValidationError(String workflowId)
at UiPath.Studio.Plugin.Workflow.Services.DesignerViewProxy.GetSaveValidationError(String workflowId) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\Proxies\DesignerViewProxy.cs:line 30
at UiPath.Studio.Plugin.Workflow.Services.UnresolvedTypesNotificationService.ShowNotificationIfNeeded(IInfoBar infoBar, IWorkflowDocument document) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\UnresolvedTypesNotificationService.cs:line 41
at UiPath.Studio.Plugin.Workflow.Editor.WorkflowEditor.Init() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\ToolWindows\WorkflowEditor.cs:line 92
at UiPath.Studio.Plugin.Workflow.Editor.WorkflowEditor…ctor(IDocument document, IDocumentService documentService, IDesignerFileService workflowService, IProjectBreakpointsService breakpointsService, IDesignerViewService designerViewService, IUnresolvedTypesNotificationService unresolvedTypesNotificationService) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\ToolWindows\WorkflowEditor.cs:line 51
at lambda_method(Closure , Object )
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
— End of inner exception stack trace —
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)
— End of inner exception stack trace —
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance) at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters)
at UiPath.Studio.Shared.Services.ServiceLocatorAutofac.ResolveType(Type type, Object ctorParameters) in D:\a\1\s\Studio\UiPath.Studio.Shared\Services\ServiceLocatorAutofac.cs:line 90
at UiPath.Studio.Plugin.Workflow.WorkflowDocumentFactory.CreateEditor(IDocument document) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Document\WorkflowDocumentFactory.cs:line 76
at UiPath.Studio.Shell.Services.DocumentService.d__37.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\DocumentService.cs:line 256
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d__22.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\OpenCloseCommandsService.cs:line 315
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Shell.ViewModels.MainWindowViewModel.d__193.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\ViewModels\MainWindowViewModelCommands.cs:line 101
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Shared.MVVM.Commands.TaskCommand`3.d__35.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shared\MVVM\Commands\TaskCommand.cs:line 281
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
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 -2146233088

I can’t close Studio anymore. I have to use Task manager to stop Studio.

Hello
I uninstalled version 2019.4.2 and installed 2018.4.5
With 2018.4.5 Workflow as displayed as expected and I can close the Studio without any Error.
As I did not see main changes between 19.4.2 and 18.4.5 we will stay on older release until issues is fixed from Uipath.

Never the less if someone has a solution for the described problem feel free to reply on the post.

Ludgerus

@LFritze
Have you tried the solution here:

Also, we once had an issue where the Main workflow wasn’t displaying after upgrading because one of our conditions had an extra space in it. We simply replaced error is_ nothing (extra space underlined) with error is nothing and the workflow started working again. Allowing the extra space was an error in previous versions that had been patched in the update.

2 Likes

Hello DanielMichell and other

I wrote in the post that 18.4.3 is working. This is was not correct.
I got the workflow displayed but once I change something and I would like to save the changed coding, I got error to save with a similar error condition I got for version 19.4.2

At first I start reviewing the coding in Studio with more than 470 If conditions in main workflow
I stopped and open the main with text editor and had done a simple replace “= “ by “= “ and save the main

Afterwards problem to save coding was solved and after installation of version 19.4.2 I got as well the workflow displayed.

Great thanks to Daniel as I spend day’s to get this problem fixed.
I never thought that my problem was linked to a stupid “blank” in my 18.2 code.
Good, that we have this community.

LF

1 Like

@LFritze
I’m glad that worked for you! Could you mark my post as the solution? It will help anyone else who experiences this frustration.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.