The SSIS package has a MaximumErrorCount property. Using this property implies that during the execution of a package, the number of errors is counted by the package.
At different points during the execution of a particularly complex set of packages (which, as a rule, MaximumErrorCount are set to higher levels at different points), I would like to be able to fix the current error counter, but I can not find a mechanism for this.
Ideally, this would be a system variable (this is not as far as I can see), so I could build expressions against it on my own, but worst of all, I canโt find a way to capture it in a script either (my VB skills. net is bad, so I might have missed this, but I searched and searched in the object browser without success).
Any SSIS guru knows how I can capture the current error counter at specific points during package execution?
(I tried to inject a simple variable increment into the package-level OnError event handler, but in rare cases this does not seem to synchronize with the actual number of errors โcountedโ by the engine. And in any case, if there is a built-in counter, this would be very preferable and more elegant)
Thanks in advance.
source share