question

PhilipORourke-7866 avatar image
0 Votes"
PhilipORourke-7866 asked PhilipORourke-7866 commented

How to send callin pipeline as pipeline Name in azure data factory pipeline failures

Hi,

Have looked at below and have set up logic app and can get e-mail when pipeline fails.

https://docs.microsoft.com/en-us/azure/data-factory/how-to-send-email

I have set up 2 pipelines

1) pipeline as per above and when run standalone reports name of pipeline which calling send_error_email

2) pipeline called load_customers which has activities and if they fail e.g. copy data and if they fail, execute the pipeline referred to in 1) above.

It runs fine, however the pipelineName reported is the pipeline name send_error_email, rather than the calling pipline from 2)

How can we best ensure that the pipleinename reported in the e-mail is the pipleine which has called the send_error_email (i..e in our case copy_customers)?

Aware can use azure monitor alerts but woudl be good to have this functionality of reporting originating pipelineName

Thanks

azure-data-factory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShaikMaheer-MSFT avatar image
0 Votes"
ShaikMaheer-MSFT answered PhilipORourke-7866 commented

Hi @PhilipORourke-7866,

Thank you for posting query in Microsoft Q&A Platform.

We can achieve this very easily by having a parameter in "send_error_email" pipeline. And for this parameter we should pass value from "load_customers" pipeline.

Please check below implementation to get idea.
197453-image.png

Hope this helps. Please let us know if any further queries.


Please consider hitting Accept Answer. Accepted answers help community as well.


image.png (197.7 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi ShaikMaheer,

Thanks for reply and illustrated example - very useful.

Thanks

0 Votes 0 ·