Logic App emails Azure data factory

Diana Milena Coronado Granados 1 Reputation point
2021-02-10T12:50:06.567+00:00

Hello
I'm implementing a logic app service in order to sent Email with some statical data from the pipelines execution. I'm facing with some problems because I need the data from some output variables and I'm not able to reach them

This is the flow. At the master pipeline I executed many activities as copy,delete and as well a data flow activity. From the data flow activity I need number of records from source and sink

main data flow.
66463-image.png

main pipeline with the activities
66453-image.png

I need from the Motor_DataFlow per example this -->"RecordsReceived": "@{activity('Motor_DataFlow').output.runStatus.metrics.JsonOutputFile.sources.MotorInputFile.rowsRead}",

Im using this expression -->"RecordsReceived": "@{activity('Execute Janitos_51_Motor_Pipeline').output.runStatus.metrics.JsonOutputFile.sources.MotorInputFile.rowsRead}",

but I'm getting an error that says that runStatus doesn't exists, How can i get data from nested activities from another pipeline??

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

1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,236 Reputation points
    2021-02-11T23:11:04.987+00:00

    Hello @Diana Milena Coronado Granados and welcome to Microsoft Q&A.

    Before the solution(s), let me explain what is happening.

    Details of a given activity are only available to that activity's descendents. Even though the Failure_EmailNotification is a descendent of the Execute Pipeline activity, it is not a descendant of the Motor_Dataflow. This is because the activities are in different pipelines.

    There are two ways to solve this.

    1. Move the Failure_EmailNotification to the child pipeline. This could place the notification at the end where it is connected to Archive_Files_Processed by both a grey skipped dependency and a red failure dependency.
    2. In the Parent pipeline, insert some web activities between the Execute Pipeline and Failure_EmailNotification. These web activities will be used to fetch the pipeline run details via the REST API.
    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.