0

I have created a pipeline in Azure Data Factory where it got two job

  1. Read from Synapse and write into file.
  2. Write another file with no content

Both the file name should be same.

What I tried was creating a variable and use that variable as file name.

Variable

But I can't use that variable in Copy Data Sync Dataset.

enter image description here

How can I use that variable in multiple tasks?

Lonely Planeteer
  • 389
  • 1
  • 5
  • 21
  • 1
    @NiharikaMoola-MT is correct. Here is a blog post I wrote last year with some more details: https://causewaysolutions.com/blog/creating-reusable-datasets-in-azure-data-factory-with-parameters/ – Joel Cochran Mar 15 '22 at 20:47

1 Answers1

2

To pass the pipeline variable in the dataset, you need to create a dataset parameter first and pass the dataset parameter value from the pipeline.

  1. Create dataset parameter.

enter image description here

  1. Add the dataset parameter in the dataset where the pipeline variable needs to be passed.

enter image description here

  1. Assing the pipeline variable to the dataset parameter under the properties.

enter image description here

NiharikaMoola-MT
  • 4,700
  • 1
  • 3
  • 15