Introduction:
This article discusses the process of deactivating or skipping an activity in Fabric Data Factory pipelines by marking it as inactive. Fortunately, Microsoft has recently introduced an enhancement that allows data engineers to effortlessly customize their data pipelines and skip specific activities.
Prerequisites:
- Microsoft Fabric workspace
- Basic knowledge in Data Factory pipelines.
Table of Contents:
Patterns For Deactivating An Activity:
There are various scenarios in which deactivating an activity within an ADF pipeline can be useful for managing and controlling your data workflows. Here are some complex patterns where activity deactivation can be beneficial:
Demo:
In this blog, I'm employing four activities: a primary copy activity, a notebook activity set to execute upon success, a team's activity triggered by failure, and an outlook activity scheduled upon completion.
Let's examine various pipeline behaviors based on the status of the copy activity.
To do so, we need to change the activity state to 'Deactivated' and select how do we want to mark the copy activity and in all the runs below, the copy activity will be marked as 'inactive'.
Succeeded copy activity:
Mark activity as succeeded:
this will trigger the outlook and notebook activity
Skipped copy activity:
No activities will be executed because we haven't defined any actions to be taken at the skip level.
Failed copy activity:
Only the teams and outlook activities were executed, which is expected because we didn't intend for the notebook activity to run.
To conclude, deactivate an activity in fabric pipelines can be very beneficial for various complex scenarios, please check Microsoft documentation for further information.
Links:
- Deactivate an Activity - Microsoft Fabric | Microsoft Learn
- How to copy data using copy activity - Microsoft Fabric | Microsoft Learn
- Teams activity - Microsoft Fabric | Microsoft Learn
- Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline | Microsoft Fabric Blog |...
Call-To-Action:
- check MS documentation on Fabric.
- Please help us improve by sharing your valuable Microsoft Fabric Preview feedback by emailing us.
- Follow me on LinkedIn for more content: Sally Dabbah | LinkedIn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.