Skip to content
v2.7

Import and export

Import rows from CSV and Excel (.xlsx) into a table from the console, with analysis of the whole file before writing, a report, undo and export.

Owbase imports rows from CSV and Excel (.xlsx) into a table and exports the table in the same formats. The import reads and checks the whole file before writing any row, shows what will happen and asks for your decision on whatever doesn’t match. Everything runs in the background: you can close the browser and come back later.

In the console:

  • Database → table → Rows: Import and Export buttons.
  • Database → Imports and exports: the project’s history, with each task’s report, the files to download, Cancel the task, Resume and Undo the import.

The same thing through the API is in Import and export API. You can also import and export from the command line (owbase data, with exit codes for scripts and CI) and through chat (Claude, Cursor and VS Code connected via MCP).

The wizard has seven steps: File → Columns → Conversions → Relationships → Mode → Analysis → Run. You can go back without losing what you’ve done, and reloading the page doesn’t lose the analysis.

Accepted formats: .csv, .txt and .tsv (delimited text) and .xlsx. Old .xls spreadsheets, .ods and .xlsm (with macros) are refused: open them in Excel and save as .xlsx or CSV. The file uploads in 5 MB parts; if a part fails, only that part is resent.

Owbase detects the following on its own and you change it on screen (the sample is re-read):

What How it’s detected Options
Encoding BOM at the start; without a BOM, UTF-8 if the first 1 MB is valid UTF-8, otherwise Latin-1 UTF-8, Latin-1 (Windows-1252), UTF-16 LE, UTF-16 BE
Separator whichever appears the same number of times in the first 50 rows comma, semicolon, tab, pipe
Header first row all text, with no repeated names on or off (without a header, the columns become “Coluna 1”, “Coluna 2”…)
Sheet (xlsx) the first one any sheet in the workbook, including hidden ones

You can also skip rows before the header (spreadsheets with a title at the top). Quotes follow the CSV standard (" with "" for quotes inside the text; a line break inside quotes is valid).

In xlsx, each cell comes with its type (number, text, yes/no, date by the cell’s format). A formula counts by the result stored in the file: a formula with no stored result becomes a row error (“open and save in Excel”). A merged cell counts only in its first cell.

Each table column receives a file column, a fixed value (the same in every row) or nothing (the column’s default value stays). The initial suggestion comes from the name (ignoring accents, case, spaces, _ and -). File columns with no target are ignored and listed.

  • System fields: $id (keep the row IDs from another system, up to 36 characters; without it the ID is generated) and $createdAt/$updatedAt (preserve the creation and update dates).
  • Required: a required column with no source and no default value blocks you from moving on. In Update only mode it’s just a warning: the row that already exists has a value.
  • Save mapping: stores columns, conversions, relationships and mode under a name, per table. On the next import, choose the saved mapping. Saving with the same name replaces the previous one.

General rules for all columns, and each column can override its own. An empty cell (or one with only spaces, with Trim spaces at the ends on) means “no value”.

Column type What the file can contain Rule
integer, big integer 1234, 1.234 or 1,234 (thousands), -5 no decimal part; respects the column’s minimum and maximum; beyond ±9,007,199,254,740,991 it’s refused (can’t be stored without loss)
decimal 1.234,56, 1,234.56, 1234.56, 1e3 decimal separator automatic per column, or comma, or period
yes/no sim/não, s/n, verdadeiro/falso, true/false, yes/no, 1/0, x editable “yes” and “no” lists; case and accents don’t matter
date and time ISO 8601, dd/mm/yyyy[ hh:mm[:ss]], mm/dd/yyyy…, yyyy-mm-dd…, Excel serial number, Unix (seconds or milliseconds), xlsx date automatic or chosen format; time zone for dates with no time zone (default America/Sao_Paulo); stored in UTC
options list (enum) text equal to an option (ignoring case and accents) or via the mapping built on screen; with no match, the row fails
email, URL, IP text validated as the database validates
text text up to the column’s size: longer text is an error, never cut
list (column with several values) a;b;c list separator (default ;, or | when the file uses ;); each item converted by type
point, line, polygon database JSON, WKT (POINT(lng lat)) and, for a point, lat,lng or lng,lat pair order chosen on screen
relationship text see Relationships

Automatic decimal separator and date format look at the first 1,000 rows of each column: 1.234,56 decides comma; 31/12/2025 decides DD/MM/YYYY. ISO 8601 (2025-12-31T10:00) is always accepted, whatever the format. An ambiguous sample (only 01/02/2025, with no day above 12) falls back to your account’s default (Portuguese: DD/MM/YYYY and comma; English: MM/DD/YYYY and period) and the analysis warns you.

Remove the leading apostrophe (on by default) removes the ' that Excel and Owbase’s export put before =, +, - and @.

An encrypted column receives values normally, but can’t be a key column or a relationship match field.

For each relationship column, choose in which field of the related table the file’s value is looked up. Example: the file’s customer column holds the email, and Owbase looks in the email field of the customers table. The wizard already suggests the field from the sample: when the values don’t look like IDs (emails, for example), it chooses the related table’s text column that matches by content or name, preferably one with a unique index; otherwise it falls back to the row ID ($id).

Uppercase and lowercase: by default the match is not case-sensitive and ignores spaces at the ends: [email protected] in the file finds [email protected] in the table. Accents still matter (José doesn’t find Jose). Check Case-sensitive match on the column to match letter by letter. The option applies to text fields (text, email, URL, IP, enum); the row ID ($id) always matches exactly. To match without case sensitivity, Owbase reads the related table’s column once; a table too large for that (hundreds of thousands of rows) matches exactly, and the analysis warns you.

  • Found one row: the relationship links to it.
  • No row: the value is missing and you decide in the analysis what to do.
  • More than one row: ambiguous, a row error. Without case sensitivity, [email protected] and [email protected] in the related table make the file’s [email protected] match both: the row goes to the rejected rows with the reason (“the value matches 2 rows in customers ignoring case”) and is never written on a guess. Fix the duplicate records or check Case-sensitive match.
  • A relationship with several rows (one-to-many on the parent side, many-to-many): the cell is a list with the list separator, and each item matches on its own.
  • A table that points to itself matches only rows that already exist (not new rows from the same file).
Mode What it does
Create only Every row in the file becomes a new row.
Update only Finds the row by the key column and changes only the columns with a target. A key that doesn’t exist in the table: the row is skipped (with the reason).
Create or update Updates when the key exists, creates when it doesn’t.

Key columns (one or more, or $id): must come from a file column and can’t be a relationship, list, coordinates or encrypted column. An empty key is a row error. A key repeated in the file: the first occurrence counts and the following ones go to the rejected rows. A key that matches more than one table row is an error.

Case-sensitive key comes checked (the safest): ABC and abc are different keys. Unchecked, abc in the file finds ABC in the table, file keys that differ only in case count as repeated, and a key that matches more than one row (abc and ABC in the table) is a row error, with the count.

Fast update (only in Update only or Create or update, and on a table without a relationship column; off by default): writes the updates in batches of 100 at once, much faster than writing in a transaction. Before turning it on, know what changes:

  • webhooks, functions and realtime receive the rows.*.upsert event instead of rows.*.update;
  • an edit made by someone else to a row during the import may be undone;
  • a row deleted during the import may come back.

Undo works the same with or without it.

Options:

  • Empty cell when updating: keep the current value (default) or clear the value.
  • When a row has an error: skip the row (default; it goes to the rejected rows) or stop at the first error (what was already written stays, and the report says how far it got).
  • Permissions of new rows: the table’s apply. With row security on, you can give fixed permissions to the created rows.

Analyze the file reads the whole file in the background, converts each row and looks up the keys and relationships in the table. Nothing is written. The result shows:

  • rows read, valid, with errors and malformed (open quotes, a number of columns different from the header);
  • how many would be created, updated and skipped;
  • errors by type and by column, with up to 20 examples of each (row, value and reason);
  • repeated values in unique-value columns, in the file or already in the table;
  • for each relationship: values found, missing (up to 1,000 on screen; Download all gives the whole list), ambiguous (the value and how many records it matches), affected rows and whether it matched case-sensitively or not;
  • warnings: key without an index, ignored columns, ambiguous decimal separator or date format;
  • the import’s request estimate (Usage).

The analysis is a forecast: the import checks everything again, and the report is what counts. If the table’s columns change after the analysis, the import is refused with “run the analysis again”.

For each relationship with missing values, choose:

Decision What happens
Create the missing ones Before importing, Owbase creates the rows in the related table with the match field equal to the file’s value. Required columns of the related table ask for a fixed value on screen. Off when the related table has a required relationship, or when it’s the table itself (the reason is shown).
Skip these rows The rows go to the rejected rows with the reason (for example, “customer not found”).
Import with an empty relationship The row goes in without that relationship. Off when the column is required. In a relationship with several rows, the items found stay and the missing ones are left out.

The preview shows the first 20 rows already converted, with the relationship resolved. A cell with an error is red (hover to see the reason), and a row that would be skipped appears struck through, according to your decisions. Import is enabled when every relationship has a decision; the number on the button already discounts the rows that the Skip these rows decision removes, and the screen says how many will be skipped.

The import writes in two phases: first it creates the missing related rows (“create” decision), then it writes the rows, in chunks of 100 with up to 4 chunks writing at the same time (the file’s order holds for repeated keys, for the report and for the undo). Progress appears live: phase, rows processed out of the total, rows per second, time left and the counters. You can leave the screen: the task keeps running on the server, and a notice appears when it finishes while you’re in the console.

If the project already has a running task, the new one waits in the queue and shows its position (“#2 in queue”).

  • Cancel the task: stops after the current chunk (up to 100 rows). What was already written stays, and you can undo later.
  • Resume: appears when the task stopped because the temporary key was deleted or expired. Resuming creates new keys with your session and continues from where it stopped, without duplicating rows.
  • If the service restarts in the middle, the task continues on its own from where it stopped. Created rows get IDs derived from the task and the file’s row, so starting over doesn’t create repeated rows.

Each task’s report shows created, updated, skipped, with errors, related rows created (per table), total time, requests made, who requested it, the file and the configuration. The final state is Done, Done with errors, Failed or Cancelled.

Download rejected rows gives you the rows that didn’t get in, in the same format as the uploaded file (CSV becomes UTF-8 CSV with BOM and the same separator; xlsx becomes xlsx), with the original columns plus two:

Column Content
error_line The row in the original file.
error_reason Why the row didn’t get in.

The columns are named error_line and error_reason, the xlsx sheet is Rejected and the file is rejected.csv or rejected.xlsx when the task was requested in English (the language of the request that created it: setLocale('en'), Accept-Language: en or the console in English). If it was requested in Portuguese, they are erro_linha, erro_motivo, Rejeitadas and rejeitadas.csv/.xlsx. The file of missing values follows the same language (missing-N-….csv in English, faltantes-N-….csv in Portuguese). The original columns’ content doesn’t change.

Fix the file and use Import again with the fixed file: the wizard opens with the same configuration and leaves both error columns out on its own, in either language (error_line and error_reason, or erro_linha and erro_motivo).

Each click on download creates a new link, valid for 24 hours.

Undo the import (in the import’s report) returns the table to how it was before it:

  • deletes the rows created by the import;
  • restores the updated rows to their earlier values, only in the columns the import changed;
  • deletes the related rows created by the “create the missing ones” decision, if no other row uses them.

When you can undo:

  • only imports that finished (done, with errors, cancelled, or failed after writing something);
  • up to 7 days after the end (the report shows the deadline and how much would be undone);
  • once per import. If the undo is cancelled or fails, requesting it again continues from where it stopped.

What is skipped, and why:

Skipped Reason
Row changed after the import Undoing would delete or overwrite a change made later (by you, by the app or by another import). Owbase compares the row’s update date with the time the import wrote it.
Row already deleted There’s nothing to undo.
Related row still used by another row Deleting it would break that row’s relationship. It also stays when it can’t be checked who uses it.

The skipped ones go to a file (Download skipped rows) so you can check them by hand. An edit made in the same second the import wrote the row isn’t seen as a later change.

The undo is a task of its own, with progress, cancel and a report (removed, restored, skipped, related rows removed and kept). It takes the same slot of the project’s “1 task at a time”: if another task is running, it waits in the queue. The history links the import to its undo.

When an import, an undo or an export finishes (in any state), whoever started it receives an email with the summary:

  • Who receives it: only whoever started the task with the console session, at the account’s email. A task created by an API key sends no email. The analysis sends no email.
  • Language: your account’s language preference (Portuguese or English); with no preference, the browser’s.
  • Content: type, table and state; created, updated, skipped and with errors (import), removed, restored and skipped (undo) or rows exported (export); total time; and the link to the report in the console.
  • It never includes cell content or a download link: the files stay in the console, behind your session.

Export on the Rows tab opens the options:

  • Columns and order: check and drag (or use the arrows). Includes $id, $createdAt and $updatedAt; each row’s permissions are optional.
  • Filters: Use the grid’s filters and order exports only what the grid shows; with no filter, the whole table.
  • Relationships: which field of the related table goes in the file (default: $id; for example, the customer’s email). A relationship with several rows becomes a list with the list separator.
  • Format:
    • CSV ready for Excel: UTF-8 with BOM, CRLF line endings, ; separator and , decimal in Portuguese (, and . in English), changeable; dates in ISO 8601 or DD/MM/YYYY hh:mm:ss in the chosen time zone.
    • Excel (.xlsx): numbers as numbers, yes/no as boolean, dates as Excel dates in the chosen time zone. An integer with more than 15 digits goes as text (Excel would lose precision). A cell over 32,767 characters (Excel’s limit) is cut and counted in the report. Up to 1,048,575 rows.
  • Protect against formulas (CSV, on by default): text that starts with =, +, -, @, tab or carriage return (CR) gets a ' in front, so Excel doesn’t run it. The import removes that '. In xlsx the text always goes as text, never as a formula.

The export becomes a task with progress and the Download the file button. The link is valid for 24 hours; a new link comes out of the history while the file exists. If the table goes over the row limit, the task ends as Failed with the first rows in the file: filter the table (or, for xlsx, export as CSV).

Per project:

What Starter and Pro Scale
File size 50 MB 200 MB
Rows per import and per export 500,000 2,000,000
Tasks at the same time 1 2
Retention of files and reports 30 days 90 days

Tasks at the same time counts import, export and undo; the others wait in the queue. The analysis doesn’t take the slot: it runs alongside, one at a time.

Need more? Contact Openwave: all four limits can be raised for your project.

Technical limits:

  • upload in 5 MB parts; up to 5 uploaded files not yet analyzed per project;
  • up to 20 tasks waiting in the queue per project;
  • up to 1,000 columns per file; a CSV row of up to 1 MB;
  • download link valid for 24 hours;
  • undo up to 7 days after the import ends.

There is no separate charge. The task reads and writes to your project’s database like any API client, and each request counts as a request of the project (and bandwidth counts as bandwidth). The analysis shows the estimate before importing and the report shows the requests made.

How the import writes, per 100 rows:

Case Requests per 100 rows
Create on a table without a relationship 1 (one batch)
Create on a table with a relationship 3 (open, send and confirm a transaction)
Update 3 (transaction), plus the key lookups

Examples for 500,000 rows: create only without a relationship ≈ 5 thousand requests; with a relationship ≈ 15 thousand; update ≈ 15 thousand plus about 4 thousand key lookups. The analysis also does lookups (keys and relationships), and the export reads 1,000 rows per request. The plan includes 1 million requests per month (plan and pricing).

The task uses no platform credential: it runs with a temporary API key of your project, created with your credential at the moment the task is born, with only the scopes it needs (analysis and export: tables.read and rows.read; import and undo: also rows.write).

From the console, the task uses two keys, which appear in API keys while it exists, with the Temporary (import/export) badge:

Key What for
Importação · table (or Análise, Exportação, Desfazer importação) Reading and writing the task’s rows.
Importação · table · remoção Deleting the key above, and itself, at the end.

The key names are generated in Portuguese.

  • The ID starts with dados-; the description says who authorized it and when.
  • They disappear on their own within a minute after the task ends (done, with errors, cancelled). If something prevents that, they expire on their own: 6 hours for the analysis, 48 hours for the others (counting the queue).
  • Deleting one by hand interrupts the task, which stops with “the task’s temporary key was deleted or expired”. Resume creates new keys and continues from where it stopped.
  • Your account must be able to create API keys in the project. Without that, the task doesn’t start: ask whoever administers the project.

Through the API with an API key, the task uses short-lived keys that don’t appear in the list: see Credential.

  • The uploaded file not used in an analysis disappears in 24 hours.
  • The uploaded file, the rejected rows, the missing values, the export and the task itself in the history disappear in 30 days (or the period agreed with Openwave).
  • The record that lets you undo an import disappears in 7 days, or when it’s undone.
  • Deleting the project deletes all of this immediately.

The files live in an Owbase space separate from your Storage: they don’t appear in your buckets and don’t count toward your storage.

  • Create an index on the key column before updating by it. Without an index, each lookup scans the table and the import gets slow; the analysis warns you and the console offers the Create index shortcut.
  • Tables with a relationship write more slowly: the database doesn’t accept a batch on a table with a relationship column, so the import uses transactions (3 requests per 100 rows, instead of 1).
  • Save the mapping of imports that repeat: the next one starts ready.
  • A Brazilian Excel file saved as CSV usually comes in Latin-1 with ;: check the encoding and separator in the sample before moving on.
  • Test with a piece of the file first, in a test table, and check the report.
Was this page helpful?