What is the best way to check whether Durable Functions failed in Azure Data Factory?

Makoto Oda 291 Reputation points
2021-11-30T01:13:50.333+00:00

When I called Web Activity after Azure Functions Activity (Durable Functions) in a pipeline, Web Activity's Status became 'Succeeded' even if Durable Functions' output.statusQueryGetUri-runtimeStatus is 'Failed'.

What is the best way to check whether Durable Functions failed in Azure Data Factory ?

I currently configure an 'If Condition' Activity after Web Activity.

The 'If Condition' Activity's properties are here:

  • Expression: @equals(activity('<Web Activity's name>').output.runtimeStatus, 'Completed')
  • True: No activities
  • False: 1 Activity
    • Fail Activity

Is there a better way to check whether Durable Functions failed?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,678 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,196 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nasreen Akter 10,791 Reputation points
    2021-11-30T03:05:35.503+00:00

    Hi @Makoto Oda ,

    To check the status for a durable function, you will need a WebActivity after calling the durable function and then an if-else activity to check the status. Please see the screenshots below. Thanks!

    @activity('Retrieve XXX').output.statusQueryGetUri  
    @contains(toUpper(activity('Wait for Completion').output.runtimeStatus), 'COMPLETE')  
    

    153419-image.png

    153525-image.png

    --please mark the answer as accepted, if it was helpful. Thanks--

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful