0

Microsoft ADF has a set of apis to get the status of a pipeline run.

Ref: https://learn.microsoft.com/en-us/rest/api/datafactory/pipeline-runs/get

In the response, there is an attribute called message.

message | string | The message from a pipeline run.

How can I set this attribute in the pipeline?

Halley
  • 521
  • 10
  • 35
  • Your link seems like a private DevOps repo to me. Is it intended for public sharing? Coz seems like credential is needed to view your response. – ray Oct 14 '21 at 03:06
  • @ray linked my build pipeline there. :facepalm: hope the corporate police is not on their way. – Halley Oct 14 '21 at 03:11

1 Answers1

0

You will have to set it to activity to be able to access the error message from activity and assign it to a variable as below.

@activity('Copy data1').output.errors[0].Message

For more information follow this link.

Abhishek K
  • 3,047
  • 1
  • 6
  • 19