SSIS Logging to SQL Server does not see Project Connection - ssis

In VS 2019 I am running a simple SSIS package using a OLEDB Connection Manager which I have Parameterized the full db connection string as a Project Paramater.
This connection ('Booking') works fine throughout the package, however I have added SQL Server logging using the same connection and it is available in the configuration dropdown but when I run the package in VS I get the following error right at the start...
"Error: 0xC001000E at Package: The connection "Booking" is not found. This error is thrown by Connections collection when the specific connection element is not found."
The only thing I can think of is that I did rename the connection to 'Booking' and added parameters for teh connection string. Initially it was called something else and had no parameters. Could this renaming be the issue?

Related

SSIS ODBC Source Previews Data But Fails When Executing Package

This is really odd to me. I am using an ODBC connection as a data source in SSIS. I am able to preview data, but when I attempt to execute the package (still within Visual Studio for development), I get an error on the initial data source.
The error I am receiving is:
There was an error trying to establish an Open Database Connectivity (ODBC) connection with the database server.
The AcquireConnection method call to the connection manager xxx failed with error code 0xC0014009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
ODBC Source failed validation and returned error code 0x80004005.
Clearly I have the right username, password, and ODBC connection to some degree, because I am able to see the data. However I am failing on establishing the connection when I attempt to run the package, so I must be doing something wrong. Any idea what it might be?
It ended up being that the drivers associated with the ODBC connection (gsk8ssl.dll) installed on the machine needed to be added to the path variables on both my local and on the server. This was for connecting to a DB2 database.

SSIS Package generation using BIMLC.EXE programatically using c#

While generating SSIS packages using bimlc.exe using c# I'm getting ado.net connection error, it is giving error as could not create managed connection manager, I tried to release the connection and change the connection and acquire it back again still it is getting the same error like below:
cm.ReleaseConnection(null);
cm.ConnectionString = "Data Source=*****;User ID=****;Password=******;Initial Catalog=****;Persist Security Info=****;Integrated Security=*****;";
cm.AcquireConnection(null);
Don't know where the error exists.

Failed to acquire connection to Oracle

I am trying to migrate my data from SQL Server to Oracle through SSIS.A simple package has been created for this particular task which is working completely fine on my local machine. But when I am trying to deploy it on server using config file it is not able to acquire the Oracle connection and failing with below Error:
[Execute SQL Task] Error: Failed to acquire connection "TargetDB". Connection may not be configured correctly or you may not have the right permissions on this connection.
Can anyone help please.
I have checked the permission of account and it is having read/write access.
Also tried validating the package using config file and it is successful. Only when the job runs I face this error.

SSIS The connection is not found. The error is thrown by connections collection

I have created a SSIS package using visual studio 2015 and deployed it SQL 2008 R2 server. I have attached the config file to SQL job step that executes the package and deployed the config file to the location.
When I run the SQL job, I get the error
The connection "XXXXX\SQL2008R2.XXXX" is not found. This error is thrown by Connections collection when the specific connection element is not found
After getting this error i Checked the configurations tab in the job step and noticed that the connections weren't selected
see screenshot below
I then checked the check boxes and reran the package to get the same error
I am not sure that I am missing. It looks like the package is not reading the config file correctly

Can you set the connection of an Exec SQL task through a dtsConfig file

Can you set the connection of an SSIS Exec SQL task through a dtsConfig file?
I have a SSIS package with an Exec SQL task, with it's Connection property set to a OLE Db Connection Manager ... it runs fine in Visual Studio.
Created a package configuration with the connection string of the connection manager, but when I try and run it from DTEXEC, I get the errors ... The specified module could not be found against the connection manager, and then ... Failed to acquire connection "ZZZ". Connection may not be configured correctly or you may not have the right permissions on this connection
No but yes ;)
You cannot directly change the connection manager through a configuration. That property isn't exposed.
What you can do is use your configuration to change the ConnectionString property on an existing Connection Manager that the Execute SQL Task uses thereby changing the connection for an Execute SQL Task at run-time via configuration.
If you need a more detailed walkthrough, I can probably generate some basic biml