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

Excel Connection Manager issue will only preview data when XLSX spreadsheet is open Expand / Collapse
Author
Message
Posted Tuesday, December 4, 2012 2:54 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, December 5, 2012 2:29 PM
Points: 2, Visits: 15
We receive a spreadsheet via FTP from a vendor and have to load the data into SQL Server. When I create the connection manager pointing to the spreadsheet and try to preview the data, I get the following error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code 0x80004005. Error at Load the Excel Data to the Staging Table [Read all the Rows]; Opening a rowset for "CustomExtract$" failed. Check that the object exists in the database. If I open the spreadsheet in Excel and then go back and preview the data through the control, I can see the rows of data. We process other xlsx spreadsheets daily in SSIS so I think it has soothing to do with this particular spreadsheet. Cannot seem to get the Connection to read this particular spreadsheet. If anyone has experienced this behavior before, please point me in the right direction.

My plan B solution was to convert the spreadsheet to csv and then use a flat file connection to load the data. If anyone knows how to do this using a SSIS script task, it would be appreciated.

Thanks
Post #1392711
Posted Tuesday, December 4, 2012 9:04 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, December 8, 2014 7:35 AM
Points: 888, Visits: 672
pls check below link ....
http://www.codeproject.com/Articles/368530/Dynamic-Excel-file-loading-with-SSIS
Post #1392771
Posted Wednesday, December 5, 2012 2:43 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, December 5, 2012 2:29 PM
Points: 2, Visits: 15
The link contained some very interesting and valuable code which I am sure that I will use sometime in the future. After a lot of research the problem seems to be that the workbooks that we obtain from a vendor were created using some kind of a database filter. The result is that the SSIS EXCEL connection thinks that there are two worksheets in the workbook. The actual worksheet (say Data) and a second worksheet with the name Data_xlnm#_FilterDatabase. To make a long story short the solution is to use a Script task to save the workbook as a csv file and read it in using the Flat File Connection. I have done that and it is working. Thanks for your help.
Post #1393228
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse