Good morning All,
We are encountering the following:
We have history tables that use the DW_SourceCode as part of the primary key. This is because we have multiple sources with the same structure which are merged together in one table after ODX. As primary keys can overlap in the different sources, we need the DW_SourceCode to make distinguish the data coming from one or other source. Also we need history as the sources have a tight cleanup system and we need to keep track of information ourselves.
While developing some of the tables, the DW_SourceCode was somehow not included in the primary key in the first deployment and this was corrected afterwards. TimeXtender also reflects this:
Although deployment was successful, the computed column definition of the surrogate hashkey was not altered:
The problem we're having now is that the history is matched based on the surrogate hashkey. Now wrong records are updated (type 1 history) because the hashkey matches but actually shouldn't because the DW_SourceCode is different. Unfortunately i'm not able to share any actual data.
Is this known, and expected behavior? And what would be the best solution to solve this? I'm not able to re-deploy the tables as it doesn't update the surrogate hashkey definition.