Question
UiPath Studio をバージョンアップして既存のワークフローファイルを開いたら警告が発生します。警告を表示しないようにする方法を教えてください。
警告は下記の 2 種類です。
Warning WARNING Validation Error Argument 'Operand' of activity 'Not<Boolean,Boolean>' is bound to an expression that contains activity 'InvokeMethod<Boolean>'. 'InvokeMethod<Boolean>' can cause the expression to idle during evaluation. If the argument expressions of activity 'Not<Boolean,Boolean>' modify shared state then going idle during expression evaluation can produce unexpected values for the arguments. Example.xaml
Warning WARNING Validation Error Argument 'Condition' of activity 'If' is bound to an expression that contains activity 'InvokeMethod<Boolean>'. 'InvokeMethod<Boolean>' can cause the expression to idle during evaluation. If the argument expressions of activity 'If' modify shared state then going idle during expression evaluation can produce unexpected values for the arguments. Example.xaml
Answer
原因
「UI Automation" アクティビティパッケージ」バージョン「24.10」の下記リリースノートの「バグ修正」セクションに記載している 4 件のクラシックアクティビティをワークフローに配置している場合に表示される可能性のある警告メッセージです。
・クラシック アクティビティ [要素が出現したとき]、[要素が消滅したとき]、[画像が出現したとき]、[画像が消滅したとき] アクティビティをデザイナー パネルに追加すると、検証の警告が表示されていました。
解決策
警告の表示は動作に影響はないため無視することができます。
警告を表示したくない場合は、警告が表示されるワークフローを含むオートメーションプロジェクトで利用している「UI Automation アクティビティパッケージ (UiPath.UIAutomation.Activities)」のバージョンを「24.10.0」以上へアップデートすることをお試しください。