UiPath Certification UiPath Error Handling and Debugging 2 — Questions and Answers
Question 1: What does the 'Continue on Error' property on a UiPath activity do when set to True?
- Retries the activity on failure
- Allows the workflow to proceed to the next activity even if the current one throws an exception (Correct answer)
- Logs the error to Orchestrator and stops
- Sends an email notification on error
Correct answer: Allows the workflow to proceed to the next activity even if the current one throws an exception
Setting Continue on Error to True suppresses any exception thrown by that activity and allows workflow execution to proceed normally.
Question 2: In UiPath, what type of exception should you throw when a business rule is violated (e.g., invoice amount is negative)?
- ApplicationException
- BusinessRuleException (Correct answer)
- InvalidOperationException
- ArgumentException
Correct answer: BusinessRuleException
BusinessRuleException is a UiPath-specific exception type used to flag data or rule violations, marking queue items as Business Exception in Orchestrator.
Question 3: What is the 'Log Message' activity used for in UiPath?
- Writing data to a CSV file
- Sending a log entry with a specified severity level to the robot's output and Orchestrator logs (Correct answer)
- Displaying a message box to the user
- Logging into a web application
Correct answer: Sending a log entry with a specified severity level to the robot's output and Orchestrator logs
Log Message writes a text message at a chosen level (Trace, Info, Warn, Error, Fatal) to both Studio output and Orchestrator's Logs section.
Question 4: Which UiPath debugging mode runs the workflow slowly with each activity highlighted to help spot timing issues?
- Step Into
- Slow Step (Correct answer)
- Highlight
- Profile
Correct answer: Slow Step
Slow Step mode executes the workflow with a configurable delay between activities, highlighting each one as it runs for visual tracing.
Question 5: What is the purpose of the 'Finally' block in a UiPath Try Catch activity?
- It only runs when an exception is caught
- It always runs after Try and Catch, regardless of whether an exception occurred (Correct answer)
- It runs only when no exception occurs
- It retries the Try block automatically
Correct answer: It always runs after Try and Catch, regardless of whether an exception occurred
The Finally block executes unconditionally after the Try and Catch sections, making it ideal for cleanup tasks like closing browsers or files.
Question 6: In UiPath, what happens if an exception is not caught by any handler in the workflow hierarchy?
- The robot continues to the next activity
- The exception propagates up to the caller or Global Exception Handler; if unhandled there, the job fails (Correct answer)
- The robot pauses and waits for user input
- The exception is silently ignored
Correct answer: The exception propagates up to the caller or Global Exception Handler; if unhandled there, the job fails
Uncaught exceptions bubble up through invoked workflow callers; the last resort is the Global Exception Handler, and if that doesn't handle it, the job terminates with a fault.
What does the 'Continue on Error' property on a UiPath activity do when set to True?