I have an sql server connection( source ) and an Excel destination on my d:/ drive. I would like to rvide a dynamic file name to the excel file using a expression: In the connection manager:
ExcelFilePath "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + @[User::File_Path] + @[User::FileName_Product_Hierarchy_XLS] + ";Extended Properties=\"" + "Excel 8.0;HDR=Yes;IMEX=1;"+ "\""
The connection string components cannot contain unquoted semicolons. If the value must contain a semicolon, enclose the entire value in quotes. This error occurs when values in the connection string contain unquoted semicolons, such as the InitialCatalog property.
The file name is generated using a SQL task and assigned to the variable @[User:: FileName_Product_Hierarchy_XLS]
I also tried to add a quote at the end but did not work.
The SSIS Package is not transferred to an SQL Server, there is no SSIS catalog, it is purely n design mode on a normal windows machine.
Any Ideas what I need to change to make it work?
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + @[User::File_Path] + @[User::FileName_Product_Hierarchy_XLS] + ";Extended Properties=\"" + "Excel 8.0;HDR=Yes;IMEX=1;"+ "\"";"
I already tried to set quotes like:
in the connection manager:
ExcelFilePath "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + @[User::File_Path] + @[User::FileName_Product_Hierarchy_XLS] + ";Extended Properties=\"" + "Excel 8.0;HDR=Yes;IMEX=1;"+ "\""
the result should be that the Excel File receives the File name provided by the SQL statement, which basically only changes the date.
I changed the setting "DelayValidation to True" Still getting the error