Hello,
The documentation for class DtsContainer's MaximumErrorCount property says that it "...indicates the maximum number of errors that can occur before theDtsContainer object stops running" (emphasis mine). Based on my experimentation, this description is misleading.
From what I can tell, when the number of errors occurring inside a container reaches or exceeds itsMaximumErrorCount, the container does not stop running; rather, it sets its execution/completion status to Failure (unless overridden by ForceExecutionResult). TheFor and Foreach Containers then use the execution/completion result of the previous iteration to determine whether to start a new iteration.
So (assuming that ForceExecutionResult isn't set):
- If a Package or Sequence Container reaches its MaximumErrorCount,execution doesn't stop but completion status is set to Failure.
- If a For or Foreach Container reaches its MaximumErrorCount, the containerstops looping after finishing the current iteration and sets completion status to Failure.
Is this an accurate understanding or am I missing something here? :-)
Thank you,
Ben