I have a SSIS package that I saved using the import wizard in SSMS. The import uses a table to hold all of the values imported from a flat file before exporting those values into a permanent table. For example, the flat file itself is imported into ‘mytable’. The contents of ‘mytable’ are then transferred to ‘mypermanenttable’. I recently added a drop mytable SQL statement to the end of the SSIS package. Since I am now missing ‘mytable’ when I run the SSIS package again, I added a T-SQL statement to before the ‘Preparation SQL Task 1’ step in Control Flow that would create ‘mytable’ before the import begins. I get an error when I try running the entire SSIS package. I can however run every step of the SSIS process one by one and complete the entire package without any problems this way. I am guessing there is some validation in the ‘Preparation SQL Task 1’ step that checks for ‘mytable’ before my create table ‘Execute T-SQL Statement Task’ runs. How would you fix this issue?

Set
DelayValidationproperty ofData Flow Task 1toTrue. Validation will be fired just before running this task, after creation of your staging table.