Copy Data Activity Behaviour in ADF

Raj0125 511 Reputation points
2022-12-14T15:47:58.127+00:00

Hi Team,

We are using copy data activity to transfer the data from on- premisis to Azure sql DB.Recently while jobs are running one of the user updated the record at on premisis DB.ADF picked up the record twice because a user was making changes for one of column with new description at the same time while job is running and causes duplicate record entry in our sytem with second record reflecting with updated description and first record appearing in our system as old description.

Basically the entry appearing before and after change is avilable which we are expecting only updated record into sytem.Since user is doing updation at the same time 2 records are entered in to system.

Please suggest what isolatin level need to select considering performance and same time control the same kind of issues in furthur or is there any way to limit this.

We are performaing data load from on-premisis Sql server to Azure SQL Server.

Thanks,
Raj

270549-image.png

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

1 answer

Sort by: Most helpful
  1. HimanshuSinha-msft 19,476 Reputation points Microsoft Employee
    2022-12-14T22:00:36.603+00:00

    Hello @Raj0125 ,
    Thanks for the question and using MS Q&A platform.
    As we understand the ask here is how can we avoid multiple entry on the sink side , please do let us know if its not accurate.
    I think you should go ahead with the "Read commited option " , but then when the records where updated on the source side as the UPDATE statement was part of transaction , if yes then it should work fine .

    One other thought is may be you can take advantage of the write behaviuor . So its the recors already exists it will just update that .
    270686-image.png

    Please do let me if you have any queries.
    Thanks
    Himanshu


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

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.