Azure Data factory pipeline activities error

JyotiranjanMangaraj-9122 1 Reputation point
2022-09-16T06:40:13.24+00:00

Hi,

Anyone can suggest, how to get/catch exact error message in azure data factory pipeline activity and send email.

Thanks
JR

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

2 answers

Sort by: Most helpful
  1. Kuldeep Singh 16 Reputation points
    2022-09-16T07:58:20.233+00:00

    I can see 2 problem statements here,

    1. Get/catch exact error message:
      This can be resolved by following below steps:
    • Define a pipeline variable
    • Add 'Set variable' activity to your pipeline
    • Pipe your existing activity failure head to the 'Set variable' activity.
    • In Set variable activity use @activity('YourPrimaryAtivity').Error.Message
    • Now your error message is captured in a variable which can be further passed to any data stores like SQL database, blob storage.
    1. Send Email.
      This can be resolved by following below steps:
      • Set up an event trigger on your data store where you are logging error and create alerts from Azure monitor.
    1 person found this answer helpful.
    0 comments No comments

  2. Subashri Vasudevan 11,226 Reputation points
    2022-09-16T14:16:52.797+00:00

    Hi @Anonymous

    In addition to the above answer,

    You can refer to this video for capturing error message and sending mail via logic apps

    Hope it helps.

    Thanks

    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.