Export and import the metadata#
A connection's metadata can be exported as a package (a zip file) and imported into another connection, of the same installation or of another. This way it is designed and tested in a development environment and taken to production, the design is copied to another database with the same structure or a copy of the design is kept outside ECenter.
Before you start#
- Exporting and importing requires Metadata administration.
- The target connection has to exist and have its catalog read: importing does not create connections. If you are going to design in it without users seeing it, mark it as Only for metadata administrators.
- To automate promotion between environments without a session, with a service credential, see Integrations.
How it works#
- In the source environment, Export metadata… downloads the package.
- In the target one, Import metadata… opens a wizard that analyzes the package: it says exactly what the import would do (what is new, what changes, what is deleted and the impact on the documents) without changing anything.
- If you agree, it imports: all or nothing. If the target already had metadata, a backup is saved first (see Metadata backups).
Each element of the metadata carries a fixed exchange key, which travels in the package. The first time it is imported into a target that already has metadata, the elements are recognized by their name (a table by its schema and its physical name, a dimension or a metric by its name in its table, a relationship by its tables and its columns, a folder by its path) and adopt the package's key; from then on they are recognized by it, even if they are renamed in either environment. What is recognized keeps its number in the target, so the target's workbooks, lists and bookmarks keep pointing to the same thing.
What the package carries#
| It carries | It does not carry |
|---|---|
| The fact tables with their fields, their key, their alias and “Supports lists” | The tables defined by users (external data) and what hangs from them |
| The dimensions and metrics, with their business description, their format, their function, their expression and their formula | The lists, workbooks, templates, bookmarks and subscriptions |
| The auxiliary tables and the link of each dimension | The users, the roles and which role has each privilege |
| The relationships, with the preferred one | The URL, user, password, name and identifier of the connection |
| The presentation tree: folders and placements | Dates, authors and numbers of the installation |
| The geographic links (the layer code) | The geographic layers: they have to be uploaded in the target with the same code |
| The reference to the access and edit privileges (user ones, by their path and their name) | |
| If requested: the universes, the diagram layout, the groupings and the guide for assistants |
Important
A package carries SQL that will run against the client database: expressions, functions, universe conditions and next-value SQL. Treat it as code: only import packages from people you trust and review in the analysis what changes.
Export#
- In Administration › Metadata, choose the connection.
- Open the Export and import menu and choose Export metadata….
- Choose the options (below).
- Click Export. The browser downloads
metadata-<connection>-<YYYY-MM-DD>.zip.
The dialog summarizes what was exported: “The metadata of “…” has been exported: 8 fact tables and 15 auxiliary ones. It carries 10 universes and 3 groupings”. If you have unsaved changes in the editor, it warns: the package carries what is saved.
| Option | What it does |
|---|---|
| Include the universes (row-level security) | Adds the connection's universes. Unchecked by default, because their conditions may carry values of your data. Without it, the import does not touch the target's universes. |
| Include the diagram layout | Adds the position of the tables in the relationship diagram. Checked by default. |
| Include the groupings | Adds the groupings with their values. Checked by default. Users create them and they carry values of your data. |
| Include the guide for assistants | Adds the connection's guide for assistants, with its sections and its verified examples. Checked by default. Its examples may carry values of your data. See Guide for assistants. |
| Include the translations | Adds the names and descriptions in the other languages of what goes in the package. Checked by default. When imported they replace those of the connection; a package without them does not change them. See Translations. |
The summary also states what never goes in the package: the formulas that use metrics of external data, the metrics whose expressions cite external data tables and the guide's examples whose query could not be taken to another environment.
Two exports of the same metadata give the same file, and a metadata promoted from development to production exports the same in both: comparing two environments is comparing two files.
Import#
- In Administration › Metadata, choose the target connection.
- Open Export and import and choose Import metadata… (in a connection without metadata, also Import a package… in Structure or in the connection's Next steps). The Import metadata wizard opens full page.
- Follow its steps, which are shown on the left. Next and Previous go through them.


Package#
Choose the file in Metadata package (.zip). When it is chosen it is analyzed (the status says Analyzing the package…), and What it is states the format, the version it was written with and the source engine (“Format 1 · written with Empowerment Center 8.0.0 · PostgreSQL engine”), the sections it carries and the file's SHA-256 fingerprint.
Schemas and privileges#
This step only appears if the package names something the target does not recognize by itself:
- Schemas: the package does not carry the physical name of the schemas but a logical name (the same one, unless another has been given). If it is not resolved by itself (by a schema of the connection with the same name, or because both have a single schema), choose Schema of “…” in this connection. What is chosen is remembered, and the connection then exports with the same logical name: development (
DEV_COMERCIAL) and production (COMERCIAL) give the same package. - Privileges: for each privilege of the package that is missing in this installation, choose Create “…” (it is created in the same folder; nobody will have it until you assign it to a role) or Use a privilege that already exists.
Changing something analyzes again. The import never changes a privilege that already exists.
Differences#
What the import would do, without changing anything yet:
- Also delete what is not in the package: unchecked (the default), what is only in this connection is kept. Checked, it is deleted, with its impact. What users create with external data is never touched.
- Guide for assistants of the package, if the package includes it: Set it only if this connection has no guide (the default), Replace the guide of this connection with the package's or Keep the guide of this connection. The guide has no impact. Changing it analyzes again.
- The counts by kind (“Metrics: 3 new, 1 changes, 27 the same and 2 only in this connection”).
- A warning if groupings created by this connection's users would be deleted.
- Notifications, filterable by severity (Errors, Notifications, Information): for example, that the source engine is another one, that a function names a source schema or that a table or column is not in the target's catalog.
- Items that do not stay the same, filterable by What happens to it (New, Changing, Only here, Deleted) and by Kind, with what changes in each one (“The definition and the access privilege change”) and whether it has been recognized by its name.
- Download the report (CSV).
If the package is already the same as the connection's metadata, it says so: “No differences”.
Impact#
What the import would do to what uses the connection's metadata: documents, lists, templates, subscriptions and alerts that break or change result, kept data that expires, who stops or starts seeing what, and the universes. It is the same report as that of any save (see Usage and validation). If a rule prevents it, you cannot continue.
Import#
The import goes in whole or not at all: with an error nothing changes. Click Import metadata (or Import anyway if there are warnings or impact to confirm). When it finishes, the wizard summarizes it and offers:
- Open the metadata editor;
- Validate content;
- Assign the created privileges in Users and roles, if any was created;
- Download the report (CSV).
While it analyzes or imports, Cancel cancels the job; an import that is already being committed does not stop and goes in whole. Leaving the wizard with an analyzed package not imported asks first: the server does not keep the package and it would have to be chosen again.
Frequent errors#
| Message | What to do |
|---|---|
| “The package is from a newer version of Empowerment Center: update this server to import it.” | Update the target to the source's version, or export from an equal version. |
| “There is another import or restore in progress in this connection: … launched it. Wait for it to finish.” | Only one import at a time per connection. |
| “The metadata has changed since the analysis: it has been analyzed again. Check the differences.” | Someone saved a change between the analysis and the import. Review and import again. |
| An error that asks to refresh the catalog | The target has no catalog read. Refresh it in View catalog. |
| A package that is too large | It exceeds the limits below. |
Limits#
| Property | Default | What it is |
|---|---|---|
ecenter.metadata.exchange.max-package-size |
64MB |
The uncompressed package, across all its files. |
ecenter.metadata.exchange.max-entries |
5000 |
Files inside the zip. |
ecenter.metadata.exchange.max-entry-size |
16MB |
Each uncompressed file. |