--- title: "StopIfErrors" slug: "stopiferrors" updated: 2026-06-18T20:33:13Z published: 2026-06-18T20:33:13Z canonical: "docs.datajet.app/stopiferrors" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # StopIfErrors Stops the running script if any verification errors have been recorded up to this point. Place it after the verification methods in a script (for example [ErrorIfDuplicate](/v1/docs/errorifduplicate), [ErrorIfAnyNull](/v1/docs/errorifanynull), [RequiredFields](/v1/docs/requiredfields)) to halt processing before later steps run against data that has already failed a check. The errors it counts are those raised by the verification methods during the run. If no such errors have been recorded, the script continues; otherwise it stops. An active [StartErrorLog](/v1/docs/starterrorlog) is not required. ## Parameters | Key | Value(s) | Description | | --- | --- | --- | | method | `"StopIfErrors"` | Stops the script if verification errors have been recorded. | | project | `"MyProject"` | Current project name. | ```json { "method": "StopIfErrors", "project": "MyProject" } ``` ## See also - [ErrorIfDuplicate](/v1/docs/errorifduplicate) - [ErrorIfAnyNull](/v1/docs/errorifanynull) - [ErrorIfAnyNullOrZero](/v1/docs/errorifanynullorzero) - [Deep Dive – Error Handling in Scripts](/v1/docs/deep-dive-error-handling-in-scripts) - [Deep Dive - Logging in DataJet](/v1/docs/deep-dive-logging-in-datajet)