ADF Data Flow Mapping shows 0 rows written to Dataverse sink

Noah Gilbert 26 Reputation points
2024-09-26T16:19:01.5633333+00:00

Running a simple set of pipelines with data flow mappings to Dataverse sinks. Data flow runs successfully, but Rows Written through interface consistently shows 0 rows. I can see the rows were written by going to the table in Dataverse.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,924 questions
Microsoft Dataverse Training
Microsoft Dataverse Training
Microsoft Dataverse: A Microsoft service that enables secure storage and management of data used by business apps. Previously known as Common Data Service.Training: Instruction to develop new skills.
39 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 4,840 Reputation points Microsoft Employee
    2024-09-27T18:36:57.54+00:00

    Hello @Noah Gilbert

    It's possible that the metrics for the sink are not being captured correctly. If a sink has zero rows written, it will not show up in metrics. Existence can be verified using the contains function. For example, contains(activity('dataflowActivity').output.runStatus.metrics, 'sink1') will check whether any rows were written to sink1.

    To get the number of rows written to a sink named 'sink1' in an activity named 'dataflowActivity', use @activity('dataflowActivity').output.runStatus.metrics.sink1.rowsWritten.

    To get the number of rows read from a source named 'source1' that was used in that sink, use @activity('dataflowActivity').output.runStatus.metrics.sink1.sources.source1.rowsRead.

    If you are still having issues, it may be helpful to check the debug logs for any errors or warnings related to the sink. You can also try running the data flow from a pipeline and checking the output in the pipeline run details to see if the rows are being written correctly.


    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.


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.