Skip to content

Commit 124e445

Browse files
committed
Merge branch 'release-branch-1' of https://github.com/chez-charlie/azure-docs-pr into release-branch-1
2 parents 4051a8e + 9e5a9e0 commit 124e445

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

Lines changed: 3 additions & 7 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've more than two dependency activities, for instance,
137+
* Note: you need concatenated or if you have 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
```
@@ -167,7 +167,7 @@ The pattern is a combination of two: conditional and + error handling. The pipel
167167

168168
:::image type="content" source="media/tutorial-pipeline-failure-error-handling/conditional-complex-1.png" alt-text="Screenshot showcasing pipeline proceeds to next step if any of the activities pass, or else runs error handling code.":::
169169

170-
## Common Patterns
170+
## Common patterns
171171

172172
### Try-Catch-Proceed
173173
The pattern is equivalent to try catch block in coding. An activity might fail in a pipeline. When it fails, customer needs to run an error handling job to deal with it. However, the single activity failure shouldn't block next activities in the pipeline. For instance, I attempt to run a copy job, moving files into storage. However it might fail half way through. And in that case, I want to delete the partially copied, unreliable files from the storage account (my error handling step). But I'm OK to proceed with other activities afterwards.
@@ -183,11 +183,7 @@ 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-
190-
### Generic Error Handling
186+
### Generic error handling
191187
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.
192188

193189
To set up the pattern:

0 commit comments

Comments
 (0)