dataflow - column mapping issue

arkiboys 9,621 Reputation points
2021-09-30T03:03:17.85+00:00

Hello,
In the data factory pipeline I have a dataflow.
source1 --> sink1
I ran the pipeline and then populated the destination dataset in sink1

Then, I added the alter row activity between the source and sink as below but the pipeline when runs gives error.
source1 --> alter row --> sink1

Error
{"message":"Job failed due to reason: Key column(s) should be specified for non-insertable operations. Details:","failureType":"UserError","target":"df_B2S_Upsert","errorCode":"DF-DELTA-KeyColumnMissed"}

Hope the screen-shots below can help

136486-image.png

sink1
136551-image.png

136495-image.png

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

Accepted answer
  1. MarkKromer-MSFT 5,186 Reputation points Microsoft Employee
    2021-10-03T06:54:57.677+00:00

    You need to tell ADF what is your target database key column as part of the upsert operation. That setting is on the sink settings when you select "Allow Upserts" in the sink settings.


0 additional answers

Sort by: Most helpful