Try Catch: Can't seem to get it working


I have been trying to get the try catch to work on all exceptions. I have included all my activities into the try block and put a system.exception catch to catch all errors. Once an error is caught, the idea is to write a cell in the Excel workbook to inform the user that the row is unsuccessful and move to the next row of the datatable. I have tested this out to see if it would catch the “Could not find the UI element corresponding…” error and move on. However, it does not move on and instead, it informs me of the error in the output. I am unsure why it does not work.


Are you running in debug mode?

Yes I am

Okay I have figured it out