Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
JoachimSA
Helper II
Helper II

Pipeline Activity with multiple conditions

Hi folks,

 

i have a real basic question that I am not finding the answer to:

JoachimSA_0-1712156697859.png

Will the "TMM Mapping " Notebook in the example above wait for both the "SOP Bucket Creator" and "Load TMM DB" before it starts to run ?

 

Thans for your help!

Joachim

1 ACCEPTED SOLUTION
v-nikhilan-msft
Community Support
Community Support

Hi @JoachimSA 
Thanks for using Fabric Community.
I have created a repro of your scenario:

vnikhilanmsft_0-1712201858927.png


1) Inititally the Dataflow1 and Dataflow2 will start running. 
2) After this the Notebook1 starts running.
3) If both Notebook1 and Dataflow2 run successfully , then the Notebook2 starts running.

vnikhilanmsft_0-1712202615457.png

Hope this helps. Please let me know if you have any further questions.

View solution in original post

7 REPLIES 7
JoachimSA
Helper II
Helper II

Perfect thank you!

Just to confirm: all activities without a condition will be triggered on pipeline start ?

I have a scenario where i would want to switch off certain parts of the pipeline depending on which input data was changed in the background so I do not need to run through everything for every small update of some side info.

 

are there any ressources on how one would switch off certain branches of the tree of activities ?

If an activity is switched off but is still connected to the following node it will be taken out of the condition for the following node to run right ?

 

I just wasn able to find very good documentation on those very basic questions...do you have a hint for me ? 

Thanks and best regards,

Joachim

 

Can you plz provide a normal PPT/ visual representaion of what you want to achieve? 
To ans to your query, yes
all activities without any dependency would run paralley on pipeline start.

And you can switch / turn off activities based on multiple approaches like leveraging IF or Switch activity or via dependencies.

A visual representation of your ask would help us help you better

Hi Nandan,

 

so depending on which inputs changed i would like to easily exclude each of the 3 Highlighted Blocks individually from updating.

JoachimSA_0-1712222576750.png

 

As you can See, at the moment i just deactivated some of them. Would that be the way to go ? Longer branches get increasingly cumbersome to switch on and of then.

 

Also: Each activity write a deltatable at the end which is the used by the next one. Is that the optimal way when I work in a Lakehouse ?

You can create a parameter at the pipeline level and then leverage IF activity to either enable that flows or ignore those and procced.
So rather than just disbaling the activities, you can pass the parameter at run time to either enable or skip the flows

thanks, i think i could figure something out 🙂
Are there any good examples / best practices / tutorials on this ? I feel like most stuff I find online are not covering these kinds of things

v-nikhilan-msft
Community Support
Community Support

Hi @JoachimSA 
Thanks for using Fabric Community.
I have created a repro of your scenario:

vnikhilanmsft_0-1712201858927.png


1) Inititally the Dataflow1 and Dataflow2 will start running. 
2) After this the Notebook1 starts running.
3) If both Notebook1 and Dataflow2 run successfully , then the Notebook2 starts running.

vnikhilanmsft_0-1712202615457.png

Hope this helps. Please let me know if you have any further questions.

NandanHegde
Super User
Super User

yes, it would wait for both the previous activities to be completed and that too succesfully completed before it starts its execution.

The dependencies in data pipe lines acts as an AND expression.

Reference : https://datasharkx.wordpress.com/2024/02/17/error-logging-and-the-art-of-avoiding-redundant-activiti...

 

Helpful resources

Announcements
April Fabric Update Carousel

Fabric Monthly Update - April 2024

Check out the April 2024 Fabric update to learn about new features.

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors