SSIS: Dynamic Dataflow OLEDB Destination Component doesn't update metadata

时间:2018-06-04 16:45:35

标签: dynamic ssis dataflow

I am working on moving prod data to dev. I have a table on the dev side that has a list of tables and optionally a column name that is a date column to restrict the data tranferred to a specific date range. I set up a for each loop to iterate through each table and move data from prod to dev. There are two dataflow tasks, one executed if there is a date column, and one for when there isn't. If there is a date column the source component of the dataflow task uses a query variable, if not the source uses a table from a variable. The delay validation property of each dataflow is set to true. The dataflow source component is OLEDB with the validate metadata property set to false. The dataflow destination is table from variable and again the validate meta data property is set to false. In the first iteration of the dataflow task when there is a date column it transfers the data properly. On the second iteration it updates the metadata for the source correctly but not the for the destination and fails. In the first iteration of the dataflow task when there is no date column (source is set to table variable) itbehaves in the same manner as the second iteration of the date column case. How do force the destination component to dynamically update the metadata for each iteration?

0 个答案:

没有答案