Try to set below in set variable dynamic expression
@activity('Copy to destination').output.errors[0].Message
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a pipeline with activities like this.
When the copy activity fails, I want to use the error message of the copy activity, and set it in the error variable. How do I get the error message of the copy activity - in the set variable activity for the error message.
Any pointers will be helpful, thanks
Try to set below in set variable dynamic expression
@activity('Copy to destination').output.errors[0].Message
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav
@activity('Copy to destination').error?.message
You will get a failure when there is no "error" output so the "?" says to set if it exists
Below is the correct pipeline expression that has to be provided to track the error message. The expressions that are provided in the above answers are wrong and doesn't work.
@activity('Execute Pipeline1').error.Message
Hi Vaibhav,
I tried your answer but I get this error. My code is: @activity('DF_AAAAA').Output.errors[0].Message and passing this to store procedure. Please note that, my previous activity is data flow.
Hi @Diponkar Paul & @Kothai Ramanathan ,
Please try the following:
Thanks!