Does validation activity in ADF accepts wildcard paths for folder name ?

anto thomas 1 Reputation point
2021-04-07T08:23:50.807+00:00

I would like to check the existence of an .ack file in a folder which will be having name with date and time. (eg: folder name = 2021-03-31-01-19-21).

The day day part in the folder can be set, but we are not sure about the time part in the folder name, it depends on the time of creation of that folder. Tried to add this path for validation task in ADF but there I was not able to provide wildcard path for the time part, since we are not known what is exact value.

Is it possible to provide the folder path like [ @markus.bohland@hotmail.de ('temp/folder',(formatDateTime(utcnow(), 'yyyy-MM-dd'),'-??-??-??') ]
Is there any alternative way to achieve this? I need to check for the existence of .ack file, every 10 mins for 2hrs.
(get metadata activity alone is not helping to recheck the existence of file every 10 mins till 2hrs and also not able to pass wildcard file path)

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,343 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,546 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,026 Reputation points
    2021-04-09T03:51:21.94+00:00

    Hello @anto thomas and welcome to Microsoft Q&A.

    I tried with a binary blob dataset, placing * for the filename. Unfortunately this did not work, it looked for a file named * rather than treating as a wildcard. In addition, in the blob dataset documentation, next to filename it says:

    The file name under the given container and folder path. If you want to use wildcard to filter files, skip this setting and specify that in activity source settings.

    Unfortunately validation activity has no relevant source setting. So, it looks like the answer is no.

    However, have you considered using an event trigger? An event trigger accepts wildcards, and will start the pipeline when the file is created. This way, you will not need to check for the existence of the file, the file will start the pipeline!

    0 comments No comments