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


Error with SSIS and Excel


Error with SSIS and Excel

Author
Message
imani_technology
imani_technology
SSC Veteran
SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)

Group: General Forum Members
Points: 278 Visits: 777
I restarted BIDS and checked the permissions. I still get an error.
GaMusicMan
GaMusicMan
SSC Rookie
SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)

Group: General Forum Members
Points: 34 Visits: 98
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.
GaMusicMan
GaMusicMan
SSC Rookie
SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)

Group: General Forum Members
Points: 34 Visits: 98
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.
imani_technology
imani_technology
SSC Veteran
SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)

Group: General Forum Members
Points: 278 Visits: 777
I'm using SQL Server 2008 R2 and Excel 2007. I hope this helps.
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16546 Visits: 13210
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 SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
imani_technology
imani_technology
SSC Veteran
SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)

Group: General Forum Members
Points: 278 Visits: 777
File is an .xls (Excel 97 -2003) file.
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16546 Visits: 13210
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 SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
imani_technology
imani_technology
SSC Veteran
SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)SSC Veteran (278 reputation)

Group: General Forum Members
Points: 278 Visits: 777
I typed the SELECT statement manually because I couldn't get a list of "tables" in the query builder.
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16546 Visits: 13210
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 SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
anitalala
anitalala
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 132
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.



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