Skip to main content

Importing and Exporting Table Rows

Rows belong to an environment, not to the draft. Export rows from an environment to back them up or edit them, import rows into a lookup table's environment to load or replace data, and delete rows you no longer need.

Export rows or a definition​

You need permission to export lookup tables.

  1. In the left toolbar, select Tables, then select the Lookup or Data tab.
  2. Select the table, then select Export in the application toolbar. You can also open the table's menu in the table list and select Export.
  3. Select what to export:
    • Environment rows exports the rows of one environment.
    • Definition — columns and keys exports the columns, keys, and Secure settings as JSON, with no rows.
  4. For rows, under Format, select CSV or JSON. With JSON, Include columns and keys adds the definition to the file, and is selected by default.
  5. Under Rows from or Definition from, select the environment, or the draft for a definition.
  6. Select Export.

The rows file downloads as <table name>-<environment>.csv or .json. Secure values are exported as ***, so the file is not a backup of secure data. Large tables can take a while; select Cancel to stop.

tip

To edit rows and import them again, use JSON. Opening a CSV in Excel can change values such as 007 or long IDs.

Import rows into a lookup table​

Rows can be imported into lookup tables only, and only by a table approver.

  1. Open the lookup table and select Development or Production in the Environment list.
  2. Select Import rows.
  3. Select or drag a CSV or JSON file into the upload area. The first row of a CSV file is used as the header.
  4. Under Mode, select one:
    • Merge (add or update by key) adds new rows and updates existing ones by key. Rows not in the file stay. Columns missing from the file keep their stored values, and *** keeps a stored masked value.
    • Replace all rows removes every row stored in the environment that isn't in the file. In Production, type the table name to confirm.
  5. Select Import, or Replace rows.

The file is checked first. If any row is invalid, nothing is written.

Delete rows from a lookup table​

Rows can be deleted from lookup tables only, and only by a table approver. Deleting is permanent; the table definition stays.

  • One row. Select the row to open Row details, then select Delete row and confirm.
  • Selected rows. Select the rows' checkboxes, select Delete selected rows, and confirm. You can delete up to 1,000 rows at a time. The header checkbox selects every row on the current page.
  • All rows. Select Delete all rows, type the table name, and confirm. This includes rows on other pages and rows hidden by search.

How you know it worked​

  • Export: Studio shows "Exported table from environment." and the file downloads.
  • Import: The dialog shows "N rows imported to environment." After a replace that removed rows, it also shows how many were removed. Select Done, and the grid shows the imported rows.
  • Delete: Studio shows "Row deleted from environment." or "N rows deleted from environment." and the grid reloads.

When it does not work​

SymptomCauseWhat to do
Import rows says "Rows can only be imported into lookup tables."The table is a data table. Workflows write its rows at runtime.Use Data Tables activities.
Import rows says "Only an approver can import rows."You are not a table approver.Ask an approver to import the file.
Import rows or Delete all rows says "No table approvers are configured. Add them in Settings → Workspace → Governance."The workspace has no table approvers. Row checkboxes are hidden too.Ask a workspace admin to add approvers.
Import rows does not appearThe draft view is selected. The draft holds no rows.Select Development or Production.
The dialog shows a report of problemsOne or more rows are invalid, so nothing was written.Review the report, download it as CSV, fix the file, and import again.
"Import paused — sensitive fields require protection review"Columns in the file look sensitive and need a protection review.Close the import, resolve protection in the draft's columns, and review the release impact before you import the file again.
"An earlier release of table hasn't finished. Finish or retry that release, then import."A release of the table did not complete.Finish or retry the release, then import.
"Couldn't delete the rows. Select Refresh rows, then try again."The delete failed. The rows are kept.Select Refresh rows, then try again.
Delete row says "The row's complete, unmasked key is required to delete it."A key value of the row is empty, or is masked and the server did not send a handle for the row.Remove the row with an Import rows > Replace all rows import whose file leaves the row out.