Last error description - how to get this variable?

Discuss RoboTask here
Post Reply
breq
Posts: 13
Joined: Sun Feb 02, 2014 12:27 pm

Last error description - how to get this variable?

Post by breq »

Hi,

I want to send an email if there was any errors in task. I know how to chec if there was an error but I can't get gescription of that error.
What I'm doing wrong?

http://i.imgur.com/dTxKQSw.png
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Last error description - how to get this variable?

Post by Oleg »

Now you can do this if you use error handling task.
See the screenshot please:
errorhand.png
errorhand.png (60.09 KiB) Viewed 14554 times
Also see demo examples named:
"[DEMO] Error Handling Demo (Send Email with error)"
"[DEMO] Error Handling Task"

Also you can find these tasks here:
[DEMO] Error Handling Demo (Send Email with error)
[DEMO] Error Handling Task

Read more about error handling task here, please

But I wrote into our ToDo. Maybe it have a sense to make available the error description without error handling task
Oleg Yershov
breq
Posts: 13
Joined: Sun Feb 02, 2014 12:27 pm

Re: Last error description - how to get this variable?

Post by breq »

I have changed to 'run error handler' but robotask sends me message
"Loop initialization error" when I need an error from MySQL (marked as yellow) .. is it possible to get this somehow?

http://i.imgur.com/25ZG1aI.png
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Last error description - how to get this variable?

Post by Oleg »

Probably DB loop doesn't save the detailed description of error. We'll check and correct this ASAP.
Oleg Yershov
Post Reply