Activity Dependencies with Logical AND in ADF

Introduction

In this article we are going to discuss about Activity Dependencies at ADF Control flow. As a SSIS developer we all have Experience about Precedence Constrains and how useful it is when building SSIS control flow. In ADF we have the similar concept with some limitation. Depends on this, we have to design our control flow in ADF.

Hope it will be interesting.

 

Precedence Constraints in SSIS

Before moving further, we have to review our SSIS Precedence Constraints.

 


Here we have:

1.      Constraint – Success, Failure, Completion

2.      Expression

3.      Logical AND / OR

 

It is really flexible.

 

Activity Dependency in ADF

 


 

In ADF Activity Dependencies provides only Logical AND not any Logical OR.

It has Add Activity on:

1.      Success

2.      Failure

3.      Completion

4.      Skipped

 

ADF Control Flow Wrong Design Pattern

 


 

In the above control flow design patter, the Stored Procedure Activity is not executed until The Get Meta Data Activity and ForEach Activity gives some error. As we told before that Activity Dependencies comes only with Logical AND operator. So, in this situation if both the Get Meta Data Activity and ForEach Activity Fails then the Stored Procedure Activity is Executed others Not.

 

ADF Control Flow Correct Design Pattern

To fix the above scenario, we can move into two approaches.

 

Approach-1

 


 

Approach-2

 


 

 

 

Hope you like it.


Comments

Popular Posts

Using Lookup in ADF Data Flow

Vertipaq Engine – Column & Segment Elimination