duplicate key violation error

Shiela E 2021 116 Reputation points
2022-03-11T11:50:10.35+00:00

I'm getting a duplicate key violation error when importing data. There aren't any duplicate keys in the source.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2022-03-14T01:44:31.557+00:00

    Hi @Shiela E 2021 ,

    Please try to redirect error rows from your destination to any file or table o check what's the exact rows caused the issue.

    You may also use sort Transformation Task to check the value.

    Reference: https://www.sqlcoffee.com/Troubleshooting146.htm

    Also someone mentioned that the error may cause by that your source table columns are case sensitive but your destination columns are not. To solve the issue, just recreate your destination table with columns case sensitive.

    i-am-using-ssis-and-i-am-getting-this-error-violation-of-primary-key-constraint

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.