when a lister tries to insert duplicate origins in the same batch,
the insertion is failing because the "on cascade do update" instruction
cannot manage duplicates in the same transaction.
This commit drops the duplicate entries prior to actually insert entries.
Related to T3769