question

RyanAbbey-0701 avatar image
0 Votes"
RyanAbbey-0701 asked RyanAbbey-0701 commented

ADF Get Metadata - returning non-matching folders

A "Get Metadata" call on file "mkt.*" is returning me folder "x". Other than putting an "IF" within my "FOREACH", anyone know how to either state "files only" or have it return only files and folders that actually match input?

 {
     "itemName": "mkt.*",
     "childItems": [
         {
             "name": "mkt.zip",
             "type": "File"
         },
         {
             "name": "x",
             "type": "Folder"
         }
     ],
azure-data-factory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

HimanshuSinha-MSFT avatar image
0 Votes"
HimanshuSinha-MSFT answered RyanAbbey-0701 commented

Hello @RyanAbbey-0701 ,
Thanks for the ask and using Microsoft Q&A platform .
Unfortunately at ths time the wildcard filter is not supported and we will have a use the IF statement .

133720-image.png

https://docs.microsoft.com/en-us/azure/data-factory/control-flow-get-metadata-activity#supported-capabilities

Thanks
Himanshu


  • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how

    • Want a reminder to come back and check responses? Here is how to subscribe to a notification

    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of [Q&A Volunteer Moderators][50]



image.png (18.5 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The wildcard does indeed work... at least on files... just doesn't seem to ignore folders... even being able to say "just return files" would be nice

0 Votes 0 ·