event based trigger in synapse start only for files smaller than 1mb

Monica Tavares 21 Reputation points
2021-09-21T12:29:45.71+00:00

I need to configure in my pipeline on Synapse, a trigger (event-based) that runs the pipeline only when the container recieves files bigger than 1Mb. This pipeline moves the data from one container to another one.
The trigger is running every day but at the saturdays and sundays we receive some small files (around 20mb size) and we dont want that pipeline starts.
Any suggestions will be appreciated.

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.
4,368 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marius Condescu 76 Reputation points
    2021-09-22T17:12:21.407+00:00

    What works for me is to play around with it:
    https://learn.microsoft.com/en-us/azure/data-factory/control-flow-get-metadata-activity
    see what it needs as configuration, what it returns - use debug option to run the pipeline and then check the activity output.
    Some more info here
    https://stackoverflow.com/questions/65152580/azure-data-factory-v2-check-file-size-for-copy-activity

    Idea would be to have this check as the first step in the pipeline, it cannot, as far as I know, be a part of the trigger.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Marius Condescu 76 Reputation points
    2021-09-21T20:45:58.693+00:00

    You can add a "Get Metadata" activity in the beginning of your pipeline to retrieve the file size and start the pipeline based on it.


  2. Monica Tavares 21 Reputation points
    2021-09-23T14:29:30.333+00:00

    Thnak you! I will do this. :)

    0 comments No comments