What is the default behavior of the batch job after the error is thrown?

A Batch Job scope has five batch steps. An event processor throws an error in the second batch step because the input data is incomplete .

What is the default behavior of the batch job after the error is thrown?
A . All processing of the batch job stops.
B . Event processing continues to the next batch step.
C . Error is ignored
D . Batch is retried

Answer: A

Explanation:

In case of an error, batch job completes in flight steps and stops further processing.

MuleSoft Doc Ref: Handling Errors During Batch Job | MuleSoft Documentation

The default is all processing will stop but we can change it by Max Failed Record field.

General -> Max Failed Records: Mule has three options for handling a record-level error:

Finish processing, Continue processing and Continue processing until the batch job

accumulates a maximum number of failed records. This behavior can be controlled by Max

Failed Records.

The default value is Zero which corresponds to Finish processing.

The value -1, corresponds to Continue processing.

The value +ve integer, corresponds to Continue processing until the batch job accumulates a maximum number of failed records

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments