Xamlファイル起動時のエラーについて

xamlファイルを開いたときに下記のエラーが発生することがあります。原因と対処法を教えていただけますでしょうか。
「System.Activities.Presentation.WorkflowDesigner’ のタイプ初期化子が例外をスローしました。」

以下ログ

21.4.0+Branch.master.Sha.9d7faf3cba616937d3771694eed2d5957b29427c

‘System.Activities.Presentation.WorkflowDesigner’ のタイプ初期化子が例外をスローしました。

エラー: System.Exception: ‘System.Activities.Presentation.WorkflowDesigner’ のタイプ初期化子が例外をスローしました。
—> System.Exception: コレクションが変更されました。列挙操作は実行されない可能性があります。
場所 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
場所 System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
場所 System.Activities.Presentation.Metadata.MetadataStore.MetadataStoreProvider.AddTable(AttributeTable table, Boolean isSystemAttributeTable)
場所 System.Activities.Presentation.Metadata.MetadataStore.AddAttributeTableCore(AttributeTable table, Boolean isSystemAttributeTable)
場所 System.Activities.Presentation.Internal.PropertyEditing.Metadata.PropertyInspectorMetadata.Initialize()
場所 System.Activities.Presentation.WorkflowDesigner…cctor()
— End of inner exception stack trace —
場所 System.Runtime.CompilerServices.RuntimeHelpers._RunClassConstructor(RuntimeType type)
場所 UiPath.Studio.Plugin.Workflow.Services.ProjectLoaderProjectEndpoint.<>c.b__11_0()
場所 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
場所 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233036

Hi @hideaki-nokubi

Thank you for your bug report. The issue is already known and our team is working on a fix.

As a workaround, you might have to perform a clean installation of the 2021.4.2 Community Edition, as per this guide:
How to fix your Studio installation / Licensing issues

1 Like

Hi @hideaki-nokubi

Our team has investigated the issue and the fix will be released in one of the coming versions.

1 Like