Data Import & Export
Lookup Tables support importing and exporting data in multiple formats, making it easy to manage large datasets and integrate with external systems like Microsoft Excel or Google Sheets.
Import Formats
JSON
Full table import/export with metadata
XLSX
Full table import/export with metadata, Excel users
CSV
Quick data imports, simple data structures
CSV Import
The CSV import feature allows you to quickly populate or update your Lookup Table with data from a CSV file.
Accessing CSV Import

Open your Lookup Table in the Designer
Click the three dots next to the Save button
Select Import CSV Data dropdown
The import modal will appear

Import Process
Step 1: Select File
Drag and drop a CSV file onto the dropzone, or click to browse and select a file.
Supported file requirements:
File extension:
.csvEncoding: UTF-8 (recommended) or other common encodings
Delimiters: Comma (
,) or semicolon (;) are automatically detected
Step 2: Preview and Validate
After selecting a file, the system displays a preview showing:
Detected columns: Headers found in the CSV
Column mapping: How CSV columns map to existing table columns
New columns: Columns in the CSV that don't exist in the table
Primary key status: Whether the CSV includes the primary key column

Column Status Indicators:
The system automatically matches CSV headers to existing columns by the column name
Existing
Column matches an existing table column
New
Column will be created (if auto-create is enabled)
Skipped
Column not found and won't be imported
Primary Key Missing
Required primary key column not found
Step 3: Configure Options
Auto-create Columns
When enabled, columns in the CSV that don't exist in the table will be automatically created. The new columns will use the CSV header as both the name and alias.
Step 4: Import
Click Import to process the file. The import behavior:
New rows: Rows with primary keys not in the table are added
Existing rows: Rows with matching primary keys are updated (merged)
Preserved data: Existing columns not in the CSV retain their values
Merge Behavior
CSV import uses merge (append) mode, which means:
Validation and Warnings
The import process validates your data and displays warnings for:
Primary Key Issues:
Missing primary key column: Import cannot proceed
Empty primary key values: Rows will be skipped
Duplicate primary keys in CSV: Only first occurrence is imported

Row Limit:
Exceeds plan limit: Import blocked if result would exceed your row limit
Best Practices for CSV Import
Always include the primary key column in your CSV
Use consistent headers that match your existing column names
Clean your data before import to avoid validation issues
Check the preview carefully before confirming the import
XLSX Import
For full table import including metadata and settings, use the XLSX format.
XLSX File Structure
An XLSX file for Lookup Tables contains two sheets:
Settings Sheet
Export Version
Always 2
Name
Name of the Lookup Table
Rule Alias
Alias for API access
Version
Version number
Status
published or pending
Primary Key Column
Alias of the primary key column
Input Model
JSON structure (if applicable)
Output Model
JSON structure (if applicable)
Rule ID
Unique identifier (auto-generated on import)
Created
Creation date in ISO 8601 format
Tags
Array of tags
Note
Description of the table
Table Sheet
Contains the actual data with:
First row: Column names
Second row: Column aliases
Remaining rows: Data
Importing XLSX
Navigate to Import in the rule list or sidebar
Select your XLSX file
Choose Create New or Overwrite Existing
Review the import summary
Click Import
Import Modes
Create New
Creates a new Lookup Table with the imported data
Create New Version
Adds as a new version of an existing table
Overwrite
Replaces the current version entirely
CSV Export
Export your Lookup Table data as a CSV file for use in external applications.
Exporting to CSV
Open your Lookup Table
Click Export Data in the toolbar
The file downloads automatically
CSV Export Format
The exported CSV includes:
Header row with column names
All data rows
Comma-separated values
Example output:
XLSX Export
Export your complete Lookup Table including metadata for backup or editing in Excel.
Exporting to XLSX
Open your Lookup Table
Click Export in the toolbar
Select XLSX
The file downloads automatically
XLSX Export Contents
The exported file contains:
Settings Sheet: All metadata and configuration
Table Sheet: Complete data with column definitions
Editing in Excel
You can edit the exported XLSX file in Microsoft Excel or Google Sheets:
Export your Lookup Table
Open in Excel/Sheets
Modify the Table sheet data
Keep the Settings sheet unchanged (or update metadata as needed)
Save as XLSX
Re-import into DecisionRules
Do not change the structure of the Settings sheet or modify column aliases unexpectedly, as this may cause import errors.
Primary Key Highlighting
In the exported XLSX, the primary key column is highlighted with a distinct background color for easy identification.
Troubleshooting
Common Import Errors
"Primary key column required"
CSV missing the primary key column
Add the primary key column to your CSV
"Duplicate primary keys detected"
Multiple rows have the same primary key
Remove duplicates from your CSV
"Row limit exceeded"
Import would exceed plan limit
Upgrade plan or reduce data size
"Invalid file format"
File is not a valid CSV/XLSX
Check file format and encoding
"Unknown columns"
CSV has columns not in table
Enable auto-create or remove unknown columns
Encoding Issues
If you see garbled characters after import:
Ensure your CSV is UTF-8 encoded
In Excel, use "Save As" → "CSV UTF-8"
In Google Sheets, download as CSV (automatically UTF-8)
Last updated