Store Procedure in ADF PK Violation

Mahlaule, Rirhadzu 0 Reputation points
2024-09-06T11:07:51.3133333+00:00

Stored Procedure in ADF   it is generating “PK violation” runtime error.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,567 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rirhandzu Mahlaule 0 Reputation points
    2024-09-11T10:14:16.82+00:00

    @Smaran Thoomu my stored Procedure Query deletes all the records from the destination table that matches the Aggregation from the temp table, which i believe that it ensures that no duplication records will exists in the destination table for the same PK id , and records are deleted only if they match the corresponding rows in the Temp table. Insert is used to Insert the new Aggregated data from Temp table into the destination table. however i still get PK Violation error


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.