I get error when am creating project or when am open the project

hello, Uipath

I get this error

21.4.2+Branch.master.Sha.3b603a5ec0f1b6af959e38d84177ff1d548b3ea2

The project ‘C:\Users\STSK PropTech\Documents\UiPath\AppDataEntryProject\project.json’ could not be opened: The type initializer for ‘System.Activities.Presentation.WorkflowDesigner’ threw an exception…

Cannot open item: UiPath.Studio.Contracts.RecoverableException: The project ‘C:\Users\STSK PropTech\Documents\UiPath\AppDataEntryProject\project.json’ could not be opened: The type initializer for ‘System.Activities.Presentation.WorkflowDesigner’ threw an exception…
—> RemoteException wrapping System.TypeInitializationException: The type initializer for ‘System.Activities.Presentation.WorkflowDesigner’ threw an exception. —> RemoteException wrapping System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.Dictionary2.KeyCollection.Enumerator.MoveNext() at System.Activities.Presentation.Metadata.MetadataStore.MetadataStoreProvider.AddTable(AttributeTable table, Boolean isSystemAttributeTable) at System.Activities.Presentation.Metadata.MetadataStore.AddAttributeTableCore(AttributeTable table, Boolean isSystemAttributeTable) at System.Activities.Presentation.Internal.PropertyEditing.Metadata.PropertyInspectorMetadata.Initialize() at System.Activities.Presentation.WorkflowDesigner..cctor() --- End of inner exception stack trace --- at System.Runtime.CompilerServices.RuntimeHelpers._RunClassConstructor(RuntimeType type) at UiPath.Studio.Plugin.Workflow.Services.ProjectLoaderProjectEndpoint.<>c.<LoadFromContainerAsync>b__10_0() at UiPath.Studio.Plugin.Workflow.WorkflowHandling.MetadataStoreGlobalLock.ExecuteWithLock(Action code) at UiPath.Studio.Plugin.Workflow.Services.ProjectLoaderProjectEndpoint.<LoadFromContainerAsync>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.CoreIpc.Server.<InvokeMethod>d__22.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.CoreIpc.Server.<HandleRequest>d__21.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.CoreIpc.Server.<>c__DisplayClass4_2.<<-ctor>b__6>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.CoreIpc.IOHelpers.<WithResult>d__13.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.CoreIpc.IOHelpers.<WithTimeout>d__191.MoveNext()
— End of inner exception stack trace —
at UiPath.Studio.Core.Services.PersistableServiceBase3.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options) at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Core.Services.PersistableServiceBase3.OpenAsync(OpenInformation openInfo) at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.OpenProjectAsync(OpenInformation openInfo, IProject newProject) at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.OpenNewProjectAsync(IProject newProjectItem) at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.CreateNewProjectAsync(IProjectTemplate template) at UiPath.Studio.Shell.ViewModels.StartPageViewModel.<>c__DisplayClass51_0.<<OnNewProjectCommand>b__0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.Studio.Shell.ViewModels.StartPageViewModel.ExecuteCommand(Func1 commandExecute)
at UiPath.Studio.Shell.ViewModels.StartPageViewModel.OnNewProjectCommand(String project)
at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand`3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
at System.Threading.Tasks.Task.<>c.b__140_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

Hi @copy_writes try to update to latest stable version of UiPath.

1 Like

Hi, @copy_writes , Try go to Home → Setting → Reset Settings. After that restrat UiPath. You can also try restarting your machine if the previous step does not work.

2 Likes

Its a latest version only 2021.4.2
image

thanks for the quick response
I will check

@copy_writes , it worked for me. Might work for you as well. :slightly_smiling_face:

Best,
Robin

@copy_writes

If that workaround mentioned above doesn’t work, could you please send me an output of the image via a private message @loginerror?

We will investigate the issue further.

Thank you for providing the details. Our team was able to look into the issue and is working on a fix that will be released with the next version.

1 Like

And I have a question We can use this in another system if we provide a URL to them?

thanks
Chethan P