Getting below error for a particular workflow after using workflow-inspector

Getting below error for a particular workflow. other workflows is working fine.
Previously this workflow was working fine. I run workflow-inspector from below link for this project and now getting below error.
Even i deleted this project and restore it again from backup( before running workflow-inspector) but still getting the same error.
Tried uninstalling and installing uipath 2 times,no luck

image

Cannot open item: UiPath.Studio.Contracts.RecoverableException: The item ‘C:\Users\A348404\Documents\UiPath\UipathCode\UdemyCopyCourse\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, System.Func1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.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, System.Func1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.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, System.Func1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.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.DesignerBuilder.InitRootActivity(WorkflowDesigner designer, String filename) at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.Build(DesignerEventsSubscriber eventsSubscriber, String workflowId, String fileName) at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.Load(String fileName) at UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.<>c__DisplayClass13_0.<Load>b__0() at UiPath.Studio.Shared.MVVM.Services.DispatcherExtensions.Invoke(Dispatcher dispatcher, Action action, Boolean onlyBeginInvokeWhenNoAccess) at UiPath.Studio.Shared.MVVM.Services.DispatcherService.Invoke(Action action, Boolean onlyInvokeWhenNoAccess) at UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.Load(String fileName) at UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService.Load(String fileName) at UiPath.Studio.Plugin.Workflow.Services.DesignerFileServiceProxy.Load(String fileName) at UiPath.Studio.Plugin.Workflow.WorkflowDocument..ctor(String path, IDesignerFileService designerFileService, Func1 projectBreakpointsServiceFactory, IExtendedFileSystem fileSystem, IDesignerViewService designerViewService)
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.Shared.Document.WorkflowDocumentFactoryBase.OpenAsync(String path, IOpenOptions options)
at UiPath.Studio.Core.Services.PersistableServiceBase3.<OnOpenAsync>d__19.MoveNext() --- End of inner exception stack trace --- at UiPath.Studio.Core.Services.PersistableServiceBase3.d__19.MoveNext()
— 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()
— 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() --- 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__17.MoveNext() --- 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__11_0>d.MoveNext() --- 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__32.MoveNext()
— 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

Logs.zip (9.2 KB)

Have uploded the logs.

Any expert please look into this.

please see here…Open Document Error - UiPath.Studio.Contracts.RecoverableException

@gupta.rak1984
Did you manage to solve this problem? If yes, could you please share the resolution?

Yes
I installed the missing package which was in red.

1 Like