SSIS: Flat File columns change positions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello all,

Some of our clients send us update data periodically (usually every 3
months, but sometimes every 6 months or every year), so I design ssis
packages for each client's project to easily import their update data.

With the project I'm working on now, this client's update data had the
columns in a different order (same columns, same data, just a different
order). The data files are CSV text files with column names/headers in the
first row. The SSIS package was designed for CSV files with column names in
the first row.

Trying to import this client's update data, the SSIS package stopped with
errors....some "cast" error on a derived column task (actual error message
is not important...was trying to import a description column
(string/varchar) into an interest rate column (real)), because the columns
were not in the same order.

It seems the quickest way to fix this is to open the flat file connection
manager for the source file, uncheck "Column names in the first data row" on
the General page, switch to the Columns page, switch back to the General
page and recheck the "Column names in the first data row", and switch back
to the Columns page to reestablish the columns.

Is there any way to design the SSIS package so that it will read the column
names/headers from the first row of the data file and map them accordingly,
instead of mapping the columns in the same order as the original design? If
I remember correctly, DTS did this.

Thanks for any help anyone can provide,

Conan Kelly


.



Relevant Pages

  • Re: Design Notation VHDL or Verilog?
    ... fixed point arithmetic then the fixed point package will help your ... you can add in any pipelining needed. ... With the hardware block multipliers in many FPGAs, ... I use HDLs to design hardware and ...
    (comp.arch.fpga)
  • Re: >> SSIS Error Report
    ... errors and add one of these destination controls to the error branch ... of each SSIS control. ... the import wizard, not developing the packages yourself .. ... One thing you could try is to save the package created by the wizard ...
    (microsoft.public.sqlserver.dts)
  • Re: SqlServer 2005: Want to set up SSIS job to import flat file data into 18 tables on a nightly bas
    ... > Package Execution and Checkpoints. ... I'd like to use SSIS ... >>and successfully imported the flat file into the database table. ... >>using the BI Designer debugger ... ...
    (microsoft.public.sqlserver.dts)
  • Re: >> SSIS Error Report
    ... errors and add one of these destination controls to the error branch ... of each SSIS control. ... the import wizard, not developing the packages yourself .. ... One thing you could try is to save the package created by the wizard ...
    (microsoft.public.sqlserver.dts)
  • YAPIB (was: Drawing graphics on terminal)
    ... (or Yet Another Package Installer Bikeshed) ... >> society that understands art and interior design. ... > installer, what's happening with libh? ...
    (freebsd-hackers)