Adf - filenames from folder based on wildcard.

Pravalika-randstad 240 Reputation points
2023-10-16T10:00:21.5733333+00:00

I'm new to ADF, and I started with what I thought would be easy, but it's becoming quite challenging! Here's what I'm trying to achieve:

I want to copy files from an FT folder using a wildcard, like 'PN*csv,' and send them to another FTP folder. I have FTP linked servers set up, and it works well when I specify a specific filename.

Now, I need to transfer multiple files, so I thought of using Metadata to get the file name: it seems that Metadata doesn't accept wildcards.

Is it possible to do this in ADF? I assume it should be straightforward in Azure, so it migh something I'm missing."

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

Accepted answer
  1. Smaran Thoomu 24,575 Reputation points Microsoft External Staff Moderator
    2023-10-16T14:13:24.9166667+00:00

    @Pravalika-randstad Thanks for posting your Query. As I understand you're trying to copy files from an FTP folder using a wildcard and send them to another FTP folder in Azure Data Factory (ADF).
    Azure Data Factory now supports wildcards for both folder and filenames in various data sources, including FTP and SFTP. To utilize this feature, you can click on the 'Advanced' option in the dataset, as shown in the first screenshot. Alternatively, you can explore the wildcard option in the 'Copy Activity,' allowing you to efficiently copy files between folders, including recursive copying.
    User's image

    User's image

    Relevant links:

    Please let us know if this doesn't meet your needs, and we'll be happy to provide additional assistance.

    1 person found this answer helpful.

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.