how to genertae meta data of OLE DB Source/Flat File Destination dynamically?

  • 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

  • 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

  • as mentioned the flat file destination is a definition of what the file will look like. It does not offer any runtime configuration.

    To do as you mention then you need to use a script task. as in that link.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply