Skip to content

Commit 4051a8e

Browse files
committed
Update Generic Error Handling Step
1 parent 9f1b50d commit 4051a8e

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed
32.9 KB
Loading
Loading

articles/data-factory/tutorial-pipeline-failure-error-handling.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ In some cases, you may want to invoke a shared error handling or logging step, i
134134
```json
135135
@or(equals(activity('ActivityFailed').Status, 'Failed'), equals(activity('ActivitySucceeded').Status, 'Failed'))
136136
```
137-
* Note: you need concatenated or if you have more than two dependency activities, for instance,
137+
* Note: you need concatenated or if you've more than two dependency activities, for instance,
138138
```json
139139
@or(or(equals(activity('ActivityFailed').Status, 'Failed'), equals(activity('ActivitySucceeded1').Status, 'Failed')),equals(activity('ActivitySucceeded1').Status, 'Failed'))
140140
```
@@ -183,6 +183,10 @@ To set up the pattern:
183183

184184
Error Handling job runs only when First Activity fails. Next Activity will run regardless if First Activity succeeds or not.
185185

186+
You can add multiple activities for error handling.
187+
188+
:::image type="content" source="media/tutorial-pipeline-failure-error-handling/error-handling-2-try-catch-multiple.png" alt-text="Screenshot showcasing pipeline with try catch block with multiple activities.":::
189+
186190
### Generic Error Handling
187191
Commonly, we have multiple activities running sequentially in the pipeline. If any fails, I need to run an error handling job to clear the state, and/or log the error. For instance, I have sequential copy activities in the pipeline. If any of these fails, I need to run a script job to log the pipeline failure.
188192

@@ -192,10 +196,16 @@ To set up the pattern:
192196
* Add generic error handling step to the end of the pipeline
193197
* Connect both UponFailure and UponSkip paths from the last activity to the error handling activity
194198

195-
:::image type="content" source="media/tutorial-pipeline-failure-error-handling/error-handling-2-generic-no-branching.png" alt-text="Screenshot showcasing pipeline with generic error handling in a pipeline with no branching.":::
199+
:::image type="content" source="media/tutorial-pipeline-failure-error-handling/error-handling-3-generic-no-branching.png" alt-text="Screenshot showcasing pipeline with generic error handling in a pipeline with no branching.":::
196200

197201
The last step, Generic Error Handling, will only run if any of the previous activities fails. It will not run if they all succeed.
198202

203+
You can add multiple activities for error handling.
204+
205+
:::image type="content" source="media/tutorial-pipeline-failure-error-handling/error-handling-4-generic-no-branching-multiple.png" alt-text="Screenshot showcasing pipeline with generic error handling in a pipeline with no branching and multiple activities.":::
206+
207+
208+
199209
## Next steps
200210

201211
[Data Factory metrics and alerts](monitor-metrics-alerts.md)

0 commit comments

Comments
 (0)