Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Excel Connection Manager using Variable

$
0
0

In SSIS 2008 R2, I am trying to use variable + String value in the Excel connection manager property. Like,

Variable: @[User::ExcelFilePath] 

Value C:\InputFiles\

And inside the property of the Excel Connection Manager, under Expression i chose 'ConnectionString' value as 

@[User::ExcelFilePath] + "TestingSamples.xls" 

But i get the following error,

Nonfatal errors occurred while saving the package:
Error at ExcelLoad [Connection manager "Excel Connection Manager"]: The connection string format is not valid. It must consist of one or more components of the form X=Y, separated by semicolons. This error occurs when a connection string with zero components is set on database connection manager.

Error at ExcelLoad: The result of the expression "@[User::ExcelFilePath] + "TestingSamples.xls"" on property "ConnectionString" cannot be written to the property. The expression was evaluated, but cannot be set on the property.

The same is working fine for text file, like

@[User::ExcelFilePath] + "masters.txt"

I searched for a solution but i didn't get a proper solution.

Can anyone help me?

Thanks !


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>