Error handling
Per-node error policies, Try / Catch / Finally, Retry block, the error variable, failure screenshots, task retries and common error codes.
Web pages change, load slowly and sometimes fail. RPA Plus gives you three levels of control: what one node does when it fails, how a group of nodes recovers, and whether a whole run is tried again.
Per-node error policy
Every node except Start has When this node fails in the inspector:
| Policy (UI) | Value in the file | What happens |
|---|---|---|
| Stop the run | stop | The default. The run fails at this node |
| Retry, then stop | retry | Tries the node again — Retries (up to 20) with Delay (ms) between attempts — then fails |
| Skip and continue | skip | The error is stored in error; the run goes on through next |
| Continue | continue | Same as skip: the run goes on through next |
| Follow the error output | error_branch | The node gets a red error output; whatever you connect there runs instead of next |
"on_error": {"policy": "retry", "retries": 2, "retry_delay_ms": 3000}Every attempt is written to the run log. With Follow the error output, the branch you connect to error is a normal chain: it can log the problem, take a screenshot, add a result row or end with Stop workflow. If the error output is left unconnected, the run stops as with Stop the run.
The error variable
After a node fails (whatever the policy), the variable error holds:
{"code": "timeout", "message": "…", "node": "n7"}Use it in a branch or a log message: {{ error.code }}, Failed at {{ error.node }}: {{ error.message }}. Secret values are removed from the message.
Failure screenshots
When a browser node fails, Quin saves a screenshot of the page (failure-<node id>.png) in the run's files and links it from the step. Turn this off with Screenshot on failure in the workflow settings.
Try / Catch / Finally
Try / Catch / Finally (try) protects a whole chain:
try— the steps to attempt;catch— runs when any step intryfails (after that step's own policy gave up);errordescribes the failure;finally— always runs afterwards, success or not — for example to close a tab or write what was collected so far.
If catch handles the error, the run continues through the Try node's next. If catch is left empty, the error is swallowed; add Stop workflow (status failed) in catch when the run should still fail.
Retry block
Retry block (retry_block) runs its body again when a step in it fails, up to attempts times (3 by default, 1–20) with delay_ms (1,000) between attempts. Each attempt starts at the top of the body, which makes it the right tool for multi-step sequences: open a page, wait for a result, read it. After the last failed attempt the error continues to the Retry block's own policy.
Run-level protections
- Time limit —
run_timeoutwhen the run exceeds its time limit. - Step budget —
step_limitwhen it exceeds Maximum steps. - Wait timeouts — Wait for confirmation and Wait for external signal fail with
timeoutwhen nobody continues in time.
Task retries
When you run a task you can set Retries per run (0–5). A failed run then starts over from the beginning on the same profile. Quin never retries a run automatically when repeating cannot help or could repeat actions that already happened — for example profile_not_saved, lease_lost, writer_busy, taken_over, cancelled, account_not_active or rpa_disabled. When a run fails decides whether the other profiles' runs continue (Continue with the others) or the task stops (Stop the whole task). Afterwards, Retry failed runs starts a new task for the profiles that did not complete. See Batch runs.
If Quin stops while a run is in progress, the run is marked Recovery required (interrupted) and is not restarted automatically, because it may already have done part of its work. Check what it did, then retry it when that is safe.
Common error codes
Quin shows a readable title with each error; the code is shown with it for scripts and support.
| Code | Meaning | What to do |
|---|---|---|
timeout | The element never appeared, or the page was slow | Check the locator; raise Timeout ms |
ambiguous_locator | An acting node's locator matches more than one element | Add nth or a more specific locator |
element_not_found / element_not_interactable | Missing, hidden, disabled or covered element | Wait for it first; check the page state |
navigation_failed | The page could not be loaded | Check the address and the profile's proxy |
target_closed | The page or browser was closed | Do not close the browser during a run |
invalid_params | A parameter is wrong (for example a refused address) | Fix the node |
expression_error | An expression failed (often an undefined variable) | Check names; use default() |
file_not_allowed / file_not_found | A path outside the workspace, or a missing file | See Data files |
destination_forbidden | An HTTP node tried to reach a local or private address | See HTTP requests |
http_error / unexpected_status | The server answered an error, or not the expected status | Check the request |
assertion_failed | A Validate value check was false | Read its message |
loop_limit, run_timeout, step_limit | A limit was reached | Raise the limit or reduce the work |
session_busy | Another client controls the browser | Wait, or take over from that client |
writer_busy | The Quin Cloud profile is open on another computer | Close it there, then run again |
profile_not_saved | The steps finished but the profile was not saved to Quin Cloud | Nothing to redo; Quin saves it when Quin Cloud is reachable |
proxy_unavailable | The profile's proxy is not reachable | Fix the proxy; Quin never falls back to a direct connection |
A robust pattern
Try
├ try: Go to URL → Wait for element → Fill input → Click → Wait for text
├ catch: Log message "Row {{ index }} failed: {{ error.code }}"
│ → Add result row {row: index, status: 'failed', reason: error.message}
└ finally: (nothing)
→ next rowInside a For each, this records a failure for one row and moves on to the next, instead of failing the whole run.