0

I'm trying to dynamically get the name of the parquet file that is created in the copy, but I can't find it in the ouput. They could help me identify how to get the name, to use in a next activity.

enter image description here

1 Answers1

0

You can follow any of the below processes.

Process1:

You can generate the file name to generate the parquet file with the given file name in copy data activity and use the same file name in later activities.

While creating the sink dataset, create a dataset parameter for the file name and provide the file name in copy data sink settings.

Parameterize the dataset:

enter image description here

Copy activity sink:

enter image description here

You can use the same name in later activities or create a variable to store this name and use it.

Process2:

You can get the latest file generated in the folder using the Get Metadata activity.

Refer to this SO thread for repro details.

NiharikaMoola-MT
  • 4,700
  • 1
  • 3
  • 15
  • Thank you very much @NiharikaMoola-MT, with process 2 you can get the original name of the parquet file that is generated after making a copy. – Eddynson Vega Dec 24 '21 at 17:41