Extractor Error Handling
  • 05 Nov 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Extractor Error Handling

  • Dark
    Light
  • PDF

Article summary

Error handling for the steps in the extractors is all handled per each step. Choose how to handle errors by selecting a step and opening the General tab under Edit.

1.png

Here you'll find several general options for how the step behaves. In the robot, scroll down until you see Error handling.

2.png

Error handling types

There are 3 types of error handling available.

Screenshot 2021-03-29 at 09.41.36.png

Stop and fail

This is the default error mode. When a step fails with this error mode selected, the entire robot will stop and report the failure. You'll receive Jump to error options, a screenshot, and access to logs to help you figure out why the robot failed.

You can also set a custom error message for when this happens that allows you to be able to add more automatic error handling if it is expected behavior.

Hidden messages!

Writing a custom error message will completely replace the original error message and might hide the actual explanation for the error. We recommend using a custom error when you have a good understanding of the dexi.io platform.

Ignore and continue

This error mode does exactly as advertised: it simply ignores the error and continues as if the step did not fail.

Be careful of using this option too much in one robot — errors will help you monitor how your robots are doing. Overusing this error type can hide the fact that your robots are no longer working as expected. Try to apply this error type to things that you expect might fail and are not required for your robot to continue to produce value.

Skip current branch

This error mode will jump to the next branch or an iteration of a loop (whichever is closest to the left of the step) and continue from there. Use this when you are iterating a list of things and know you might want to skip certain ones if they fail, or if you are using branches to handle different conditions on the website.

To learn more about branching, be sure to read this article about the basics of the extractor.


Was this article helpful?