ADF: Capture Previous Task Details throws error

312 Views Asked by At

I am trying to capture the error from failed activity in a variable activity or in web request activity for sending email. I am using “@activity().error.message” to capture it. It is throwing the attached error.

Any help is appreciated to resolve this. Thank you.

error message

Web Activity dynamic content: enter image description here

1

There are 1 best solutions below

14
On BEST ANSWER

Please try to use this expression:

@activity('Activity name').Error.Message

Update

I test this expression and it works fine.

enter image description here

enter image description here

enter image description here