Error Handing in Selenium Node of Knime

Hi People,

I have made a workflow in the knime to extract some information using selenium nodes, however I am unable to handle errors as I am not sure which node to use. I tried using the error handling note but it didn’t worked.

Sometimes the variable flowing from the loop is not valid as I don’t have access to the page which causes it to fail. In such case I want the system to move on to the next link. Can anyone help me with this?

Also, if there a way I can store the error to review later may be in form of a table?

I tried googling also but didn’t worked.

Thanks
Ankit

Hi Ankit,

have you tried surrounding the inner loop (i.e. between the light blue nodes) with a Try/Catch combination? For your workflow, the following two would fit:

Best,
Philipp

1 Like

Thanks philipp,

I did tried initially but failed probably, I was not sure if this is the one which I needed to you. Now, i am able to loop through the pages even if I have the error.

What can I use to collect the error in the a table format.
I tried variable to table row, but it seems to be capturing the current variable only.
Also, tried using table creator but no result of the failure’s on those.

I think you want to collect the errors from all iterations, correct? I would try as follows:

Add another input port to the Loop End node (for that, click on the three ) in the node. Then connect the Variable to Table Row to the second input port of the Loop End. This should give you at the second output port the collected errors from all iterations.

Does this help?

1 Like

I think I get what you are trying to say. I gave it a go on another workflow that I created.

The second collected result is showing me all the records. It’s not showing me the error. Do you know what I am doing wrong?