Continue on error then write cell

image
Hello Robot Masters I am working on a project and I want to do this…
continue if error is true then write cell (column remarks) “error on this item”

then the robot will loop til all the data is done

Hi @flashdrive07 ,

Try keeping that activity in Try Cath and in Catch block set the row.item variable to store the error message

How ? also can u guide me?

I am using STUDIOX

Hi,

Can you try as the following?

First, turn on Developer at Filter of Activities panel. Then put TryCatch into Designer panel.
Next, put Write cell activity inside Try without any sequence and activity. (If there is sequence, GlobalHandeler will catch exeption before TryCatch does)
Finally, set System.Exception in Catch and keep it blank.

Regards,

i tried it but… it remarks all as “test” even if no error.

Hi,

Sorry, I had misunderstanding your requirement.
How about the following? In this case, it7s necessary to turn off ContinueOnError

image

should I insert my whole sequence in the Try ?
then my write cell is in catches ?

because if yes. in my remarks still “done” even if error prompts
if error remarks must be “error occurs”.

Hi,

Can you try as the following, for example?

Use isFailed flag. If Failed flag is true, it has error.

Regards,