HELP
Overview
This guide describes how the most common RelationalAI errors are reported in the RAI Console and the RelationalAI SDKs.
RAI Console
If you experience an error while using the RAI Console, the output returns the following fields:
Field | Meaning |
---|---|
Code | Type of issue encountered. See the full list of errors. |
Message | A short description of the problem. |
Transaction-id | Transaction ID. See Transactions. |
Report | Full detailed information on the cause of error. |
This is an example:
RelationalAI SDKs
If you experience an error while using any of the RelationalAI SDKs, the output returns the following fields as a JSON string:
Field | Meaning |
---|---|
error_code | The type of issue encountered. See the full list of errors. |
is_error | Whether an error occurred or there was some other problem. |
is_exception | Whether an exception occurred or there was some other problem. |
message | A short description of the problem. |
path | A file path for the cases when such a path was used. |
report | Full detailed information on the cause of error. |
type | The type of problem, for example, "ClientProblem" . |
This is an example using the RelationalAI SDK for Python:
{
"is_error": true,
"error_code": "PARSE_ERROR",
"path": "",
"report": "1| def output = {1;;2;3}\n ~~^~\n\nwhile parsing:\n 1. expr ::= expr \";\" expr\n 2. expr ::= expr \";\" expr\n 3. expr ::= \"{\" expr \"}\"\n\nUnexpected \";\" found.\n\n",
"message": "parse error",
"is_exception": false,
"type": "ClientProblem"
}
See the Result Structure section in any of the RelationalAI SDKs for more details.
List of Error Codes
Error Code | Description |
---|---|
ARITY MISMATCH | Arity mismatch errors. |
BASE DERIVED OVERLOAD | Overloading error of base and derived relations. |
DATA LOAD | Data loading errors. |
DATA LOAD CONFIG | Data loading configuration errors. |
EXCEPTION | Execution errors. |
EXCEPTION - Ungrounded Variable | A variable has not been correctly instantiated. |
IC VIOLATION | Integrity constraint violations. |
NON FORMULA IC BODY | The integrity constraint is not well defined. |
PARSE PROBLEM | Rel syntax errors. |
PARSE PROBLEM - Reserved Keyword | Reserved keyword errors. |
SHADOWED VARIABLE | Same naming for different variables. |
UNTYPED VARIABLE | The variable type cannot be inferred. |
UNDEFINED | A variable has not been correctly defined. |
VARARGS | The argument arity is not a finite number. |
Was this doc helpful?