SSIS - How to handle missing flat file in dataflow task

I have an SSIS package that is a simple dataflow task. I have a mail task off the data flow task as a "failure" task to email me if the dataflow fails. The dataflow consists of a flat-file source to an OLEDB destination. If I delete the input file and run the package the data flow task "fails" but never goes to the mail task. If I open the data flow task the flat-file source is red and that's it. In the Progress window it says the flat-file source component failed in pre-execute.

Other than adding a step prior to the data flow to check for the file and email if it is missing, is there a way to get the data flow task to fail and just fall through to the failure mail task in the package?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dear Friend,
Check the answer I gave here:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rschaeferhigAuthor Commented:
This is basically what we thought we had to do, but I was hoping there was a way to set the Data Flow to fail if the input file was not present.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.