Perform a new set of actions when an error occurs
  • Updated on 06 Apr 2020
  • 1 minute to read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Perform a new set of actions when an error occurs

  • Print
  • Share
  • Dark
    Light

In case your agent encounters an error while it's processing a web page—usually the Element Not Found error—you can configure the agent to run a different set of actions, rather than just stopping. This is especially useful when harvesting data from websites that use different layouts within a series of web pages. It gives you the ability to handle the page differences on a case-by-case basis.

You can define error handling in two places in the Agent Builder:

  • The Action Properties panel (which can be done at any time)
  • The Error Handling panel when an error occurs.

The Action Properties panel

  1. Right-click an action you want to add error handling to, then click Properties > ERROR HANDLING.

Perform a New Set of Actions When an Error Occurs_Image1

Perform a New Set of Actions When an Error Occurs_Image2

  1. Choose what to do if the agent encounters an error.

Perform a New Set of Actions When an Error Occurs_Image3

  1. Click SAVE.

The Error Handling panel

  1. In the Element Not Found panel, click This is the wrong page.

Perform a New Set of Actions When an Error Occurs_Image4

  1. In the left panel, click:
  • Existing Page if you have already created a page with the alternate actions you want to perform.
  • New Page if no alternate actions have been created for the current web page.

Perform a New Set of Actions When an Error Occurs_Image5

Perform a New Set of Actions When an Error Occurs_Image6

  1. Click SAVE.
Was this article helpful?