How to update log table with Error Message of ForEach?

Anuganti Suresh 200 Reputation points
2024-03-04T13:24:13.14+00:00

How to capture Error Message of ForEach activity in log table? Am using set variable to store error message but not finding activity('ACT_ITRC_FOR_Xref_ObjectType_Reference).output

of ForEach activity.

Is there any better solution?

User's image

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

Accepted answer
  1. Subashri Vasudevan 11,206 Reputation points
    2024-03-19T07:19:26.6833333+00:00

    Hi @Anuganti

    I am reposting your answer, as the original poster of the question cannot accept his or her own answer. In order for us to close this thread, please accept this answer.

    By typing the below expression in a set variable or from a subsequent activity , we can get the error associated with a for each activity. > @activity('Forward').Error.Message1000108257

    1000108258

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anuganti Suresh 200 Reputation points
    2024-03-04T16:35:01.35+00:00

    Below solution solved the issue.

    User's image

    User's image

    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.