You need to generate unique values for the surrogate key.
⇑ Translate the sentence above by Google ⇑
Related: surrogate
Prev: A simple example is to have a numeric surrogate column.
Next: The cheaper surrogate models are then used in the optimization.