To create a Pipeline that generates ‘incremental’ folder names.

Amita Menon 1 Reputation point Microsoft Employee
2020-07-31T17:23:54.053+00:00

I have the following task:
I have a Pipeline in an Azure Data factory (V2). The Pipeline contains several Copy data elements. Each of them copies data from an SQL database into an FTP folder. As a result, the Pipeline generates files like <FTPserver>/FolderName/FileNameOFCopyData1; <FTPserver>/FolderName/FileNameOFCopyData2 etc.
Now I need to improve the Pipeline to have it generate ‘incremental’ sub-folder names (‘1’, ‘2’ etc) for each run of the Pipeline. In other words, after 1st run of the Pipeline we will have the files with the following names:
<FTPserver>/FolderName/1/FileNameOFCopyData1; <FTPserver>/FolderName/1/FileNameOFCopyData2; …

After 2nd run of the Pipeline we will have the files with the following names:
<FTPserver>/FolderName/2/FileNameOFCopyData1; <FTPserver>/FolderName/2/FileNameOFCopyData2; …

The question is: how could I do this?

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

1 answer

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,427 Reputation points Microsoft Employee
    2020-08-04T20:36:11.607+00:00
    0 comments No comments