I’m calling the Activity Runs Rest API from a parent pipeline to capture any errors in a child pipeline.
However, no data, of any kind, is being returned in the Value
array.
Here are my settings.
Web activity
URL
Body
{ "lastUpdatedAfter": "2023-05-23T00:00:00.3345758Z",
"lastUpdatedBefore": "2023-05-30T00:00:00.3686473Z" }
I’ve set an activity in the child pipeline to fail.
This is the response – nothing in the Value
array
{
"value": [],
"ADFWebActivityResponseHeaders": {
"Pragma": "no-cache",
"x-ms-correlation-request-id": "94cxxxx0-xxxx-xxxx-xxxx-b0842c922b3f",
...
},
"effectiveIntegrationRuntime": "AutoResolveIntegrationRuntime (West Europe)",
"executionDuration": 0,
"durationInQueue": {
"integrationRuntimeQueue": 0
},
"billingReference": {
"activityType": "ExternalActivity",
"billableDuration": [
{
"meterType": "AzureIR",
"duration": 0.016666666666666666,
"unit": "Hours"
}
]
}
}
I’ve tried both the parent pipeline runid and the child pipeline runid in the URL and both return an empty Value
array.
What am I missing?
2
Answers
You need to make sure that the pipeline whose execution details you want to capture is executed via ‘Trigger’ mode and not ‘Debug’ mode. So , you need to publish and trigger the pipeline, capture the pipeline runid and pass the same in the web activity.
Agreed with @AnnuKumari to get activity run details the pipeline should be run with trigger does not debug mode faced same issue but when I triggered it I got an output. Also make sure that is right one and runs exist between the interval specified (UTC).
Also, as you want the activity run details of child pipeline activity. you need to provide its run id as
@{activity('Execute Pipeline1').output.pipelineRunId}
Sample URL:
My execution:
Output: