How can I avoid duplicate primary keys in SQL import?

How can I avoid duplicate primary keys in SQL import?

error code: 523