Skip to content

Error Codes

Error Codes

datarelix.ai sorts errors into five classes for recovery UX:

  • NO_RESULTS — the question was understood but produced no useful data.
  • TIMEOUT — execution exceeded its time limit.
  • PLAN_FAILURE — the LLM could not produce a valid plan.
  • CONNECTION_FAILURE — the database could not be reached.
  • INTERNAL — generated SQL/code was invalid, sandbox crashed, or the LLM returned malformed output.

Every error event in the run stream carries an error_code that maps to one class.

NO_RESULTS

CodeMeaningRecovery
MISSING_TABLEGenerated SQL references a table not in scopeAdd the missing table to scope and retry.
MISSING_COLUMNGenerated SQL references a column that doesn’t existCheck your table selection or rephrase.
TYPE_MISMATCHImplicit cast failedRephrase to avoid mixing incompatible types.

The frontend surfaces these as “broaden your question” suggestions.

TIMEOUT

CodeMeaningRecovery
SQL_TIMEOUTDatabase query exceeded SQL_TIMEOUT (default 30s)Add date filters or narrow scope.
SANDBOX_TIMEOUTSandbox Python step exceeded the wall-clock capSimpler analysis or reduce data volume.

PLAN_FAILURE

CodeMeaningRecovery
NOT_ANSWERABLELLM determined the question can’t be resolved with available dataRephrase or add context.
AMBIGUOUS_QUERYMultiple valid interpretationsBe more specific.

The frontend offers an editable retry — your question stays in the input ready to revise.

CONNECTION_FAILURE

CodeMeaningRecovery
CONNECTION_ERRORDatabase unreachableTest from sidebar; check credentials.

The frontend’s recovery banner has a “test connection” button.

INTERNAL

CodeMeaning
SQL_SYNTAXGenerated SQL didn’t parse
SQL_VALIDATIONGenerated SQL failed our validation rules
SQL_EXECUTIONDatabase returned an error
SANDBOX_CODE_ERRORPython in the sandbox raised
SANDBOX_OOMPython in the sandbox exceeded memory cap
LLM_INVALID_OUTPUTLLM returned malformed IR

Most internals trigger an automatic repair attempt up to the configured budget. After the budget is exhausted you’ll see the underlying error.