I have a Script component (Script Transformation), which I need to be able to fail the DFT, i.e. the Data Flow Task that it is part of.
I am firing an error like this
try
{
// Does some work here, which can fail...
}
catch (Exception ex)
{
bool pbCancel = false;
this.ComponentMetaData.FireError(0, Variables.TaskName, "Error message: " + ex.Message, String.Empty, 0, out pbCancel);
}
However, FireError does not cause the task to fail.
Note that this is a script component inside a data transformation task - not a script task.
What do I do to fail this task from the script component?