i use DataFlow Task in a 'foreach loop' container to transfer different data sets to different files.
DataFlow Task consists of OLE DB Source with sql command from variable and Raw File Destination.
when the data set is the same like default set defined in variable it works fine.
but with defferent data set it fails during validation:
Warning: 0x800470C8 at Load the raw file, OLE DB Source : The external columns for component "OLE DB Source" (141) are out of synchronization with the data source columns. The column "..." needs to be added to the external columns.
The external column "..." (208) needs to be removed from the external columns.
Error: 0xC004706B at Load the raw file, SSIS.Pipeline: "component "OLE DB Source" (141)" failed validation and returned validation status "VS_NEEDSNEWMETADATA".
is it possible to configure OLE DB Source/Flat File Destination dynamically on a data set with any structure?
or maybe thereis only one solution to code it in C# script for example like this: