Did something change with GetMetadata and Wild Cards in Azure Data Factory?

Wilson, James S 21 Reputation points
2020-11-25T14:03:47.657+00:00

Before last week a Get Metadata with a wildcard would return a list of files that matched the wildcard.
42751-image.png
Now I'm getting the files and all the directories in the folder. The directory names are unrelated to the wildcard. I now have to filter the list! Is anyone else seeing this and is it intentional?

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

Accepted answer
  1. MartinJaffer-MSFT 26,236 Reputation points
    2020-11-26T00:38:16.7+00:00

    Hello @Wilson, James S and welcome to Microsoft Q&A. Thank you very much for your question.

    Initially I was going to say, Get Metadata never worked that way, and that getting child items of a file, rather than a folder did not make sense. However, I gave a number of combinations a try, and here is what I found:

    Given a file/blob based dataset, with the container defined, and the file parameterized (see below picture),

    42881-image.png

    and a Get Metadata activity using this dataset, fetching childItems,

    42863-image.png

    If the Start Time, or the End Time, or both are used, then the output does filter the items using the wildcard. Only files show up in the output.

    42823-image.png

    If neither Start Time nor End Time are used, (and instead left blank,) then the output filters files by wildcard, but also includes all folders unfiltered.

    42815-image.png

    Thank you for asking me to look into this, I learned something today. If you are certain it worked differently before (an example pipeline run ID would help), I will make further inquiries into this issue.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Joel Forsyth 26 Reputation points
    2021-03-18T15:01:31.953+00:00

    In an ironic twist of fate, this seems to have stopped working yesterday. @Wilson, James S @MartinJaffer-MSFT

    Can either of you confirm?

    1 person found this answer helpful.

  2. MartinJaffer-MSFT 26,236 Reputation points
    2022-10-26T16:24:25.753+00:00

    So there was an unintended feature at one point in time.


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.