Issue Loading excel files into SQL SERVER 2008 database using SSIS package.

  • Hi,

    I use a ForEachLoop container in SSIS to import 427 xlsm files into a SQL Server 2008 R2 database.

    I use an Excel dataflow source and everything loads as expected except for 4 files out of 427.

    All the excel files are formatted in the same way and I cannot find any obvious reason why I am having issues with these 4 files only.

    The process takes data from 3 separate tabs in each file and loads to a staging table in the database.

    All 4 files are presenting issues from the same tab.

    All 4 files present the same SSIS errors

    [Excel Source [769]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.

    [Excel Source [769]] Error: Failed to retrieve long data for column "f1".

    [Excel Source [769]] Error: There was an error with output column "f1" (869) on output "Excel Source Output" (777). The column status returned was: "DBSTATUS_UNAVAILABLE".

    [Excel Source [769]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "output column "f1" (869)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "f1" (869)" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.

    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Excel Source" (769) returned error code 0xC0209029. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.

    Any guidance appreciated, thanks.

  • It sounds like a data-driven error. Check the data types on your Excel Source to make sure they match the columns they are mapped to in the Excel file. In the files that fail, check for rows of data where the data in a particular cell might be much longer than all the other cells.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • Hi,

    thanks for your input...

    I eventually got these files loading..

    i noticed a few what i thought to me to be minor differences between the layout of the working tabs and the none working tabs.

    I then copied out the layout faulty tab exactly as the working tab. I then had to rename the faulty tab (with the same name) and now they are working....seems more voodoo than science...but its working so that makes me happy enough ....thanks for your help

  • Anytime. Thanks for posting back the nature of the problem and solution so others may benefit.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

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