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

Hierarchical Business Link

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

A Hierarchical Business Link stores parent-child pairs of one Hub or Business Hub, read from the Raw Vault, in a table of the Business Vault layer. Use it for a hierarchy that a business rule derives from Raw Vault data, such as employees and their managers. After each load, the result view shows one row per pair and the load that first delivered it.

A Hierarchical Business Link works like a Hierarchical Link. It differs in its sources, its layer, its relationship targets and the BDV_ prefix of its objects.

Sources and relationships

A Hierarchical Business Link reads the result views of Raw Vault objects, in one or more dataflows: Hubs, all Link types, all satellite types, Current Views and History Views. It also reads BusinessVault Composites. It has exactly two relationships, both to the same Hub or Business Hub, with roles such as employee and manager. The foreign-key terms are the business keys of the Hierarchical Business Link. See Use parent-child relationships.

Business Current View, Business History View and Vault Out can read it as a source.

Create a Hierarchical Business Link

A Hierarchical Business Link holds only foreign-key terms and Default Terms. Validation reports an error for any other term.

Properties

Default Terms

When the parent key is NULL, for example for an employee without a manager, the hash key of that relationship is zeros, the key of the Hub's unknown-member row. See Behaviour for Nulled Business Keys in Links.

Generated objects

The part flow of Hierarchical Business Link shows which parts it can get and under which settings; the legend explains the symbols.

Part flow of Business Driving Key Link, Business Link, Driving Key Link, Hierarchical Business Link, Hierarchical Link, Link, Same As Business Link and Same As Link, top to bottom. The main path on the left, with the default settings, runs _Source, _Hashing, _Delta, _Loader, Table, _Result. Decisions with their values, the default or main value first: Deduplication Method (None; Distinct, Partition); Before-load rule (no; yes); Load Caching (empty; Hashing); Create Result Views (true; false); Logging (yes); Use Embryo Loader (true). Detours add the other parts: _Deduplication, _DataQualityLoader, _DataQualityTable, _DataQualityResult, _DataQualityBeforeLoadAction, _DataQualityError, _HashingLoader, _HashingTable, _EmbryoLoader.

These are the names on Microsoft SQL Server for the Hierarchical Business Link load_bhlnk with one dataflow:

RoleGenerated namePurposeGenerated when
SourceBDV_HLNK_load_bhlnk_SourceReads the sourcesAlways
DeduplicationBDV_HLNK_load_bhlnk_DeduplicationRemoves duplicate rowsDeduplication Method Distinct or Partition
DataQualityLoaderBDV_HLNK_load_bhlnk_DataQualityLoaderChecks the rules and fills the data quality tableAn active rule that runs before the load
DataQualityStorageBDV_HLNK_load_bhlnk_DataQualityTableHolds the rows and their check resultsAn active rule that runs before the load
DataQualityBeforeLoadActionBDV_HLNK_load_bhlnk_DataQualityBeforeLoadActionApplies the rule actions before the loadAn active rule that runs before the load
IntermediateResultBDV_HLNK_load_bhlnk_DataQualityResultPasses the rows to loadAn active rule that runs before the load
ErrorBDV_HLNK_load_bhlnk_DataQualityErrorHolds the rows that break a ruleAn active rule with Logging
HashingBDV_HLNK_load_bhlnk_HashingCalculates the hash keysAlways
HashingStorageBDV_HLNK_load_bhlnk_HashingTableStores the hashed rowsLoad Caching Hashing
HashingLoaderBDV_HLNK_load_bhlnk_HashingLoaderFills the hashing tableLoad Caching Hashing
EmbryoLoaderBDV_HLNK_load_bhlnk_EmbryoLoaderAdds missing Hub keysUse Embryo Loader on a relationship
DeltaBDV_HLNK_load_bhlnk_DeltaSelects new pairsAlways
LoaderBDV_HLNK_load_bhlnk_LoaderInserts the new rowsAlways
StorageBDV_HLNK_load_bhlnkHierarchical Business Link tableAlways
ResultBDV_HLNK_load_bhlnk_ResultQuery viewCreate Result Views true
  • The table script inserts the unknown-member row with hash keys of zeros. The result view hides it.

Generated parts of model objects shows the order in which a load runs the parts and the settings that add or remove them.

The source view reads the result views of its sources. The hashing view calculates Link_HK and the Hub key of each role. The delta view keeps the rows whose Link_HK is not in the result view, and the loader inserts them with the load timestamp. The loader never updates or deletes rows, so a pair that the source no longer delivers stays.

Example

The Hierarchical Business Link load_bhlnk on Microsoft SQL Server reads the Hierarchical Link load_employee_hlnk of the Raw Vault. Its two relationships go to the Hub common_employee, with the roles employee and manager. The Raw Vault and then the Hierarchical Business Link load four times:

  • Load 1 on 2026-10-28 08:00: employee 101 without a manager, employees 102 and 103 with manager 101.
  • Load 2 on 2026-10-29 08:00: employee 104 with manager 102 is new.
  • Load 3 on 2026-10-30 08:00: employee 103 gets manager 102.
  • Load 4 on 2026-10-31 08:00: no change.

Check the result

Query the result view, here in the schema p3b:

SELECT FK_common_employee_employee_EMPLOYEE_ID AS EMPLOYEE_ID,
       FK_common_employee_manager_EMPLOYEE_ID AS MANAGER_ID,
       common_employee_manager_HK AS manager_HK, BG_LoadTimestamp
FROM p3b.BDV_HLNK_load_bhlnk_Result
ORDER BY EMPLOYEE_ID, BG_LoadTimestamp;

This is the result after load 4, with hash keys shortened to their first four bytes:

EMPLOYEE_ID  MANAGER_ID  manager_HK  BG_LoadTimestamp
101          NULL        0x00000000  2026-10-28 08:00
102          101         0x6348AE9A  2026-10-28 08:00
103          101         0x6348AE9A  2026-10-28 08:00
103          102         0x8887BDD9  2026-10-30 08:00
104          102         0x8887BDD9  2026-10-29 08:00
  • Employee 101 has no manager, so the manager key is zeros.
  • The new manager of employee 103 added a second pair in load 3. The first pair stays.
  • Load 4 inserted no row.

Platform differences

The rules for names, loaders, deployment, platform properties and defaults are in Model object types on each platform. The Hierarchical Business Link differs from them in these points:

  • Snowflake: the load control task LC_BDV_HLNK_<model object name>_TASK calls the loader, and the task LC_BDV_HLNK_<model object name>_EMBRYOTASK calls the embryo loader.

Limitations

  • A Hierarchical Business Link has exactly two relationships to the same Hub or Business Hub and no terms other than foreign keys and Default Terms. Validation reports an error otherwise.
  • A Hierarchical Business Link holds one level, the direct parent.
  • A dataflow that delivers the same pair twice in one load makes the loader fail with a primary key violation. A Deduplication Method removes such duplicates before hashing.

Release differences

  • Generator 2.2: Use Embryo Loader is available.
  • Generator 2.3: Custom Singleton Values is available.

Related articles