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, ErrorIfAnyNull, 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 is not required.
Parameters
| Key | Value(s) | Description |
|---|---|---|
| method | "StopIfErrors" | Stops the script if verification errors have been recorded. |
| project | "MyProject" | Current project name. |
{
"method": "StopIfErrors",
"project": "MyProject"
}