Need simple Try-Catch practice examples (auto Continue behavior)

Hi everyone,
I’m practicing Try-Catch in UiPath and I’m looking for some easy, beginner-friendly examples where I can intentionally cause an error and check how the workflow moves to the Catch section automatically — without me clicking “Continue” in Studio.

Can you please share:

  • Simple Try-Catch practice scenarios (ex: wrong selector, divide-by-zero, file not found, type conversion error, etc.)
  • Steps to verify that the Catch block triggers automatically
  • Any tips on how to correctly use Try-Catch inside loops (like For Each)

I’m learning error handling right now, so small sample workflows or ideas will really help me practice.
Thank you!

@Abhinay_Reddy1

You have a list of numbers and want to divide 100 by each number, some of which may be 0.
1 Create List of Integers {10, 0, 5}
2 Use For Each item in list
3 Inside For Each add TryCatch
Try result = 100 / item
Catch : System.DivideByZeroException → Message Box “Divide by zero skipped”
4 After Try-Catch : Write Line "Processed item : " + item.ToString

@Abhinay_Reddy1

  1. Instead of debug use run file or run which would not stop on error and would continue
  2. use a log message in catch block to confirm you got an error
  3. for any scenario just change what error you need as per that…selector ..just add some random data in string so it fails, divide by zero self explanatory and etc

I hope this helps

cheers

@Abhinay_Reddy1

Learn from this video

Hi @Abhinay_Reddy1 ,

Here are some good Try-Catch practice cases for beginners to observe how the workflow jumps to Catch.

Each one automatically triggers Catch when you run normally, without stopping the workflow. The workflow will continue even after the error, and the Log Message confirms the catch and you can see where control is flowing.