How to express wildcard character(s) in Azure Logic Apps

King Java 790 Reputation points
2025-03-11T21:26:32.22+00:00

I have following file name in Azure File Storage:

User's image

I was trying to use following Expression to grab today's file in Azure Data Factory:

User's image

But, somehow, I am getting error saying it would not recognize the file:

User's image

I am wondering how to express wildcard character here.

BTW, the files are in Azure Blob Storage. I am not sure that makes anything different from files in Azure File Storage.

Thanks.

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

Accepted answer
  1. Anonymous
    2025-03-13T04:49:27.3633333+00:00

    Hello @King Java,

    I have reproduced the above scenario and got the similar error.

    enter image description here

    The above kind of error occurs when you gave wrong folder name. Please cross-check your folder path in the dataset.

    I am wondering how to express wildcard character here.

    ADF does support the Dynamic expressions in the wild card file path in the copy activity and lookup activity.

    Here is how you can do it.

    These are my sample files in File storage similar to you.

    enter image description here

    In the dataset, select till the file storage name.

    enter image description here

    For copy or lookup activity, you can select the wild card file path and give your expression in the file name. And give your folder name if you need.

    For sample, I have used lookup activity.

    
    @concat('Allision_',formatdatetime(adddays(utcnow(),0),'yyyy-MM-dd'),'*','.csv')
    
    

    enter image description here

    After the execution of the pipeline, it will extract the data of all the files which have the file name starts with Allision_<yyyy-MM-dd>*.csv.

    enter image description here

    You can confirm the generated wildcard file in the input of the activity.

    enter image description here

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    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.