No answer after 8 years. I had the same issue today and I can't think of anything else than this workaround.
Context:
Writing from excel to SQL Server. Need to fail if the date is already present. This is also the parent in the hierarchy of data flow tasks in the control flow so wanted the child transformations to not execute if the parent fails.
Workaround:
- Created a dummy table with one row and 2 columns for date and description. Entered the value "1900-01-02 12:34:56.000" in date and put a description in the other column.
- Passed the Lookup Match Output to another lookup which looks up the dates in excel to this dummy table and will fail eventually.
At least I'm able to fail this and avoid writing duplicate data to 6 other tables that are written as a part of the 6 other data flow tasks which would otherwise execute if the parent task does not fail.