Package status = Succeeded despite errors

  • What is the maximum error count set to on the package?

    If its set to 100 but only 99 errors are raised, its below the threshold so will report as a successful run even though it had errors.

  • Grrr... Such a simple answer! For some reason I'd set it to 0.

    Many thanks.

  • I would have expected it to report a failure in that case, but to be brutal you could add a Script Task to your OnError handler which does this:

    public void Main()
    {
    //Fail the package
    Dts.TaskResult = (int)ScriptResults.Failure;
    }

Viewing 3 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply