Error handling

Per-node error policies, Try / Catch / Finally, Retry block, the error variable, failure screenshots, task retries and common error codes.

RPA PlusÁp dụng cho Quin Camoufox 0.7Cập nhật 2 tháng 11, 2026

Trang này chưa có bản tiếng Việt. Nội dung tiếng Anh được hiển thị bên dưới.

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 fileWhat happens
Stop the runstopThe default. The run fails at this node
Retry, then stopretryTries the node again — Retries (up to 20) with Delay (ms) between attempts — then fails
Skip and continueskipThe error is stored in error; the run goes on through next
ContinuecontinueSame as skip: the run goes on through next
Follow the error outputerror_branchThe node gets a red error output; whatever you connect there runs instead of next
JSON
"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:

JSON
{"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 in try fails (after that step's own policy gave up); error describes 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_timeout when the run exceeds its time limit.
  • Step budget — step_limit when it exceeds Maximum steps.
  • Wait timeouts — Wait for confirmation and Wait for external signal fail with timeout when 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.

CodeMeaningWhat to do
timeoutThe element never appeared, or the page was slowCheck the locator; raise Timeout ms
ambiguous_locatorAn acting node's locator matches more than one elementAdd nth or a more specific locator
element_not_found / element_not_interactableMissing, hidden, disabled or covered elementWait for it first; check the page state
navigation_failedThe page could not be loadedCheck the address and the profile's proxy
target_closedThe page or browser was closedDo not close the browser during a run
invalid_paramsA parameter is wrong (for example a refused address)Fix the node
expression_errorAn expression failed (often an undefined variable)Check names; use default()
file_not_allowed / file_not_foundA path outside the workspace, or a missing fileSee Data files
destination_forbiddenAn HTTP node tried to reach a local or private addressSee HTTP requests
http_error / unexpected_statusThe server answered an error, or not the expected statusCheck the request
assertion_failedA Validate value check was falseRead its message
loop_limit, run_timeout, step_limitA limit was reachedRaise the limit or reduce the work
session_busyAnother client controls the browserWait, or take over from that client
writer_busyThe Quin Cloud profile is open on another computerClose it there, then run again
profile_not_savedThe steps finished but the profile was not saved to Quin CloudNothing to redo; Quin saves it when Quin Cloud is reachable
proxy_unavailableThe profile's proxy is not reachableFix the proxy; Quin never falls back to a direct connection

A robust pattern

Text
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 row

Inside a For each, this records a failure for one row and moves on to the next, instead of failing the whole run.