Invantive Data Hub ends with an exit code which says whether the run succeeded. A scheduler or batch file decides on that code whether the next step may run.
| Code | Meaning |
| --- | --- |
| 0 | Successful. |
| 1 | Warning: something was reported, but the program completed. |
| 2 | User error, such as a statement which the engine refused or a platform which returned an error. |
| 3 | System error, raised by code outside Invantive, such as a file error of the operating system. |
| 4 | Failure while starting or while making the first connection. |
| 5 | Fatal error. A command line argument in an invalid format ends here, with `itgendhb002`. |
| 6 | Unhandled exception; the program met a situation it could not resolve. |
| 7 | The application was closed because it may not be used, for instance when no licence key is configured or the agreement has not been accepted (`itgenlic681`). |
| 8 | No exit code available. |
| 9 | The program could not start at all. A missing or unreadable `appsettings` file ends here, with `itgencuy002`; see [[Invantive Data Hub/Configuration|Configuration]]. |
The last line of the output names the code before the program ends, as `itgendhb041: End program execution with exit code 0.`, followed by `itgendhb068: Program finished`.
Codes 0 through 4 are the outcome of the run itself; 5 through 9 mean the run never properly took place.