【ご相談】Try Catchアクティビティの使い方

こんにちは。
UiPath Studio 2023.4.1 Enterpriseを利用中です。
指定フォルダのファイル一覧をリスト変数lis_Pathに取得後、リスト変数lis_Pathの値を1つずつString変数str_TransactionItemに取得して回すWFを作成中です。
自分で作成したFramework(添付画像)からProcess.xamlを呼び出して実行します。

Framework全体はTry Catchアクティビティで囲んでいるのですが、MainからProcess.xamlを呼び出すワークフローファイル呼び出しアクティビティをTry Catchアクティビティ囲む必要があるかどうかで悩んでいます。
MainからProcess.xamlを呼び出すワークフローファイル呼び出しアクティビティをTry Catchアクティビティで囲まなくても、Process.xaml内でエラー発生時にスローしておけば、最上位のCatchブロックでエラー検出できますので、MainからProcess.xamlを呼び出すワークフローファイル呼び出しアクティビティをTry Catchアクティビティ囲まなくても良いような気がしますが、異論がある方、ご指導をお願い致します。

@gorby

Generally process.xaml is under a different try catch because as it is run for eqch transaction wven if one transaction fails the bot continues with the remaining

On the other hand if you use the outer try catch only…then the process stops immediately after error and would not move forward with next transaction…

For example say there is an error on the second file in list…then if we do not use try catch around process it will not move to 3rd…rather it fails and second and stops the bot

Hope this helps

Cheers

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