Upsert into MySQL Table as Sink and Excel in Blob as Source in Mapping Data Flows

Krishnamohan Nadimpalli 406 Reputation points
2022-11-30T11:10:22.337+00:00

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

265684-image.png

265656-image.png

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
0 comments No comments
{count} vote

Accepted answer
  1. MarkKromer-MSFT 5,226 Reputation points Microsoft Employee Moderator
    2022-11-30T16:26:13.487+00:00

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.