Importing Metadata
The BimlFlex platform provides an Import Metadata, or metadata importer, feature that is available from the Design section of the left navigation, and is also accessible from the Connection Editor and Project Editor. The metadata importer connects to the data source using the defined connection, reads the data structures and populates the BimlFlex database with the corresponding metadata.
The Connection for which metadata will be imported must have a valid connection string, which points to the database of which the metadata should be imported.

The import metadata feature can be used in any scenario where a schema is available, and there is a need to bring that metadata into a BimlFlex solution. If the data structure changes, the metadata can be imported again so that the model can be updated.
Importing metadata typically applies to connections that have been configured with the Source System Integration Stage - as a 'source connection'.
The Varigence YouTube channel contains various introduction videos about using BimlFlex and BimlStudio. This video provides an overview of how to import data structures as metadata into the BimlFlex database.
Import Metadata User Interface
There are a number of options for importing metadata. The user must align these options with the solution architecture and metadata conventions.


The example connection in the Sample Metadata is AWLT_SRC which points to the AdventureWorksLT database, using the project EXT_AWLT_SRC as the target project for imported metadata.
The main options are available in the Import Metadata Settings dialog, opened with the Settings button. A summary strip on the page shows the key settings currently in effect, with a Change link that opens the same dialog. These options control the behavior of the import, such as what object types to import, naming conventions to apply and what to retain if the metadata has been imported before.
Have a look at our recorded video covering how to import metadata using BimlFlex.
Metadata Options Definitions
This section provides a brief overview of the Import Metadata tool user interface.
Filter Tables and Schemas
The Schema Filter and Table Filter can be used to limit the metadata made available / visible for import. This is useful if a subset of available tables will be imported, or if new tables are added to an existing repository. Filtering also improves performance when connecting to and importing large database schemas.
Source and Target
| Option | Definition |
|---|---|
| Connection | Name of the connection that points to the data source the metadata is intended to be extracted from. The corresponding Connection String is used as defined in the Connections configuration. |
| Project | Name of the project that will use this metadata as its source in the source to target loading. This project has to be defined previously. For more information, please refer to the Projects documentation |
Table and column names
Naming convention to use for objects and columns. Options are:
None- This will retain the source system default naming conventions.PascalCase- E.g. "CustomerAddress"camelCase- E.g. "customerAddress"Proper_Case- E.g. "Customer_Address"Proper Case- E.g. "Customer Address"UPPER_CASE- E.g. "CUSTOMER_ADDRESS"lower_case- E.g. "customer_address"
Inferred Metadata
Where to infer the Integration Key from. Options are:
NonePrimaryKeyUniqueKeyFirstColumnIdentityColumnColumnName::[NameOfColumn]
When specifying ColumnName, a name needs to be added in the Import Metadata screen or specify ColumnName::UID to auto populate the column name field with UID.
Retain Existing Metadata
What existing metadata should be retained when doing an import of existing data. Options are:
Data TypesColumn OrdersReferencesAll Other, don't override anything else
The dialog also provides Apply Data Type Mappings and Show Export Button options.
To override everything, uncheck all checkboxes.
Default Properties
This controls default behavior of inferred Integration Keys.
- Pad Integration Key: Number of characters to pad the Integration Key to
- Integration Key Prefix or Suffix - based on your settings, it will auto populate a value which can be overridden here. It will add this value as prefix or suffix onto the column name to indicate Integration Key.
- Key Columns End With: When inferring key/reference names, what substring to look for at the end of a column name -
Id,Code,No,Key, or any custom string added.
More Options
- Add Record Source (@@rs) To Integration Key
- Change References To Integration Keys
- Import Views
Retrieve Objects for Import
Click the Preview button to retrieve the list of objects from the source connection. If the connection string is correct and the user has permissions to the schema, the list shows all the tables and views (if Import Views is selected in the settings) that are available for import.
Importable Assets
The Importable Assets list is read from the Source Connection. Choose items that should be included in the metadata import.

