Azure Log analytics - adfpipeline fields error code erromessage are empty for failed pipelines

Gehlot, Jitendra 21 Reputation points
2022-09-29T11:07:12.58+00:00

I have enabled pipeline run log in default log analytics workspace. other fields are populating but ErrorCode and ErrorMessage fields of ADFPipeline table are empty even for Failed pipelines.

Could you please guide how to enable capturing error message in ADFPipelineRun log analytics table. Thanks!

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,599 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 37,896 Reputation points Microsoft Employee
    2022-09-30T10:38:27.023+00:00

    Hi @Gehlot, Jitendra ,

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

    You are right, on ADFPipelinerun table you see ErrorCode & ErrorMessage Columns as empty. You need to consider using ADFActivityRun table. In ADFActivityRun table you will get data under ErrorCode & ErrorMessage Columns.

    Technically, Pipeline failed means, failure happens on any one of the activities inside pipeline. Hence in ADActivityRun table you will see the ErrorCode and ErrorMessage details.

    Please check below screenshot.
    246438-image.png

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

    ----------------

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


1 additional answer

Sort by: Most helpful
  1. Mohindra, Mukta (Boston) 0 Reputation points
    2023-03-16T18:59:30.1566667+00:00
    ADFActivityRun
    | where Status != 'InProgress' and Status != 'Queued'
    | where TimeGenerated >= ago(24h)
    | order by TimeGenerated desc
    
    I still get nothing
    
    0 comments No comments