Skip to content
  • There are no suggestions because the search field is empty.

Configure a multi-version load

Applies to
Platform: Microsoft SQL Server · Snowflake · Snowflake dbt · Databricks · Databricks dbt · Fabric Lakehouse · Fabric Warehouse · Oracle
Architecture: Data Store · Data Vault

A multi-version load stores every version that a source delivers for a key, each valid from the date in a source term. Use it when the source keeps its own history, for example a historized ODS table with several rows per business key. Afterwards the target holds the source history, and each later load adds the versions that start after the newest stored one.

A multi-version load is available on Store Entity, Satellite, Link Satellite, Business Satellite and Business Link Satellite. On a Mart Dimension, the same property names the validity term of a historized source instead, see Mart Dimension. A Store Entity cannot combine it with delete detection.

Prerequisites

  • A source model object with a term that holds the start of validity of each row, for example UPDATE_DATE.
  • The target model object has one dataflow with one dataflow set and no aggregation. See Dataflows amount with multi-version load (Business Rule).
  • Data Vault: each Hub and Link that reads the historized source removes the duplicate keys of that source, see step 4.

Configure the multi-version load

  1. In Dataflow Modeling, open the menu of the target model object and choose Manage Term Mappings.
  2. Open the menu of the source model object and choose Edit Dataflow Model Object.
  3. In the group Historization, select the source term in Version Valid From Term and save. Each source row then becomes a version with this value as BG_ValidFromTimestamp.
  4. Data Vault: for each Hub and Link that reads the same source, set Deduplication Method of that dataflow to Distinct. The Hub or Link then receives each key once.
  5. Generate the artifacts, deploy and load as usual.

Set Version Valid From Term only on sources that hold their own history. For a source whose history you do not need, such as descriptions in several languages, filter the latest row in the dataflow set instead.

Versions that arrive later

Each load compares the delivered versions of a key with the newest stored version:

  • All versions of a new key are added.
  • A version that starts later is added, and the previous version ends at its start.
  • A version that starts at or before the newest stored start is skipped without a warning. On satellites since Generator 2.4.
  • On a Store Entity, a version with the same start as the newest stored one still updates its changed SCD1 terms.

The rule per object type is in Version Valid From Term (Dataflow Model Object).

Example

The Stage EMPLOYEE_HIST on Microsoft SQL Server keeps the address history of each employee, with the start in UPDATE_DATE. The Hub common_employee has the business key EMPLOYEE_ID. Its Satellite employee_sat reads EMPLOYEE_HIST with Version Valid From Term UPDATE_DATE.

Load 1, on 2026-10-01, delivers these rows:

EMPLOYEE_ID  UPDATE_DATE  ADDRESS_LINE1
1            2026-01-01   Bahnhofstrasse 1
1            2026-03-01   Seestrasse 5
2            2026-01-01   Hauptstrasse 7

Load 2, on 2026-10-02, delivers the whole history again with three changes:

EMPLOYEE_ID  UPDATE_DATE  ADDRESS_LINE1
1            2026-01-01   Bahnhofstrasse 1
1            2026-02-01   Bergweg 3
1            2026-03-01   Seestrasse 5
1            2026-04-01   Talstrasse 9
2            2026-01-01   Hauptstrasse 9

Load 2 adds only Talstrasse 9. Bergweg 3 starts before Seestrasse 5, the newest stored version of employee 1. Hauptstrasse 9 has the same start as the stored version of employee 2. The satellite skips both.

Check the result

Query the result view of the satellite with the business key of the Hub, here in the schema rdv:

SELECT hub.EMPLOYEE_ID, sat.ADDRESS_LINE1,
       sat.BG_ValidFromTimestamp, sat.BG_ValidToTimestamp
FROM rdv.RDV_SAT_employee_sat_Result AS sat
JOIN rdv.RDV_HUB_common_employee AS hub
  ON hub.Hub_HK = sat.Hub_HK
ORDER BY hub.EMPLOYEE_ID, sat.BG_ValidFromTimestamp;

This is the result after load 2, with the timestamp columns shortened to dates:

EMPLOYEE_ID  ADDRESS_LINE1     ValidFrom   ValidTo
1            Bahnhofstrasse 1  2026-01-01  2026-03-01
1            Seestrasse 5      2026-03-01  2026-04-01
1            Talstrasse 9      2026-04-01  9999-12-31
2            Hauptstrasse 7    2026-01-01  9999-12-31

Each version starts at the date that its source row delivered.

Failure symptoms and recovery

The Hub load fails with a primary key violation

Message: Violation of PRIMARY KEY constraint 'PK_RDV_HUB_<hub name>'. Cannot insert duplicate key in object 'rdv.RDV_HUB_<hub name>'.
Cause: the Hub reads the historized source, which holds several rows per key, without deduplication. The message is from Microsoft SQL Server; other platforms report the duplicate key in their own words.
Fix: set Deduplication Method of the Hub dataflow to Distinct, as in step 4.

Validation reports delete detection together with the multi-version load

Message: Model object '<model object name>' of type 'Store Entity' has Multi Version Load and Delete Detection configured. Only one of these options must be configured for a model object.
Cause: the Store Entity has a Delete Detection Method and a Version Valid From Term.
Fix: remove one of the two, see No delete detection with multi-version load (Business Rule).

A corrected or backdated source version is missing

Cause: the version starts at or before the newest stored version of its key, so the load skipped it.
Fix: empty the target table and load the complete history again. The target then holds every source version, and all rows get the load timestamp of this load.

Release differences

  • Generator 2.2: on a Store Entity, a version with the same start as the newest stored one updates changed SCD1 terms.
  • Generator 2.4: satellites skip versions that start at or before the newest stored version. Up to Generator 2.3, such a version was added and changed the validity of the stored versions.

Related articles