# Error variables

The values of all error variables will exist after the script execution. The first variable, ErrorMode, is input from the user, and the last three are output from QlikView with information on errors in the script.

Use the drop-down on each function to see a brief description and the syntax of each function. Click the function name in the syntax description for further details.

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

#### ErrorMode

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

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

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

#### ScriptError

This error variable returns the error code of the last executed script statement.

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

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

#### ScriptErrorCount

This error variable returns the total number of statements that have caused errors during the current script execution. This variable is always reset to 0 at the start of script execution.

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

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

#### ScriptErrorList

This error variable will contain a concatenated list of all script errors that have occurred during the last script execution. Each error is separated by a line feed.

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