You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error Handling job runs only when First Activity fails. Next Activity will run regardless if First Activity succeeds or not.
185
185
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
+
186
190
### Generic Error Handling
187
191
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.
188
192
@@ -192,10 +196,16 @@ To set up the pattern:
192
196
* Add generic error handling step to the end of the pipeline
193
197
* Connect both UponFailure and UponSkip paths from the last activity to the error handling activity
194
198
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.":::
196
200
197
201
The last step, Generic Error Handling, will only run if any of the previous activities fails. It will not run if they all succeed.
198
202
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
+
199
209
## Next steps
200
210
201
211
[Data Factory metrics and alerts](monitor-metrics-alerts.md)
0 commit comments