Skip to main content
Version: 0.6 (Latest)

Exit Codes

LakeXpress returns a structured exit code so that schedulers (cron, Airflow, Control-M, …) can react to the cause of a failure. Codes are grouped by range:

RangeMeaning
0Success
1Unexpected error
10–19Configuration and setup — fix the configuration
20–29Input validation
30–39Operational — fix the environment
40–49Execution — some or all work failed
50–59Interruption

Codes returned​

CodeNameMeaning
0SUCCESSAll operations completed successfully.
1GENERAL_ERRORGeneric or unexpected error.
10CONFIG_ERRORInvalid configuration, malformed credentials file, or missing required setting.
11AUTH_ERRORAuthentication or authorization failure.
12CONNECTION_ERRORConnection to the source or LakeXpress database failed.
13LICENSE_ERRORLicense validation failed (invalid, expired or missing), a source with use_adbc: true has no ADBC driver license, or FastBCP rejected its licence during the export (FastBCP exit code 99 or 100). In the last case the run stops at the first job that fails this way and the other jobs are not started.
21FILE_NOT_FOUNDA required file was not found.
30FASTBCP_NOT_FOUNDFastBCP is not configured (no --fastbcp_dir_path and no bundled engine/ directory) or its executable is missing from the configured directory.
31INIT_DB_ERRORLakeXpress database initialization, truncation or drop failed.
34FASTBCP_VERSION_UNSUPPORTEDThe FastBCP version is older than the minimum LakeXpress supports (see Installation).
40PARTIAL_FAILURESome export jobs failed, others succeeded. Resume the run to retry the failed jobs.
41ALL_JOBS_FAILEDEvery export job of the run failed.
44NO_TABLES_FOUNDNo table matched the source schemas and patterns.
45RUN_NOT_FOUND--resume found no run to resume (or the given --run_id does not exist), or sync[publish] found no completed export run.
46PUBLISH_FAILUREThe export succeeded but publishing had failures (sync), or publishing failed (sync[publish]).
47EXPORT_AND_PUBLISH_FAILURESome export jobs failed and publishing had failures.
50USER_CANCELLEDThe user interrupted the operation (Ctrl+C).

When every export job fails (41), sync does not publish.

Reserved codes​

These codes are defined for future use. LakeXpress does not return them yet; schedulers can already treat them by range.

CodeNameMeaning
20VALIDATION_ERRORInvalid argument or format.
22PERMISSION_ERRORFile or directory permission error.
32SCHEMA_DISCOVERY_ERRORTable or schema discovery failed.
33STORAGE_CONFIG_ERRORStorage configuration error (S3, GCS, Azure, …).
42TIMEOUT_ERROROperation timeout.
43JOB_CREATION_FAILEDExport jobs could not be created.

The FastBCP checks (codes 30 and 34) run before an export (sync, sync[export], run). sync[publish] does not need FastBCP and skips them.

Copyright © 2026 Architecture & Performance.