# ErrorMode

This error variable determines what action is to be taken by QlikView when an error is encountered during script execution.

Syntax:

ErrorMode

Arguments:

ErrorMode arguments

| Argument | Description |
| --- | --- |
| ErrorMode=1 | The default setting. The script execution will halt and the user will be prompted for action<br>(non-batch mode). |
| ErrorMode<br>=0 | QlikView will simply ignore the failure and continue script<br>execution at the next script statement. |
| ErrorMode =2 | QlikView will trigger an "Execution of script<br>failed..." error message immediately on failure, without prompting<br>the user for action beforehand. |

Example:

`set 
 ErrorMode=0;`

## Learn more

* [Error variables](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ErrorVariables/ErrorVariables.htm)