Sap:"no response" with error

This is about exporting to an excel file by specifying certain conditions using sap.
When export is executed and there is no response from the server or it takes time
Please tell me the correspondence.
As processing, it corresponds to “no response” with error and it is finished.

sapを利用してある条件を指定してexcelファイルにエクスポートする場合に関してです。
エクスポートを実行してサーバーから回答がないあるいは時間がかかる場合の
対応を教えてください。
処理としてはエラーで「応答なし」と対応し終了です。

・ダウンロード完了のダイアログ等が出てくるのをFind ElementまたはFind Imageで待つ
・ダウンロード中のダイアログまたは表示が消えるのをWait Element VanishまたはWait Image Vanishで待つ

あたりが無難でしょうか。
どちらにしてもTimeoutMSをエラー扱いする秒数×1000(単位がミリ秒なので)に設定し、ContinueOnErrorをFalseにする必要があります。

あとはTry CatchアクティビティでActivityTimeoutExceptionをcatchして、必要なエラーハンドリングを行えばいいかと。

1 Like