I'm trying to use Cozy Roc SSIS Data Flow Task+ to dynamically iterate through a list of SQL views and put the results into pipe-delimited text files. (One pipe-delimited text file per SQL view). I have set up all the variables and For Each Loop structures in order to iterate through the views and dynamically set the text file output. My issue is that the sample videos are all going from flat-files into OLEDB and I'm going the other way around. In my OLEDB Source, I've used the Advanced Editor to remove all the columns except one and to rename it THUNK_COLUMN. I've removed them from both the Source Output "External Columns" and "Output Columns." SSIS will not allow you to remove the other column names from the "Source Error Output." I tried renaming them all to notused, but that's not working either. On the flat file destination, I have it set to an expression that determines the filename/path dynamically, too. In that one, with the Show Advanced Editor tab open, I've mapped THUNK_COLUMN to THUNK_COLUMN. I have "Validate Metadata" set to False on both the source & destination components. On the actual CozyRoc Data Flow Task Editor itself, I have the source and destination set to enabled.
When I execute the package, I get the error that the "OLE DB Source Error Output].Columns[notused] on the error output has no corresponding output column on the non-error output." This is because it won't let me remove it.
Can anybody tell me if I'm trying the right approach or not? Will I be able to use an OLEDB Source the same way they did in the "Basics" video with the flat file source and remove the excess columns?
I also tried thesample
package contributed by Paul McMillan, demonstrating dynamic data flow
from the source to the destination database and driven by metadata. He's going OLEDB to OLEDB, though. I can't find anybody going OLEDB to flat file so that I have a reference. Any help is greatly appreciated.