SSIS Error: [DTS.Pipeline] Error: component “” (1) failed the pre-execute phase and returned error code 0xC0010001.

I was working in an SSIS package recently, and kept getting the following error:

[DTS.Pipeline] Error: component “<taskname>” (1) failed the pre-execute phase and returned error code 0xC0010001.

Pretty non-descriptive.  This source is using a parameterized query in an OLE DB source.  The problem was I had forgotten to set the parameter’s value to a package variable.  So if you’re getting this error, check your query’s variables.