Skip to main content
Submitted

Automation: when using Additonal Adapters / Connections, include DW_SourceCode in primary key

  • December 5, 2017
  • 1 reply
  • 0 views

Forum|alt.badge.img

As title says, if you consolidate multiple sources, you need DW_SourceCode in the PK should the PK field of a table be the same in 2 databases.

We see this in scenario's where companies want to consolidate multiple ERPs / sources but the ERP uses integers as PKs for companies / locations etc... This gives PK conflicts, which is solved by adding DW_SourceCode to the constraints.

Navision is less impacted if the DW_Account is unique between two databases, but we have had a conflict there already so we add DW_SourceCode to the PK.

So it would be great if the automation feature would take this into account and add the DW_SourceCode in the PK when Additional Sources are used.

akpsu_9s_zdpK7NHot5qoQ.png

1 reply

Forum|alt.badge.img
  • Author
  • Known Participant
  • December 5, 2017

If the single table usage is set to None then no PK should be added on the DW_SourceCode. Otherwise TX should always add DW_SourceCode to the PK as changing the order of data reading does not necessarily avoid PK conflicts.