Home Forums Data Warehousing Integration Services how to genertae meta data of OLE DB Source/Flat File Destination dynamically? RE: how to genertae meta data of OLE DB Source/Flat File Destination dynamically?

  • I'm not a guy, but I can tell you that there is no provision for dynamic source out of the box.

    den_sidr (10/18/2012)


    Gentlemen,

    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 [141]: 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:

    http://www.sqlis.com/sqlis/post/Creating-packages-in-code-OLE-DB-Source-to-Flat-File-File-Destination.aspx