Exit status of scripts

This section describes the exit status for a script execution.

For information about the message codes and exception messages of connectors, refer to Message codes, exception messages, and limitations for connectors.

Overview of the exit status

The exit status is a value returned to the tool that executed the script when the script ends.

When the return value for the End operation of the script is specified, that value is returned. When no value is specified, the return value specified automatically by the system is returned.

10000 or more

System-defined successful completion.

These values are reserved as the exit status for system-defined successful completion.

1 to 9999

User-defined successful completion.

These values are used as the exit status for user-defined successful completion. When a value from 1 to 9999 is specified as the return value for the End operation, this value is used as the exit status.

0

Successful completion (default).

This value indicates the exit status for default successful completion.

–1 to –9999

User-defined error.

These values are used as the exit status when a user-defined error occurs. When a value from –1 to –9999 is specified as the return value for the End operation, this value is used as the exit status.

–10000 or less

System-defined error.

These values are reserved as the exit status when a system-defined error occurs.

–10101

The exit status returned when component execution fails.

–10102

The exit status returned when script loading fails.

–10103

The exit status returned when the script input value is invalid.

–10104

The exit status returned when the script is rolled back.

–10105

The exit status returned when script execution is interrupted.

–10201

The exit status returned when script execution fails due to a transaction failure.

–10301

The exit status returned when the user doesn't have the permission to execute the script.

–20001

The exit status returned when script execution fails due to an unidentified cause.

–20002

The exit status returned when script execution fails due to an unexpected failure.

–20003

The exit status returned when the connection fails.

–20004

The exit status returned when a problem occurs in thread management.

–20005

The exit status returned when the specified timeout period expires before the script ends.