AnalyticsCreator Docs Preview

Configure historization

On this page
  1. Configuration workflow
  2. Column policies
  3. Filters
  4. History and validity options
  5. Empty-source behavior
  6. Future history: implementation boundary
  7. Manual procedure and special columns
  8. Expected result
  9. Why the empty-source error guard is conditional

Use a Historization operation to track changes to a warehouse table. The SCD mechanism explains how the generated procedure uses keys, column policies and validity dates.

Configuration workflow

  1. Open the historization definition and verify Source, Destination and Package.
  2. Review each column's SCD Type and missing-record values.
  3. Review the Filters, History behaviour, Validity dates and Empty source settings together.
  4. Inspect PreScript, PostScript and Procedure.
  5. Click Save to commit metadata and regenerate the procedure definition. This handler requests generation without deploying/running the procedure.
  6. Generate/deploy the required artifacts and execute the package in a development environment before production use.

Column policies

Use the SCD decision table and Customers example to choose which attribute changes create a version.

When Add empty record is selected, Empty value and Use last value as empty value control replacement values. An inventory example can retain product attributes and set quantity to zero. See missing-record policies.

Calculated columns use I for the new record and S for the old record. The editor includes the example ISNULL(I.Value, 0) - ISNULL(S.Value, 0).

Filters

There are separate source/history filters for detecting new or changed data and for detecting deleted data. Use the aliases displayed by the editor: I for source, S for historicized records. A restrictive source filter can affect which records appear absent; review deletion detection independently instead of copying a filter blindly to all four fields.

History and validity options

Empty-source behavior

Stop without error generates an early return when the checked source is empty. The Stop with error guard is conditional in the current generator: it is emitted only when records may be closed and Insert only is off; it raises an error only if open destination versions exist. Thus its label does not mean every empty extract always raises an error. Continue permits processing to proceed. Validate these combinations with your data-extraction contract.

Future history: implementation boundary

For normal keyed historization, Delete future history if it exists uses ValidFrom existing keys as the boundary for each existing source key. The expression can read a source date. Rows at or after that boundary are removed for that key; the last retained version spanning the boundary is reopened. The same evaluated date is used to close/insert the replacement version, including when rollback removes every old version.

Source and history filters qualify the cleanup. Keys absent from the filtered source are not rolled back by a source-derived date. A NULL date falls back to the run timestamp. If duplicate checking is disabled, multiple source rows for a key use the earliest evaluated date. ValidFrom new keys remains a separate initial-load policy and is not used as a rollback date for existing keys.

Without an existing-key date expression, the existing run-time cleanup remains. Insert-only and source-history reuse do not perform this rollback. Both inclusive validity and half-open validity modes are handled. Review generated SQL with late-arriving rows and your actual expressions before deployment.

Manual procedure and special columns

Stored procedure type distinguishes Automatically created from Manually created. Manual procedure ownership requires reviewing its SQL rather than assuming changes to generation controls rewrite it. Technical valid-from/to and root/previous/next surrogate-key fields are configured under Special columns; their complete advanced behavior is outside this article.

Expected result

After Save, the repository contains the updated definition and procedure text. Data history changes only when the corresponding processing is executed. Review generated SQL and logs; no runtime database test is claimed by this article.

Why the empty-source error guard is conditional

The confirmed purpose is to prevent an accidentally empty extract from closing all current SCD records. With Do not close or Insert only, that mass-closing risk is absent, so the error guard is not generated. This is intentional behavior, not a promise that every empty source is an error.

Use the late-arriving history test scenario to review date boundaries and unrelated-key behavior.

See Reuse history supplied by a source for initial-load and later interval-building differences.

Search documentation