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

ExcelFilePath disappears after setting the ConnectionString dynamic (Expressions) Expand / Collapse
Author
Message
Posted Wednesday, October 2, 2013 3:43 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, May 6, 2014 2:17 AM
Points: 101, Visits: 197
Hi,

I have two similar SSIS packages and the other one works fine but the other does not.

I have two template excel files in a dir and they are set as the source excels in the connection manager in each package respectively. Why do I have those templates is that at least for me, unlike with Flat File connections, the Excel-connections does not obey the 'DelayValidation = True' setting, instead there has to be the file present with the same name.

This is not the cause of my trouble though.

In the other package the ExcelFilePath disappears after setting the ConnectionString dynamic (Expressions). The other one works fine. I have tried to delete and do the connection again but no luck. I just don't get it. Could some one open my eyes please!

Ville

VisualStudio 2008
Microsoft Visual Studio 2008
Version 9.0.30729.4462 QFE
Post #1500706
Posted Wednesday, October 2, 2013 3:56 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 11:26 AM
Points: 13,622, Visits: 10,514
What do you mean with dissapears?
What is the expression?

Regarding the need for an Excel file to be present: unlike a flat file, you need to look at an Excel workbook as a database. The workbook is the database, the sheets are the tables. When you write data to a database, you'd expect the database and the tables to be there, don't you?




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 #1500709
Posted Wednesday, October 2, 2013 4:16 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, May 6, 2014 2:17 AM
Points: 101, Visits: 197
The field clears...

But I just remembered that I had a perfectly well working project with same kind of situation and with Excel sources you must have the ConnectionString expression in the format below:

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + @[User::CSVFile] + ";Extended Properties=\"EXCEL 8.0;HDR=YES\";"

(I only had @[User::CSVFile] - this is painful that SSIS won't generate it in the format...)

and

in the Variables sheet ( SSIS / Variables menu) you must have the Value set to the existing template file:

D:\kespro\input\DO_NOT_REMOVE_CustomerMasterTemplate.xls


Ville

Post #1500716
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse