Level 1 - Lesson 12 Practice answer - Error

Good morning~~~

I’m now studying Debuging and found that “Lesson 12 Practice answer” has error as attached png.
It’s embarrassing that the answer UiPath gave in the lecture is wrong.

How can I solve that.

Lesson_12_Practice_1_Excel_Debugging_Answers.zip (19.0 KB)

It’s showing you that row(“Cash In”) is string value then Cint cannot be use with it

Thank for your answer.

But I’m sorry I don’t understand your meaning.

Please see Academy’s answer as below.

20190910_155749

Start Option 중에 Without Debugging 으로 돌리시면 될 듯 합니다. :laughing:

숫자 같은 경우 CInt 로 형변환이 가능하지만, 3B7 같이 문자가 섞인 경우 CInt 로 형변환이 불가 합니다.

Try 문에서 Error가 발생 시, Catch 문에서 Error에 대한 예외처리가 가능합니다.

정상적인 프로세스 과정입니다.

In the practice answer is not error, they are showing row(“Cash In”) is string value then Cint cannot be use with it, then they use exception in Catches block to catch error from catchIn variable and assign “Cash in wrong”.
you can see detail in result excel file column “Difference”

They intend to prove you about exception handling

네, 감사합니다

Thank you very much !!!

1 Like

You’re welcome.
I am fan of Korean series. :heart_eyes:

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