UiPath cannot open Main.xaml file

Hi,

I switched from Trial UiPath Community Edition to Enterprise Edition and I cannot open the workflow from community edition (19.8.0). I have tried to find similar cases online, tried some solutions but not working:

  1. Delete project.json file
  2. Reinstall using .msi installer
  3. Activate license using Orchestrator

There is another strange thing as I trying to register enterprise cloud edition and the License>Plan Name: showed as Community instead of Enterprise. I am suspecting my machine ID has been bind with community license. I wonder if this is the problem, and how do I resolve this.

Any help will be appreciated, thank you!

Installer(.exe or .msi): .msi

License type(Free, Trial/License code): Free, Trial

Studio/Robot version: 19.4.4

Current behavior: Cannot open workflow from 19.8.0 version

Screenshot:

Error message:
19.4.4+Branch.support/v2019.4.Sha.6d308c7f5a32b559373887ae421ce7eaec8f8d24

The item ‘C:\Users\jchong\Documents\UiPath\Invoice_Creation_SAP_Slow\Main.xaml’ could not be opened: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowDocument (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.WorkflowDocument, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IWorkflowDocument], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned —> An exception was thrown while invoking the constructor ‘Void .ctor(System.String, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, UiPath.Studio.Plugin.Workflow.Debug.Breakpoints.IProjectBreakpointsService, UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)’ on type ‘WorkflowDocument’. —> Document is invalid (See inner exception for details.) (See inner exception for details.).

Cannot open item: UiPath.Studio.Contracts.RecoverableException: The item ‘C:\Users\jchong\Documents\UiPath\Invoice_Creation_SAP_Slow\Main.xaml’ could not be opened: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowDocument (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.WorkflowDocument, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IWorkflowDocument], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned —> An exception was thrown while invoking the constructor ‘Void .ctor(System.String, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, UiPath.Studio.Plugin.Workflow.Debug.Breakpoints.IProjectBreakpointsService, UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)’ on type ‘WorkflowDocument’. —> Document is invalid (See inner exception for details.) (See inner exception for details.). —> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowDocument (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.WorkflowDocument, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IWorkflowDocument], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned —> An exception was thrown while invoking the constructor ‘Void .ctor(System.String, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, UiPath.Studio.Plugin.Workflow.Debug.Breakpoints.IProjectBreakpointsService, UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)’ on type ‘WorkflowDocument’. —> Document is invalid (See inner exception for details.) (See inner exception for details.) —> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor ‘Void .ctor(System.String, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, UiPath.Studio.Plugin.Workflow.Debug.Breakpoints.IProjectBreakpointsService, UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)’ on type ‘WorkflowDocument’. —> Document is invalid (See inner exception for details.) —> System.IO.InvalidDataException: Document is invalid
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.InitRootActivity(String filename) in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\WorkflowHandling\DesignerWrapperInit.cs:line 155
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.Load(String fileName) in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\WorkflowHandling\DesignerWrapperInit.cs:line 30
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.<>c__DisplayClass13_0.b__0() in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\DesignerFileService.cs:line 106
at UiPath.Studio.Shared.MVVM.Services.DispatcherExtensions.Invoke(Dispatcher dispatcher, Action action, Boolean onlyBeginInvokeWhenNoAccess) in d:\a\1\s\Studio\UiPath.Studio.Shared\MVVM\Services\Extensions\DispatcherExtensions.cs:line 121
at UiPath.Studio.Shared.MVVM.Services.DispatcherService.Invoke(Action action, Boolean onlyInvokeWhenNoAccess) in d:\a\1\s\Studio\UiPath.Studio.Shared\MVVM\Services\DispatcherService.cs:line 162
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.Load(String fileName) in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\DesignerFileService.cs:line 88
at UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService.Load(String fileName)
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileServiceProxy.Load(String fileName) in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\Proxies\DesignerFileServiceProxy.cs:line 23
at UiPath.Studio.Plugin.Workflow.WorkflowDocument…ctor(String path, IDesignerFileService designerFileService, IProjectBreakpointsService projectBreakpointsService, IExtendedFileSystem fileSystem, IDesignerViewService designerViewService) in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Document\WorkflowDocument.cs:line 63
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 lambda_method(Closure , String )
at UiPath.Studio.Plugin.Workflow.WorkflowDocumentFactory.OpenAsync(String path) in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Document\WorkflowDocumentFactory.cs:line 253
at UiPath.Studio.Core.Services.PersistableServiceBase3.<OnOpenAsync>d__19.MoveNext() in d:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 209 --- End of inner exception stack trace --- at UiPath.Studio.Core.Services.PersistableServiceBase3.d__19.MoveNext() in d:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 219
— 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.DocumentService.d__45.MoveNext() in d:\a\1\s\Studio\UiPath.Studio.Shell\Services\DocumentService.cs:line 376
— 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.Core.Services.PersistableServiceBase3.<OpenAsync>d__10.MoveNext() in d:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 0 --- 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.Project.FileProjectItemViewModel.<OpenExecute>d__11.MoveNext() in d:\a\1\s\Studio\UiPath.Studio.Shell\ViewModels\Project\FileProjectItemViewModel.cs:line 73 --- 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.Project.FileSystemProjectItemViewModelBase.<<-ctor>b__9_0>d.MoveNext() in d:\a\1\s\Studio\UiPath.Studio.Shell\ViewModels\Project\FileSystemProjectItemViewModelBase.cs:line 59 --- 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.TaskCommand3.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

Try restarting the UiPath service or may be restart your computer. If that doesn’t solve, may be you will have a raise a support ticket to de-register your device ID from community edition. So that you can register the same device as Enterprise edition.

Hi @Benjamin_Chong,
Welcome to the Community!
To which orchestrator are you connected? If it’s platform.uipath.com then it will gives you license from Orchestrator which is CE.

Hi @Benjamin_Chong

Welcome to our UiPath Forum! :slight_smile:

Are you trying to open 2019.8.0 workflow in 2019.4.4? If so, it might not work due to incompatibility of new workflows with older version of Studio. We do support automatic conversion of older workflows in new versions, but the other way around is tricky and not supported.
This comes from the fact that the old Studio simply doesn’t ‘understand’ new features.

@Visala_Ramanathan I have tried restarting UiPath service and restart PC, it doesn’t work as well.
@Pablito Thank you for the warm welcome! I did connect to platform.uipath.com, is there another address for enterprise orchestrator?
@loginerror Thank you for the warm welcome! It is exactly what I did, switching from community(2019.8.0) to enterprise(2019.4.4). I thought it is supposed to be compatible with enterprise edition as the ads mentioned you are able to switch from CE to EE anytime. Then I will need to redevelop the same robot in EE once over again? It does not seems platform switching friendly…

@Benjamin_Chong

It is for License and we can switch from Community Edition licence to Enterprise Edition licence anytime.

What ever packages you installed and used in community edition (2019.8) which are may not be available in Enterprise Edition (2019.4) due to this its not backward compatible.

Next time before doing this just check used packages are available in older version or not. If yes then move your process to older version else don’t.

1 Like

Unless you don’t have your own Orchestrator purchased there’s no public Orchestrator EE deployed.

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