I am trying to create a SSIS package to move data from a source table to a destination table. So My package contains 2 Execute SQL Tasks. The first one finds the source table max date, the next Execute SQL Task creates the destination table, if it does not exist and then finds the destination max date.
Then I have a Data Flow Task and the Delay Validation property on it is set to true. In the DFT I have an OLEDB source that copies the data from the source to the destination using a SQL statement based on the difference between the source and the destination max date. Then I have an OLEDB destination, the connection string for which I set by going to the Show Advanced Editor. I cannot select the table since the table does not exist in the destination database and I want it to be created during the first time when the package is executed and also want the data to be transferred.
When the package is executed it creates the table in the destination DB but it fails to transfer the data giving me the following error
[OLE DB Destination [1529]] Error: A destination table name has not been provided.
[SSIS.Pipeline] Error: "component "OLE DB Destination" (1529)" failed validation and returned validation status "VS_ISBROKEN".
So is there a way to create the table in the destination and transfer data to the destination table at the same time? I thought that was the point of setting the delay validation property to true?
Any idea why I am getting the above error?
I really appreciate any help on this.