ADF dataflow

Anu Chandra 21 Reputation points
2022-07-21T15:35:56.067+00:00

Hi,

I have 4 big files to load to a snowflake table that are on blob storage. My pipeline has Get Metadata task to read the file names and ForEach to loop though the files, but inside ForEach I'm using DataFlow instead of copy task because I want to load the name of the file into my table. How do I pass file name into data flow? Is there another way to accomplish this? I started using ADF just a couple of months ago, so your inputs are really appreciated.

Thanks,
Anu

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

Accepted answer
  1. Nasreen Akter 10,811 Reputation points Volunteer Moderator
    2022-07-21T16:31:09.637+00:00

    Hi @Anu Chandra ,

    you can use CopyActivity instead of the DataFlow and save FilePath, not the fileName. Please see the below link for details. Thank you!

    https://learn.microsoft.com/en-us/azure/data-factory/copy-activity-overview#add-additional-columns-during-copy

    223207-image.png

    0 comments No comments

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.