ADF requires you to define the rules for when you wish to update, delete, insert, or upsert rows to your destination data store. The key columns in the sink define the row matching criteria. The rule in the Alter Row tells ADF when you wish to update vs. insert vs. delete. vs. upsert. In your case, if you want to always upsert when the key columns match, then just enter true() in the upsert condition.
Upsert into MySQL Table as Sink and Excel in Blob as Source in Mapping Data Flows
Krishnamohan Nadimpalli
406
Reputation points
Hi
I wanted to Upsert into MySQL Table as Sink and Excel in Blob as Source in Mapping Data Flows.
When I am trying for Upsert,it mandatorily asks for Alter row transformation, why?
My ask is "I have key in the MySQL Table (Day,CampaignKey). I get multiple rows daily for this key. I want to update the MySQL table if the incoming Day and CampaignKey matches, else I want to insert. But what exactly needs to be given in AlterRow Transformation. Please check following screenshots
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
Accepted answer
-
MarkKromer-MSFT 5,226 Reputation points Microsoft Employee Moderator
2022-11-30T16:26:13.487+00:00