What exactly happens if Verify Element fails in an Activity?

Many activities have a built-in verification system. My question is, if I have built them into a workflow or library and one of them fails for some reason, what will happen exactly? Will it automatically raise an error to the calling workflow? Will the workflow stop? How will the calling workflow know what happened? Is there an automatic log message? Or do I have to write an error handling structure for such a case?

Hi @Terry_Marr

When a UiPath activity with Verify Element fails, it typically throws an exception indicating that the element could not be found or a condition was not met. If this exception is not handled, the workflow will stop, and the error details will be logged automatically. To manage such failures gracefully, you should use a Try Catch block around the activity. This allows you to catch the exception, log a custom error message, and potentially take corrective actions like retrying the operation or notifying someone, ensuring that the workflow can handle errors without abrupt failures.

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