Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


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


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

Author
Message
roryoflynn1
roryoflynn1
SSC Rookie
SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)

Group: General Forum Members
Points: 31 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.
Orlando Colamatteo
Orlando Colamatteo
SSCrazy Eights
SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)

Group: General Forum Members
Points: 8275 Visits: 14368
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
roryoflynn1
roryoflynn1
SSC Rookie
SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)

Group: General Forum Members
Points: 31 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
Orlando Colamatteo
Orlando Colamatteo
SSCrazy Eights
SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)

Group: General Forum Members
Points: 8275 Visits: 14368
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search