How to pass count of number rows affected in dataflow sink to piepleine

heta desai 247 Reputation points
2022-08-09T11:11:31.093+00:00

I have created one dataflow where source is Azure SQL and sink is inline database Delta table. I want to get number of rows inserted in sink and pass those counts to pipeline and assign it to variable.

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,553 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,893 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Nandan Hegde 29,996 Reputation points MVP
    2022-08-09T11:27:01.553+00:00
    1 person found this answer helpful.

  2. AnnuKumari-MSFT 31,731 Reputation points Microsoft Employee
    2022-08-09T12:37:18.55+00:00

    Hi @Anonymous ,

    Thankyou for using Microsoft Q&A platform and thanks for posting your question.

    As I understand your ask, you want to get the count of rows written while using dataflow to copy data from Az SQL to Delta sink. Kindly let me know if my understanding is incorrect.

    The above mentioned solution will work for all other sink dataset but for delta target, this capability is still not there. You would get 0 as the count in all scenarios. It is a known limitation when you use Delta as the sink.

    For more details, kindly go through the official documentation: Known limitation of Delta format in Azure data factory

    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
    1 person found this answer helpful.