Upon clicking the Import button, the metadata will be imported into the BimlFlex Application and will be available for review and modeling.
Metadata imported from a Db2 source types CHAR, CHARACTER, VARCHAR and CLOB columns as AnsiString, NCHAR, NCHARACTER and GRAPHIC columns as StringFixedLength, and NVARCHAR, VARGRAPHIC, NCLOB and DBCLOB columns as String, whatever code set the database uses. Use Data Type Mappings to widen the non Unicode columns.
The import result lists the imported objects. With the AI features on, Propose a rule set sits in the result heading beside Continue and drafts a modeled table from the imported objects. Its dialog names the connection, project, schema and name of the View object the proposal creates, which you can change before anything is written, and shows the proposal for review one rule at a time, as the Rules Editor describes. The verb carries the Preview label and sits behind the per-customer consent.
Import Results
When a database import finishes, the page shows the import result. Its heading reads Imported <n> tables from <connection> to <project>, with table in place of tables when one object is selected. When some of the selected objects were not imported, the heading reads Imported <x> of <n> tables from <connection> to <project> instead, where <x> is the number of objects that were imported.
Under the heading, two counts summarize the changes to the metadata: Objects: <n> added, <n> changed, <n> removed and Columns: <n> added, <n> changed, <n> removed. The sections below them list the details.
| Section | What it lists |
|---|---|
| Not imported | Each selected object that the import could not read. The other selected objects are imported. The section appears only when it has an entry. |
| Imported with warnings | Each part of an imported object that the import could not read and left out, such as an index, a constraint row or the column defaults of a table, and each source column that the import left out because it has the integration key name that the import builds for its table. The object itself is imported. The section appears only when it has an entry. |
| Objects added | The objects the import added, or "No objects added." |
| Objects changed | The objects the import changed, each followed by the fields that changed in parentheses. The compared fields are name, connection, project and object type. |
| Objects removed | The objects the import removed, or "No objects removed." |
| Columns | For each object with column changes, the columns under Added, Changed and Removed. Each column shows its name, its data type with the length where it has one, and nullable or not null. A changed column also names the fields that changed: name, data type, length, nullability or change type. |
Each entry under Not imported and Imported with warnings reads as the object name, written as schema.object, followed by a colon and the message. Where the source gave a reason, the message ends with it.
When either section has an entry, a warning notification titled Import completed with warnings also appears. Its message gives the count and points to the result, for example 2 of 5 selected objects were not imported. The result step lists them. or The imported objects carry 3 warnings. The result step lists them.
Not Imported
An object is listed under Not imported when the source cannot return it. These are the messages the list shows. Where the source gave a reason, it follows the message.
| Message | When it appears |
|---|---|
The synonym <schema>.<synonym> was not imported because its base object <base object> on server <server> could not be read. | A SQL Server synonym whose base object could not be read, for example because its server did not answer. |
The synonym <schema>.<synonym> was not imported because no table or view named <base object> was found on server <server>. | The base object of a SQL Server synonym does not exist on its server. |
The synonym <schema>.<synonym> was not imported because the import could not read its base object name <base object>. | The base object name of a SQL Server synonym could not be read as a name. |
The synonym <schema>.<synonym> was not imported because its base object <base object> is on linked server <linked server>, which uses the <provider> provider and is not a SQL Server this import can read. | The base object of a SQL Server synonym is on a linked server that is not a SQL Server. |
The synonym <schema>.<synonym> was not imported because the import reads its base object <base object> over a second connection to server <server>, and that connection could not be built from this connection's connection string. | The second connection for a SQL Server synonym could not be made from the connection string. |
The stream <schema>.<stream> was not imported because its base table <schema>.<table> could not be read. | A Snowflake stream whose base table could not be read. |
When the base object of a SQL Server synonym is one of the tables the import reads, the synonym takes its columns from that table. Otherwise the import reads the base object over a second connection that uses the login and the security settings of the connection's own connection string. The second connection goes to the server of that connection string, or to the linked server when the base object name starts with a server name. When the base object name includes a database name, the second connection opens that database. The messages name the server the import tried as server <server>. Where the base object is on a linked server that is registered under a different address, the message names both, as linked server <name> at <address>. Where the connection string names no server, the message reads the server of this connection in place of server <server>. Each synonym is read on its own, so one synonym that cannot be read does not stop the others. When the server and database of one synonym's base object do not open, the other synonyms that point to the same server and database are listed with the same reason, and the import does not try to open them again.
Imported with Warnings
An object is listed under Imported with warnings when the import brings the object in but could not read one part of it, or left out one of its source columns because the column has the integration key name that the import builds for its table. The object is imported without that part or column. These are the messages the list shows. Where the source gave a reason, it follows the message.
| Message | What was left out |
|---|---|
The index <index> on <schema>.<table> was not imported because its columns could not be read. | The named index. |
The index <index> on <schema>.<table> was not imported because its catalog row could not be read. | The named index. |
The constraint <constraint> on <schema>.<table> is missing the column of one row that could not be read. | One column of the named constraint. The other columns of the constraint are imported. |
The definition of the view <schema>.<view> was not imported because its catalog row could not be read. | The view definition. |
The column defaults of <schema>.<table> could not be read, so its columns were imported without defaults. | The column defaults of the table. |
The column types of <schema>.<table> could not be read. | The column types that BimlFlex reads from a Snowflake or Teradata source for the table. |
The character set of column <column> on <schema>.<table> could not be read, so the column was imported as a non Unicode string. | The character set of one Teradata column. |
The column <column> was not imported because the import gives the integration key of this table the same name. To import the column, change the Integration Key Suffix in Settings and import the table again. | The named source column, which has the integration key name that the import builds for its table. |
The keys and references of the selected objects could not be read. Constraints could not be retrieved. | The keys and references of the selected objects. This entry is listed under the name Constraints because it applies to the whole selection. |
Snowflake Streams and Teradata Objects
For a Snowflake source, BimlFlex reads the streams of the database and reads each selected stream on its own. A stream whose base table cannot be read is listed under Not imported, and the other selected streams are imported. BimlFlex reads the column types of each Snowflake table with SHOW COLUMNS IN TABLE. When that read fails for a table, the table is imported and listed under Imported with warnings with the message The column types of <schema>.<table> could not be read.
For a Teradata source, BimlFlex reads the column types of each table with HELP COLUMN. When that read fails for a table, the table is imported and listed under Imported with warnings with the same message. When the character set of a single column cannot be read, the column is imported as a non Unicode string and the table is listed under Imported with warnings with a message that names the column.
When the Import Stops
Some problems stop the import as a whole. In that case nothing is imported, and the import fails with one of these messages. A message about a list the source could not return is followed by the reason the source gave.
| Message | When it appears |
|---|---|
None of the selected objects could be imported. followed by each object and its message | No selected object could be read. |
Import metadata failed for <n> of <m> selected objects, so nothing was imported. Deselect them or correct the source and run the import again. followed by each object and its reason | The columns of one or more selected objects could not be built. |
The source returned no column metadata for <n> of <m> selected objects, so nothing was imported: followed by the object names | The source returned no columns for some selected objects. The message asks you to check that the objects still exist and that the connection can read their columns from the source catalog. |
The source returned no column metadata for the selected object, so nothing was imported. or The source returned no column metadata for the <n> selected objects, so nothing was imported. | The selection produced no columns at all. |
The table list could not be retrieved. | The source could not return its table list. |
Indexes could not be retrieved. | The source could not return its index list. |
Views could not be retrieved. | The source could not return its view list. |
Synonyms could not be retrieved. | A SQL Server source could not return its synonym list. |
Streams could not be retrieved. | A Snowflake source could not return its stream list. |
Exporting Import Columns to CSV
With Show Export Button checked in the Import Metadata Settings dialog, the page shows an Export button. Export reads the selected objects exactly as an import reads them and writes the resulting column rows to a CSV file at a location you choose. It writes nothing to the BimlFlex metadata.
The file starts with a header row, followed by one row for each column the import would write, including the columns the import derives, which have IsDerived set to Y. A value that contains a comma or a double quote is enclosed in double quotes. The file has these columns, in this order: RowID, ObjectName, Schema, ColumnName, ChangeType, DataType, Length, Precision, Scale, Element, IsNullable, Default, Computed, CustomType, IdentityIncrement, IdentitySeed, ReadOnly, ObjectBusinessName, ColumnBusinessName, BusinessReference, IsPrimaryKey, IsIntegrationKey, IsSourceKey, DataflowExpression, IsDerived, ReferenceTable, ReferenceColumnName and SqlSourceExpression.
The export handles the two kinds of import warnings differently.
| Situation | Result |
|---|---|
| The import could not read a part of a selected object, such as an index or a constraint row, or left out a source column because it has the integration key name that the import builds for its table. | The file is written without that part or source column. A warning notification titled Export completed with warnings reads The file was written, but <n> parts of the selected objects could not be read. The details list them. The count includes each source column left out this way. Its details list each part or column as the object name, a colon and the message. |
| The import could not read a selected object. | No file is written. The export fails with CSV Export failed, and the details read Nothing was exported because the source could not be read in full. followed by each object or part and its message. |
Verify Imported Metadata
Navigate back to the Connection or Project and view the Objects tab. You should see all the newly imported Objects.

Import Metadata Over Existing Metadata
If there are changes to the source schema it is possible to safely run the Import Metadata on the same data again. Use the options to make sure you don't override anything you have changed after running the original import.
I.e. If a new column is available on a table where you modified the column ordinals, then check Column Orders under the Retain Existing Metadata options before you import the table.