How to get number of rows written to a sink in ADF or Synapse DataFlow In Pipeline Variable ?

Vedant Desai 656 Reputation points
2022-07-28T10:20:11.783+00:00

**

I have Data Flow in one MetaData Driven pipeline and want to get counts of row inserted in sink into pipeline variable here is my Data Flow and Pipeline :

**

Pipeline :

225757-2.png

DataFlow :

225670-1.png

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

Accepted answer
  1. AnnuKumari-MSFT 34,556 Reputation points Microsoft Employee Moderator
    2022-07-28T11:21:07.45+00:00

    Hi @Vedant Desai ,
    Thankyou for using Microsoft Q&A platform and thanks for posting your query.
    As I understand your ask, you are trying to get the details of number of rows written via dataflow and store it in a variable in Azure data factory pipeline . Please let me know if my understanding is incorrect.

    You can use this expression : @activity('dataflow1').output.runStatus.metrics.sink1.rowsWritten in the set variable activity to achieve the requirement.

    Please check the following thread for more details: Data Flow Output Structure

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • 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
    2 people found this answer helpful.

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.