Skip to content
  • HELP
  • ERROR MESSAGES
  • DATA_LOAD_CONFIG

Error code: DATA_LOAD_CONFIG

This guide explains why you may experience a data loading configuration error and what potential solutions can solve it.

There are several ways and data file types in which you can import data into RelationalAI’s Relational Knowledge Graph Management System (RKGMS).

See Data I/O for further details. While importing data, several aspects require attention to successfully load certain data. If not properly configured, a DATA_LOAD_CONFIG error is returned. Check out the DATA_LOAD error if the issues are related to how to access the data you want to import.

Note that the cases below apply for every type of supported data file.

Example: Wrong Data Types

Consider the following example:

def config:data = 1
def output = load_csv[config]
Error example from the RAI Console

The import option data is a string specifying the actual data to be loaded. If it is not a string, the error is returned as above.

A correct example could be:

// query
 
def config:data = """
name,age
Patrick, 30
"""
def output = load_csv[config]

Note that this example can also occur when you have previously defined config:data within your database. Check your database for derived and base relations if this might be the case.

Example: Data Is Not Defined

It may happen that you have not defined the data itself, through the import option data, or the location from where to import it, through the import option path. In these cases, the error “DATA_LOAD_CONFIG” is returned.

Consider the following example:

module config
 def schema = {
 (:cocktail, "string");
 (:quantity, "int");
 }
end
 
def output = load_csv[config]
Error example from the RAI Console

In the example above, the import option schema is defined, but not how to obtain the data. The correct way to do it could be something like this:

// query
 
module config
 def path = "azure://raidocs.blob.core.windows.net/csv-import/simple-import-4cols.csv"
 
 def schema = {
 (:cocktail, "string");
 (:quantity, "int");
 (:price, "decimal(64, 2)");
 (:date, "date");
 }
end
 
def output = load_csv[config]
Was this doc helpful?