Hi Martin,
You can use insertion mode when importing SQL databases to skip documents with a duplicate _id or clear the collection first if it already exists, as shown here:
This feature is also available in our migration from SQL tool here:
I hope that helps!
Regards,
Andrew