Robot will stop when the Item is not listed in the website

When my robot is searching for an element on the website and then a website is shown that the item is not listed the robot will stop at that point. I want to skip that part where the item is not listed so please help me out of this situation as soon as possible.

@Adarsh_Sharma1

Use Retry Scope Or try catch activity in your workflow, After logging the error, you can decide whether to continue with the next iteration or retry the search, depending on your requirements.

Hi @Adarsh_Sharma1

Welcome to Community!!

Use Try/Catch activity

  1. Use Try-Catch Block: Wrap the activities that interact with the website element in a try-catch block. This will allow you to catch any exceptions that might occur when the element is not listed.
  2. Catch Element Not Found Exception: In the catch block, catch the specific exception that occurs when the element is not found. This exception is typically of type UiPath.Core.ElementNotFoundException.
  3. Add Recovery or Alternative Steps: Within the catch block, you can add alternative steps or recovery actions to handle the situation where the element is not listed. For example, you might log a message, take a screenshot for troubleshooting, or proceed with the next item.

Hi @Adarsh_Sharma1

Debug the process and know the activity which is throwing the error. If you want to continue if the activity has error. Open the properties of that activity, and check the Continue on error option, If any error got in that activity it will continue with the next activity with out throwing the error.
image

Hope it helps!!

@Adarsh_Sharma1

  1. Open your UiPath project.
  2. Drag and drop a “Try Catch” activity onto your workflow.
  3. Inside the “Try” block of the “Try Catch” activity, place the activities that search for the element on the website.
  4. Inside the “Catch” block of the “Try Catch” activity, add the appropriate exception type to catch. For example, you can catch a “UiPath.Core.ElementNotFoundException” exception.
  5. Inside the “Catch” block, add activities that you want to perform when the element is not found. For example, you can log a message indicating that the element was not found and then continue with the rest of the workflow.
  6. If you want to continue the workflow even if an exception is caught, you can simply leave the “Catch” block empty or add activities that handle the situation.

Hope it helps!!

I am new in UiPath cloud so please give me the full instuction

Hi @Adarsh_Sharma1

Debug the project observe the debug one activity will throw the error. Open the properties of that activity and check the Continue on error option.

Hope you understand!!

hi @mkankatala
When i was debugging the execution the process will start but when the element is not found in the browser it will stop there

hi @mkankatala
When i was debugging the execution the process will start but when the element is not found in the browser it will stop there so please guide me how to solve this

@Adarsh_Sharma1

Make sure the element has to be appear on screen. If the Ui element is appear on screen they didn’t throw any error.

When you are debugging the process the web application or desktop application is launched?

If you can share your workflow then we will get better understanding of it. @Adarsh_Sharma1

@mkankatala
Here are the images of workflow please instruct me is there any error in my workflow