Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
VaishnaviMu
Regular Visitor

Get Metadata activity - How does it work?

I have a folder containing files of multiple formats. I used Get Metadata activity and it has run successfully bringing files of all different formats as output. My questions is, 1. why does the activtiy mandates the File Format field and 2. Even after I left the File Format to the default binary value, files of all format have been brought in, how?Screenshot 2025-12-01 222436.pngScreenshot 2025-12-01 222103.png

2 ACCEPTED SOLUTIONS
nielsvdc
Solution Sage
Solution Sage

Hi @VaishnaviMu, when you select a specific file format in the Get Metadata activity, the activity doesn’t just filter those file types, it also understands how to interpret the data inside those files. For example, if you choose JSON as the file format, the activity expects files to contain JSON syntax and processes them accordingly. Try selecting XML for a folder in your example: when you click the Preview button, you’ll see an error if the files don’t contain valid XML, because the activity was expecting XML structure.


On the other hand, when you select Binary as the file format, all files are shown because binary is a generic format. In this case, the activity treats the files as raw, unstructured data without attempting to parse their contents.

 

Hope this helps. If so, please give a Kudos 👍 or mark as Accepted Solution ✔️.

View solution in original post

Vinodh247
Solution Sage
Solution Sage

  1. The File format field is required because Fabric Pipelines follow the same connector contract as Dataflow Gen2. The connector expects a format to be declared, even if the activity itself (Get Metadata) does not actually read or parse the file. It is a schema requirement, not a functional one.

  2. Get Metadata does not inspect file content. It only enumerates the file system and returns names, sizes, timestamps, etc. Because it does not read the file, the declared format is ignored at runtime. Binary works as a generic placeholder, so all files are listed regardless of their true type.

HTH!

 


Please 'Kudos' and 'Accept as Solution' if this answered your query.

Regards,
Vinodh
Microsoft MVP [Fabric]

View solution in original post

4 REPLIES 4
v-prasare
Community Support
Community Support

Hi @VaishnaviMu,

We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.

 

 

 

Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support

v-prasare
Community Support
Community Support

Hi @VaishnaviMu,

We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.

 

@Vinodh247 & @nielsvdc, Thanks for your prompt response

 

 

Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support

Vinodh247
Solution Sage
Solution Sage

  1. The File format field is required because Fabric Pipelines follow the same connector contract as Dataflow Gen2. The connector expects a format to be declared, even if the activity itself (Get Metadata) does not actually read or parse the file. It is a schema requirement, not a functional one.

  2. Get Metadata does not inspect file content. It only enumerates the file system and returns names, sizes, timestamps, etc. Because it does not read the file, the declared format is ignored at runtime. Binary works as a generic placeholder, so all files are listed regardless of their true type.

HTH!

 


Please 'Kudos' and 'Accept as Solution' if this answered your query.

Regards,
Vinodh
Microsoft MVP [Fabric]
nielsvdc
Solution Sage
Solution Sage

Hi @VaishnaviMu, when you select a specific file format in the Get Metadata activity, the activity doesn’t just filter those file types, it also understands how to interpret the data inside those files. For example, if you choose JSON as the file format, the activity expects files to contain JSON syntax and processes them accordingly. Try selecting XML for a folder in your example: when you click the Preview button, you’ll see an error if the files don’t contain valid XML, because the activity was expecting XML structure.


On the other hand, when you select Binary as the file format, all files are shown because binary is a generic format. In this case, the activity treats the files as raw, unstructured data without attempting to parse their contents.

 

Hope this helps. If so, please give a Kudos 👍 or mark as Accepted Solution ✔️.

Helpful resources

Announcements
December Fabric Update Carousel

Fabric Monthly Update - December 2025

Check out the December 2025 Fabric Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.