Select fileでキャンセルした時の処理 How to process when select file canceled

いつもお世話になっています。
hi,Forum members.

Select fileでファイルを選択せずにキャンセルボタンをクリック閉じる、または選択ウィンドウを閉じた場合に、エラーを出さずにシナリオを終了する方法はあるのでしょうか?
Is there a way to quit the scenario without sending an error even if I close the selection window or click close the cancel button without selecting the file with Select file?

キャンセルした場合に出るエラーメッセージ
Error message that appears when canceling

"=====================================
***** has thrown an exception
Source: Select file
Message: Selection was canceled.
Exception Type: OperationCanceledException
"=====================================

ご存知の方いらっしゃいましたら、よろしくお願いします。
Thank you and best regards,

Hi there @Ryoko,
You could enclose the ‘Select File’ dialog within a Try/Catch activity.

This way, you can avoid the unhandled exception and deal with it’s cancellation however you wish.

Thanks,
Josh

3 Likes

thanks,Josh.

Try/Cacthがあることをすっかり忘れてしまっていました。
I completely forgot that there is Try / Catch.

目的のものが出来ました。ありがとう!:grin:
I was able to do what I wanted. Thank you!
fileselect.xaml (7.1 KB)

3 Likes