Dynamic parameters in Azure Data Factory in dataflow activity

Aditya Raj 286 Reputation points
2021-06-16T11:59:33.087+00:00

i have use case of reading from azure sql table and iterating over each row .Each row has source and target table name and join condition on which i need to select data and then merge data into target table. I need to do this activity using Azure Data Factory . How can i implement it. I need to make it as generic using dynamic parameters.
As I am trying to merge data from one snowflake table to another, so I am using dataflow
i am getting error

{"StatusCode":"DFExecutorUserError","Message":"Job failed due to reason: at Sink 'sink1'(Line 8/Col 0): Input transformation 'target' not found","Details":""}

I am trying but I am getting error.106261-activity2.pdf

106206-image.png

106234-image.png

106137-image.png

106207-image.png

106195-image.png

![106196-image.png]7

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

Accepted answer
  1. ShaikMaheer-MSFT 38,521 Reputation points Microsoft Employee
    2021-06-22T11:30:04.687+00:00

    Hi @Aditya Raj ,

    Thank you for posting query in Microsoft Q&A Platform.

    To create Join condition dynamically please check below detailed explanation.

    Step 1: Create a Parameter in Data flow holds value "depid,depname" and we should use these columns(depid & depname) for join condition dynamically
    108159-parameter.gif

    Step 2: Added Source(employee data) and Sink(department data) transformations
    108160-sourcesink.gif

    Step 3: Join Transformation. Make sure to select Boardcast as Fixed and check Boardcast options.
    Added Join condition dynamically by splitting parameter value.
    108181-joinnew.gif

    Also, for SCD type2 implementation you can refer below vlog from product team
    https://www.youtube.com/watch?v=tc283k8CWh8

    Hope this will help

    ----------------------------------

    • Please accept an answer if correct. 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 email-notifications
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Kiran-MSFT 696 Reputation points Microsoft Employee
    2021-06-17T04:11:33.24+00:00

    The best option is to use the inline option in dataflow source and sink and pass parameters


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.