ADF Get-MetaData activity file size option not visible in case of Binary data set

Shiv Kumar 40 Reputation points
2023-05-04T10:50:37.6566667+00:00

I have a requirement where I need to copy non-Zero compressed files from SFTP server. I have created a binary data set. But when I am trying to get the file size from Get-MetaData activity, FIleSize option not visible.

How i can get the zipped/Compressed file size in ADF or Synapse pipelines.

Please Suggest.

Thanks,
Shiv

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,294 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,425 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Diego Menese 1 Reputation point
    2023-10-26T13:11:35.4733333+00:00

    It's a bit weird that "Size" does not show up in the drop-down list, but I found that you can add it manually and it works fine. Simply add a new field and select "Add dynamic content" and then in the dynamic content window type "Size":

    User's image

    And then when debugging it works fine (returning the size in bytes):

    User's image

    Hope it helps!

    Thanks,
    Diego.

    0 comments No comments

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.