UiPathを本格的に触り始めて1か月が経ちました。
今回こちらで質問させていただきたいのが、
タイトルにもあるように、ExcelExceptionの例外処理の中でコンパイルエラーが発生してしまっていることです。
代入にて、
変数「errorLogContent」の中に、「exception.ToString」を入れて、
exceptionをString型で出力しようと考えています。
同じ方法で、FileNotFoundExceptionではエラーは起きていません。
「型’ExcelException’が定義されていません。」とは、
どこをいじってあげれば解消されますでしょうか。
Anil_G
(Anil Gorthi)
2
Hi @tateuchi_takashi
For exception message you can use exception.message this will give you the exception message that the bot has thrown
Cheers
rajat.jain
(Rajat Jain)
3
@tateuchi_takashi
使用できる文字列として出力する
exception.message
hi @Anil_G and @rajat.jain
Thank you for replying.
You say it changes ‘.ToString’ for ‘.message’ , don’t you ?
I’ll try this and if anything happens I’ll report back
regards
Yoichi
(Yoichi)
5
こんにちは
可能であれば当該プロジェクト一式を提供いただくとよいと思いますが、難しいでしょうか?
もし検証用に別でプロジェクトを作成して、それでも再現できるのであれば、そちらでも結構です。
(Forumの権限でファイルアップロード自体が難しいかもしれませんが)
Anil_G
(Anil Gorthi)
6
Hi @tateuchi_takashi
Ideally exception.message has the exacl message.so try it
Cheers
rajat.jain
(Rajat Jain)
7
exception.source and exception.message will work.
This you can confirm by using a pre built re framework template mentioned below
Have a look at the catch activity of any xaml file