Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Is this how MaximumErrorCount works?

$
0
0

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

(I did my testing using Microsoft SQL Server Integration Services Designer version 12.0.2344.23.)


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>