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 ««123»»

Error with SSIS and Excel Expand / Collapse
Author
Message
Posted Tuesday, April 19, 2011 12:14 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, July 2, 2014 3:59 PM
Points: 213, Visits: 572
I restarted BIDS and checked the permissions. I still get an error.
Post #1095881
Posted Tuesday, April 19, 2011 1:08 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, December 3, 2012 8:26 AM
Points: 26, Visits: 76
I had this error way back in the day. If you are using a new version of Excel - 2010 and you SQL Cerver Version is 2008 the Jet engine is is Excel is incompatible with SSIS 2008. You will not encounter this Jet engione error idf you use A version of Excel 2007 and earlier. Hope this helps.
Post #1095914
Posted Tuesday, April 19, 2011 1:11 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, December 3, 2012 8:26 AM
Points: 26, Visits: 76
I had this error way back in the day. If you are using a new version of Excel - 2010 and you SQL Server Version is 2008 the Jet engine in Excel 2010 is incompatible with SSIS 2008. You will not encounter this Jet Engine error if you use Excel 2007 and earlier. Hope this helps.
Post #1095915
Posted Tuesday, April 19, 2011 2:23 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, July 2, 2014 3:59 PM
Points: 213, Visits: 572
I'm using SQL Server 2008 R2 and Excel 2007. I hope this helps.
Post #1095956
Posted Tuesday, April 19, 2011 2:42 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 11:20 PM
Points: 13,252, Visits: 10,133
imani_technology (4/19/2011)
I'm using SQL Server 2008 R2 and Excel 2007. I hope this helps.


So, if I'm not mistaken, you are using a .xlsx file, right?
If yes, you should use the ACE provider, not the JET provider. (In your original question you said you were using .xls files.)




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1095966
Posted Tuesday, April 19, 2011 2:49 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, July 2, 2014 3:59 PM
Points: 213, Visits: 572
File is an .xls (Excel 97 -2003) file.
Post #1095971
Posted Tuesday, April 19, 2011 2:54 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 11:20 PM
Points: 13,252, Visits: 10,133
OK, just to get things straight.

You are using .xls with the JET provider.
Everything works when you use the sheetname TEST, but the package fails when you use the original sheetname, right?

When you construct the query with the query designer, did you add the table manually or from the Add Table menu?




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1095976
Posted Tuesday, April 19, 2011 3:42 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, July 2, 2014 3:59 PM
Points: 213, Visits: 572
I typed the SELECT statement manually because I couldn't get a list of "tables" in the query builder.
Post #1096002
Posted Tuesday, April 19, 2011 11:59 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 11:20 PM
Points: 13,252, Visits: 10,133
Allright, I tried it out myself. I have an Excel sheet with a space in the name.
I can select the correct sheet from the dropdown, but I can't do a preview. However, the package ran succesfully.

Then I created a SQL statement with the Query Builder. I could select the sheet just fine.
However, preview didn't work, column information wasn't added. Switching back to the dropdown didn't work.
The "connection to the database" was lost. How the JET provider managed to do that, I don't know. Restarting BIDS solved the issue.

After the restart, I could create the SQL just fine and everything worked just as it should be.
Except that the Excel file was locked by BIDS itself. Restart BIDS again. Then it worked flawlessly.

So a space in the sheetname shouldn't be able to stop you. I did notice however that apparently you need to add quotes in the sheet name:

SELECT *
FROM ['Test data$']

Try the SQL statements with the quotes added and restart BIDS, it can do wonders




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1096083
Posted Monday, August 1, 2011 1:30 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, April 3, 2014 4:21 PM
Points: 9, Visits: 118
I don't have a great solution to this problem but I am pretty sure know why you get that error. The name of the sheet is 31 characters. If you change it to 30 characters or fewer then the error should go away.
Unfortunately I do not have other (better) solutions to this at this time.



Post #1152117
« Prev Topic | Next Topic »

Add to briefcase ««123»»

Permissions Expand / Collapse