Data updates
Uploading new waves: Since DataLion 2026.2.198, the upload recognises which waves are already in the table and stops on a duplicate wave. With Update with release you check new data in the dashboard before anyone else sees it. Both are described in Upload new waves without duplicating data.
To learn how to upload your data into a data source for the first time, see here. If you need help getting started with the project, you will find a detailed guide here.
There are several options for updating data in a data source:
-
Manual zero-downtime update (recommended; updates are loaded into a new data source and the data sources are then renamed)
Advantages:-
Backup of the data
-
No downtime of the dashboards
-
Data can be uploaded and only released later
-
-
Automatic zero-downtime update (recommended; updates directly in the data source by means of an automated upload procedure)
Condition: currently only possible with the upload setting “Replace table”
Advantages:-
Backup of the data
-
No downtime of the dashboards
-
-
Manual update directly in the data source (not recommended, as no backup is created)
Data can be imported directly into a data source and overwrite it or be appended to it. All the necessary options can be found below.
General procedure:
-
Under Admin → Projects, open the project, choose Data Sources → All data sources and click the data source you want to update.
-
Under Data Upload, drag the file onto Drop your data files here, or click the field and pick the file. Several files at once are possible, see Upload several files into one table.
-
In the comment field, you can enter notes about the version (e.g. updated on xx.xx.xxxx) to keep track of your data
-
Click Upload and preview to see the preview of your data
-
Select the desired upload settings
-
Only if you want to upload completely new data into a project can you select the “Generate codebook after import” option. Caution: This overwrites the existing codebook, which can no longer be restored! We therefore recommend that you download the codebook before the data update.
-
Update strategy:
-
Regular update (manual update straight into the live table)
-
Zero-downtime update (automatic zero-downtime update)
-
Update with release: the data goes into a staging table and only goes live once an administrator releases it, see Update with release.
-
-
Replace or append
-
Replace table: The data already uploaded is overwritten by the new data. This option is needed when a complete dataset is provided with every upload.
-
Append to table: The selected data is appended to the data already uploaded. This option is needed when the uploaded data is to be supplemented, for example, with new monthly or quarterly data
-
Merge (from release 2026.3.200): cases with the same ID take the values from the new file. Whatever the file leaves empty or doesn’t contain is kept, and cases with a new ID are appended. Under Match cases by, choose the ID column, optionally plus a second column such as the wave. This updates a tracker without replacing the table, see Update a tracker with Merge.
-
-
The additional settings offer the following further options
-
Ignore first row
-
Run calculations automatically after the upload:
If you have stored calculations for this data source, you can use this option to have them run automatically after the upload. -
Handling of column types*
-
Optimize column types and lengths (default; usually correct): The optimal column types and lengths are optimized automatically
-
Optimize column lengths: only the column lengths are optimized automatically
-
-
Upload option “How do you want to upload the data?”
-
Upload Now (default): the import runs in the background while a window shows “Upload is still running”. When it finishes, DataLion reports the number of uploaded rows and opens the data source again. Large files no longer fail on a request timeout.
-
Upload with notification: the import also runs in the background, but you can leave the page right away and get a notification once it is complete. Very large datasets are best uploaded as a .zip file.

-
-
-
-
Click Save to start the upload
*More information on the handling of column types
-
Standard import:
-
Technical implementation: VARCHAR(255)
-
I.e. a field length of 255 is set for every variable
-
The overall limit of the column lengths is 65,535. This is reached at approximately 85 columns. E.g. 92 columns x 255 characters x 3 bytes => 70,380
-
-
Optimize column lengths:
-
Technical implementation: VARCHAR(width)
-
In the database, the field lengths are automatically limited to the actual column width
-
Example: The longest content of a column is “9999” —> The column has a field length of 4
-
This allows wider datasets and improves performance
-
-
Optimize column types and lengths:
-
Technical implementation: type(width)
-
In addition to the field lengths, the field types are also detected automatically
-
In the dataset, empty fields are automatically read in as NULL.
- Background: Numeric columns are created as numeric field types by “optimize column type”. For numeric field types, the possible values in MySQL are numbers and NULL. Unlike with other field types, there is no empty string. With numeric field types, an empty string is interpreted as 0. When excluding empty strings, 0 values would in this case be excluded from the calculations.
-
Example 1: A variable contains text such as Brand1, Brand2, Brand3. The variable type String (varchar) with a field length of 6 is detected.
-
Example 2, integers: A column contains only single-digit numbers. For this column, the variable type tinyint is detected. The field length is set to 4 (not to 1). This is because tinyint is a 1-byte integer. It can have values between 0 and 255 (i.e. a maximum field length of 3) or values between -128 and 128 (i.e. a maximum field length of 4). Tinyint automatically sets the field length to 4, because tinyint(4) requires the same storage capacity as tinyint(1) (1 byte).
-
Upload several files into one table
Since DataLion 2026.3.201 you can load several data files into the same data table in one go, such as the exports of single countries or fieldwork weeks. DataLion reviews and imports them one after another.
- Open the data source as described above.
- Drag all files onto Drop your data files here, or pick them in the file dialog. You can add more files, and take single ones out of the Selected files list with Remove.
- Click Upload and preview.
- Each file gets the usual preview, in the order you selected them. A blue box shows where you are, such as “File 2 of 3: wave_north.sav”.
- From the second file on, the replace-or-append question is replaced by Append this file to the table.
- After each successful import, DataLion opens the next file’s preview automatically.
Excel/CSV, SPSS, Triple-S and Dimensions are allowed, up to 20 datasets per selection. DataLion pairs companion files by the name before the extension: MDD with DDF, and Triple-S (SSS) with ASC or CSV. Up to four MDD/DDF pairs are converted in parallel.
Good to know:
- Each file is saved after its import. If an import fails or you cancel it, the remaining files stop. Files already imported stay in the table.
- With several files, DataLion offers only Regular update and Zero-downtime update. Update with release and importing in the background are not available for a batch.
Review label conflicts and cancel imports
From release 2026.2.199, the upload preview puts the import decisions first.
Label conflicts: When you append data to an existing table and question texts differ from the codebook, the preview shows Review label conflicts. For each question choose:
- Keep separate: the new question becomes its own variable with a suffix you choose (1 to 24 characters).
- Combine — keep existing labels: the data goes into the existing variable, and the codebook texts stay.
- Combine — use incoming labels: the data goes into the existing variable, and the texts from the new file replace the old ones.
Since 2026.3.201 there is a fourth option, match answers by label (listed under “Combine”). It helps when two datasets use the same codes with different meanings, or file the same answer under different codes:
- An answer whose label the question already has takes the existing code, even if the number differs. “Don’t know” = 9 in the new file thus joins “Don’t know” = 98 in the table.
- DataLion moves answers with a new label by the Code offset, for example 100 for the second and 200 for the third dataset. Each dataset gets its own code range, and no answer overwrites another.
- The codebook labels stay, as with keep existing labels.
DataLion suggests the smallest free offset in steps of 100. If an earlier wave already put the same answers in a range, DataLion fills in that offset and preselects the question. For each question the preview shows New codes and Matched by label, such as “9 → 98”. The option is disabled when codes aren’t whole numbers, for dichotomy sets, or when a missing-value range would split. It can’t be combined with Update with release.
Action for all questions and Apply to all set one decision for every conflict at once. DataLion remembers your decisions for later uploads.
Cancel import: While an import is queued or running, Cancel import stops it. Queued imports end at once, running ones at the next checkpoint. Once final publication has started, you can no longer cancel. DataLion cleans up unpublished staging data. Rows that a regular update has already written stay in place; the Import cancelled dialog points this out.