Export and Import a Model

What this covers
You can export any model as a single JSON file and import it into the same project, a different project in the same tenant, or a different tenant entirely. Connections never travel — credentials stay in the source database — so on import you pick local connections to rebind the model to. This article covers the export download, the import dialog, and how connections are remapped.
Opening the dialog
Both model export and import are accessed from a single Import / Export button (swap-arrows icon) in the project toolbar in the Explorer, or in the Model Builder toolbar. Clicking this button opens a dialog with two tabs: Import and Export.
Before you start
- To export, you need access to the source model.
- To import, you need access to the target project and at least one connection of each type referenced by the bundle (one Postgres connection per Postgres source, one BigQuery target per BigQuery target, etc.).
- Connections must already exist in the target project. If you do not have them, create them via Connections before importing.
Exporting a model
- Click the Import / Export button in the project toolbar (Explorer) or Model Builder toolbar.
- Switch to the Export tab.
- Select a format from the dropdown: Tessallite Model (.json), Tessallite YAML (.zip), or LookML (.zip).
- For Tessallite Model format, click the model you want to export from the list.
- Tessallite downloads a file named
{model_slug}.tessallite.jsonto your browser's download folder. - The Tessallite Model (.json) file is a single JSON document that carries the model's full definition: tables, columns, joins, dimensions, measures (including time variants), hierarchies, calendars, user-defined attributes, personas, row security, column/data tags, KPIs, named sets, named queries, glossary, drill-through sets, parameters, aggregates and pockets (as rebuild-pending), refresh and AI-scheduler config, model settings, and the canvas layout. (The authoritative, machine-checked list is the snapshot coverage matrix,
docs/architecture/architecture_snapshot-coverage-matrix.md.)
The file does not contain credentials, query history, miss logs, alerts, or anything stored at tenant, project, or system scope. The YAML and LookML exports are deliberately partial: each declares what it drops (YAML in an in-file not_exported block; LookML skips calculated and variant measures and lists every skipped item in a warnings.json file inside the downloaded ZIP), so use Tessallite Model (.json) when you need a complete, re-importable copy.
Importing a model
- Click the Import / Export button in the project toolbar (Explorer) or Model Builder toolbar.
- The dialog opens on the Import tab by default.
- Select a format from the dropdown: Tessallite Model (.json), Tessallite YAML (.zip), dbt (.yml / .zip), Cube (.yml / .zip), AtScale SML (.zip), or Catalog (pull metadata live from DataHub / OpenMetadata / Alation into a starter model).
- For Tessallite Model format, click Choose .tessallite.json file and pick the export file.
- The dialog reads the bundle and shows:
- The original model's slug and display name (you can override either).
- Every connection referenced by the bundle, with the source's display name and connection type.
- For each referenced connection, pick a local connection from the dropdown. Only connections of the matching type appear.
- Optionally tick Deploy immediately after import to save v1 and deploy in one click.
- Click Import. Tessallite creates a new model in the target project, rewrites every internal UUID, rebinds the connections, and (if you ticked Deploy) saves and deploys v1.
- The Explorer navigates to the new model.
If the source slug already exists in the target project, Tessallite auto-suffixes (sales, sales-2, sales-3).
Values are imported exactly as they are in the file. Each value is read as the type its field is declared with: an ID field as an ID, a date-time field as a date-time, and every text field as text, even when the text looks like an ID or a date. An empty (NULL) value stays empty. If a value cannot be read as its field's type, the import stops with a message that names the field (for example dimensions.id), and nothing is imported. Restoring a saved version follows the same rule.
What happens to the aggregates in the file
The idea. An aggregate is a pre-computed table that makes queries faster. It is not part of the model: a saved version does not hold it. The export file is the one place that carries the aggregate definitions (which grouping, which measures, which refresh schedule), without their data, so that an imported model does not start cold.
What the import does. Each aggregate in the file is checked against the model as it was imported, with the same check the Aggregates panel uses.
- An aggregate that fits is created waiting for its first build. The scheduler builds it against the connections you chose. Until that build has finished it answers no query; queries are answered from the source, with the same numbers.
- An aggregate that does not fit is not created. The import result lists it with the reason, for example a grouping field or a measure the imported model does not have. Nothing else is needed: the optimiser builds new aggregates from the queries people run.
- An aggregate a modeller had switched off arrives switched off.
Older export files. A file made by an earlier release also carries a list of aggregates inside each saved version it holds. Those lists are ignored; the file imports as any other.
Pitfall. A build can start only once the model is deployed. If you did not tick Deploy immediately after import, the aggregates wait until you deploy.
What is and is not in an export
| In the export | Not in the export |
|---|---|
| Tables, columns, joins, hierarchies, UDAs | Connection credentials |
| Dimensions, measures | Source data, target data |
| Aggregate definitions and refresh policies | Query logs, miss logs, alerts |
| Per-model AI scheduler config and model settings | System / tenant / project settings |
| Canvas layout (table positions, viewport) | Deployed-version pointer (the import always starts undeployed) |
| Conformed dimensions the model owns, and links to the ones other models own |
A copy gets its own copy of each conformed dimension the original owns, with the same name, and stays linked to conformed dimensions owned by other models in the project. See Fact groups and drill-across.
Tips
- Export is the supported way to move a model between environments (dev → staging → prod). The bundle is stable JSON, safe to commit to git.
- Connection rebinding is mandatory. The importer refuses to proceed if any source or target has no mapping.
- Re-imports do not merge — every import creates a brand-new model with a fresh slug and fresh internal UUIDs.