SAP Knowledge Base Article - Public

3847662 - HANA source table repartitioning impact on Datasphere Replication Flow

Symptom

  • A Replication Flow replicates data from an SAP HANA on-premise source table that is planned to be repartitioned (e.g., from no partitioning to HASH partitioning).
  • You are wondering whether changing the source table's partitioning strategy will cause data loss or disruption to an active Replication Flow.

Environment

SAP Datasphere

Reproducing the Issue

Not fully reproducible on demand; scenario arises when a DBA applies HASH partitioning to a source table while a Replication Flow task is active.

Cause

SAP Datasphere Replication Flows discover HANA table partitions only during the Initial Load phase. Once the flow transitions to Delta Running status, partition metadata is no longer re-evaluated. Therefore:

  • If the table is repartitioned while the task is in Delta Running status: there is no impact — the delta change capture continues unaffected.
  • If the table is repartitioned while the task is still in Initial Load: data loss may occur, because the new partitions created during repartitioning will not be discovered by the already-running initial load scan.

Resolution

  • If the Replication Flow is currently in Delta Running status: No action is required. The repartitioning of the source HANA table will not affect ongoing delta replication. Proceed with the partitioning change on the source system.
  • If the Replication Flow is currently in Initial Load status:
    • Pause the Replication Flow task before applying any partitioning changes to the source table.
    • Apply the HASH partitioning (and any associated index changes, e.g., INVERTED VALUE → INVERTED INDIVIDUAL) on the source HANA table.
    • After the partitioning change is complete, delete and recreate the Replication Flow task (or reset it to trigger a fresh Initial Load), so that the new partition layout is discovered from the beginning.
    • Resume/restart the Replication Flow.
  • General recommendation: Schedule source table structural changes (partitioning, index type changes) during a maintenance window when the Replication Flow is in Delta Running status to avoid any risk of data loss.

Keywords

HANA table partitioning, HASH partition, Replication Flow, data loss, initial load, delta load, partition discovery, INVERTED VALUE, INVERTED INDIVIDUAL, CDS extraction, ABAP connection, RF repartition, DS-DI-RF, partition change impact, SAP Datasphere replication , KBA , DS-DI-RF , Replication Flow Runtime , Problem

Product

SAP Datasphere all versions