Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Issue Loading excel files into SQL SERVER 2008 database using SSIS package. Expand / Collapse
Author
Message
Posted Friday, March 29, 2013 1:55 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, April 3, 2014 2:53 AM
Points: 21, Visits: 135
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.
Post #1437082
Posted Friday, March 29, 2013 2:56 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 6:32 AM
Points: 7,135, Visits: 12,745
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
Post #1437098
Posted Saturday, March 30, 2013 5:38 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, April 3, 2014 2:53 AM
Points: 21, Visits: 135
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
Post #1437195
Posted Monday, April 1, 2013 11:39 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 6:32 AM
Points: 7,135, Visits: 12,745
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
Post #1437548
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse