How to FAIL package intentionally?

I need to fail the package intentionally if Send EMail task executes. How can I do that I know there is a property FailPackageOnfailure, that fails the package on task's failure, but how can I fail the package on task's successful execution

Thanks in advance



Answer this question

How to FAIL package intentionally?

  • RobDog888

    How about setting an expression on ForceExecutionResult Setting 1 is failure. This works for me on tasks, success vs failure constraints are followed, but the output window for the package still said success. Maybe the debug host doesn't pick this up, but your normal host would.

  • How to FAIL package intentionally?