Search code examples
azure-data-factoryadf-task-flow

ADF: Capture Previous Task Details throws error


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


Solution

  • 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