<@U04S8PLJWMT> There is something wrong with our s...
# ask-ai
o
@kapa.ai There is something wrong with our scd tables, for example they have missing unique values while the final deduplicated table does contain accurate up to date data
k
If your SCD (Slowly Changing Dimension) tables are missing unique values while the final deduplicated table contains accurate, up-to-date data, this is not expected behavior according to how Airbyte's incremental deduped + history sync mode is designed to work. Expected Behavior: - The SCD/history table (e.g.,
table_two_scd
) should contain all historical versions of each record, including all unique values (based on the primary key and change timestamp). - The deduplicated table (e.g.,
table_two
) should only contain the latest version of each record, filtered by
_airbyte_active_row = 1
from the SCD table. This ensures only the current, up-to-date records are present in the deduped table, while the SCD table preserves the full change history for each record, including deleted and updated states [Explore incremental deduped + history synchronization](https://airbyte.com/tutorials/incremental-data-synchronization#step-7). Possible Causes for Missing Unique Values in SCD Table: 1. Bug or Incomplete Normalization: There have been reports of issues where SCD tables were not properly emptied after a reset, leading to duplicates or stale data. However, your issue is the opposite (missing data), which could indicate a bug or a failed normalization step [All Destinations: _scd tables not empty after reset](https://discuss.airbyte.io/t/1798). 2. Sync or Normalization Failures: If a sync or normalization run fails or is interrupted, it is possible that not all records are written to the SCD table, but the deduped table (which is rebuilt from the SCD table) may still appear correct if only the latest records are present [Duplicate records with exactly matching _AIRBYTE_START_AT](https://discuss.airbyte.io/t/1529). 3. Manual Table Modifications: If SCD tables were manually truncated or altered outside of Airbyte, this could lead to missing historical data. 4. Connector or Airbyte Version Bugs: There have been bugs reported in certain versions of connectors and Airbyte itself that affect SCD table population and reset behavior [All Destinations: _scd tables not empty after reset](https://discuss.airbyte.io/t/1798). What You Can Do: - Check Airbyte and connector versions for known issues. - Review sync and normalization logs for errors or interruptions. - Avoid manual modifications to SCD tables. - If you recently reset or changed keys, ensure the reset process completed successfully and that SCD tables were properly cleared and rebuilt. If the problem persists, it may be a bug, and you should consider opening a GitHub issue with detailed logs and version information, as this is not the intended behavior of Airbyte's incremental deduped + history sync mode. If you need more specific troubleshooting, please provide details about your Airbyte version, connector versions, and any recent changes to your sync configuration.