Keboola Writer
The Engeene Writer component loads Storage tables from a Keboola project into an Engeene model. It authenticates with an ordinary Engeene API token, so nothing beyond the token needs to be set up on the Engeene side. What to load and how often is in Loading Best Practices. Once the data is in, read the answers straight from Engeene — in the app, from an AI assistant or from your own code through the TypeScript client or the REST API — rather than copying them back into the pipeline.
Creating the API token
-
Open Users → Tokens in Engeene and click New.
-
Give it a name that says where it will be used, e.g.
keboola-writer. -
The token inherits your own permissions and model access, so create it as a user who may upload data and start a load (Upload data and Ingest) on the target model.
-
Copy the token immediately — it is shown once. It is valid for one year and can be revoked from the same screen at any time.
Paste it into the component's API token field. Keboola stores it encrypted (the field name
begins with #), and it never appears in a job log.
Configuration
| Field | Meaning |
|---|---|
| Engeene URL | Your workspace address, e.g. https://trailspark.eu.engeene.com. HTTPS only, and the address must end in .engeene.com — the API token is sent to this address, so any other address is refused. Paste the address alone, without a user name or password in front of it |
| API token | The token created above |
| Model | The Engeene model the data belongs to |
| Load type | Incremental adds the rows; Full replaces every row of the dataset |
| Table mapping | Which Engeene dataset each Storage table loads into |
| Wait for the data to become queryable | On by default. The job stays running until Engeene has finished importing. Turn it off for a very large load you do not want the job to wait out |
| Wait timeout | How long to wait for that, in seconds. Default 1800 |
Add the tables you want to load to the configuration's input mapping. If you do not map a table
explicitly, the Storage table name is used as the dataset name — in.c-main.orders loads into the
orders dataset.
How a load runs
- Every mapped table is uploaded to Engeene as one or more CSV files. Nothing is visible to queries yet.
- A single import is started for the whole model, so all the tables in one job land together.
- The job waits until the data is queryable, then finishes.
A Full load replaces the dataset in one step — readers never see it empty or half-loaded.
Step 3 is what Wait for the data to become queryable controls, and it is on unless you turn it off. Leaving it on is what makes a green job mean "the data is there": anything you schedule after this one can read the new rows. With it off the job finishes as soon as the import has been started, so a later step in the same orchestration may still read the old data.
If a job fails after some files were uploaded, nothing is lost and nothing is half-applied: the uploaded files stay queued and the next successful run imports them together with the new ones.
Large tables
Tables larger than the upload limit are split automatically; leave Upload chunk size at its default unless a job reports a row larger than a chunk.
Loading data before the component is available
The Engeene Writer is installed from the Keboola component catalogue. Until it appears there, you can load data into Engeene from a Keboola project today using Keboola's own Custom Python Component, which is available in every project.
It loads Storage tables into Engeene exactly as the Engeene Writer does — the same uploads, the same single import, the same wait for the data to become queryable. What you give up is the configuration form: you fill in a JSON block instead of typed fields.
- Add the Custom Python Component to your project.
- Set its code source to the git repository holding
engeene_writer.py, and pin a tag. - Leave the packages list empty — the script needs nothing beyond Python itself.
- Add the tables you want to load to the configuration's input mapping.
- Fill in the parameters:
{
"engeeneUrl": "https://trailspark.eu.engeene.com",
"#token": "your API token",
"model": "sales",
"loadType": "incremental",
"tables": [
{"source": "in.c-main.orders", "dataset": "orders"}
]
}
The field names are the ones the Engeene Writer uses, so when you move to the component itself you copy the same values into its form.
One difference to expect while you are on this route: a failure is reported as a message in the job log rather than as a configuration error, so Keboola may retry a job that cannot succeed. Read the last line of the log — it says what to fix.
Filling in a yes or no field by hand
The Keboola components render their yes/no fields as checkboxes, so you normally never see the value. If
you edit the configuration JSON directly, they accept true/false, yes/no, 1/0 and
on/off, in any capitalisation and with surrounding spaces.
Anything else — an empty value, maybe, 2 — fails the job with a message naming the field
rather than being guessed at. Leaving the field out entirely is always fine: it takes the default
shown in the tables above.
Troubleshooting
| Message | What to do |
|---|---|
| Engeene rejected the credentials | The token expired or was revoked. Create a new one |
| The API token is not allowed to perform this operation | The token's role lacks a permission, or the model is outside its model access |
| Engeene could not find … | Check the model and dataset names against Models in Engeene |
| Engeene is already ingesting model … | Two jobs are loading the same model. Schedule them so they do not overlap |
| Engeene did not finish ingesting … within N seconds | Raise the wait timeout, or turn off waiting and check the result in Engeene |
| contains a row of N bytes | One record is bigger than the upload chunk size. Raise it |
| must be true or false | A yes/no field in a hand-edited configuration holds a value that is not one of the accepted spellings. Remove it to take the default, or set it to true or false |
A job that fails with a message like these is a configuration problem and re-running it unchanged will fail the same way. Anything else is reported as a temporary failure and Keboola may retry it.