Failure in SSIS connection manager - database

I'm new to SSIS. I have tried to use the ODBC connection manager that was already in the list to extract the source data, but failed with the following error message:
The AcquireConnection method call to the connection manager failed with error code 0xC0014009.
The ODBC connection manager is connected to IBM informix.
I have referred to the existing projects and found that they all used the same connection manager and it works fine.
I have tried the 'Test Connection' and it went well. But when I execute the package, error came out.
What could be the possible reason that I can't use the existing connection manager?

Related

SSIS Package does not work after switching it to Don't save sensitive

I have an SSIS package which runs a SQL command to truncate a table. The package works perfectly fine when it is on the ProtectionLevel "Encrypt sensitive data with user key", however I am trying to remove all encryption on it so I can run it as a job on the SQL server agent (following another solution: SSIS issue Failed to decrypt protected XML node)
Somehow just changing this one setting causes the entire package to fail. The error says that the OLE DB connection that is used on the SQL Task cannot log in:
[Execute SQL Task] Error: Failed to acquire connection "DestinationConnectionOLEDB". Connection may not be configured correctly or you may not have the right permissions on this connection.
I check inside the connection "DestinationConnectionOLEDB" I am unsure why it provides this error as when I open the connection, and put in the credentials and test the connection, it gives me the "Test connection succeeded" Any ideas where I am going wrong?
Your help is greatly appreciated.

BIML AdoNetConnection with Oracle.ManagedDataAccess fails to validate

I am trying to generate SSIS packages with BIML to load data from an Oracle (11.2) to the staging area of our DWH on SQL Server.
I had no issues whatsoever creating the job in plain SSIS. However, using the exact same connection string on the AdoNetConnection node in BIML gives me the following validation error when I try to generate the SSIS packages:
FlowFramework, Version=5.0.63316.0, Culture=neutral,
PublicKeyToken=015f370a62f9a1a3. Node ADO NET Source: Could not
execute Query on Connection ORA_TEST
A network-related or instance-specific error occurred while
establishing a connection to SQL Server. The server was not found or
was not accessible. Verify that the instance name is correct and that
SQL Server is configured to allow remote connections. (provider: SQL
Network Interfaces, error: 25 - Connection string is not valid).
The wording "SQL Server" made me wondering if for some reason the specified provider is ignored (that if the error is piped through from the underlying provider).
I created a minimal example for testing purposes that's just a source-target mapping and reverse engineered it using BIMLExpress. The connection manager looks as this (I added the password part):
<AdoNetConnection Name="ORA_TEST"
CreateInProject="true"
ConnectionString="DATA SOURCE=XXXX:1521/XXXX;USER ID=XXXX;Password=XXXX;PERSIST SECURITY INFO=True;"
Provider="Oracle.ManagedDataAccess.Client.OracleConnection, Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
The reverse engineered minimal example throws the very same error, even though the connection string and provider are identic to the ones I can see when I right click on the working (manually created) connection manager and click "View code".
Resorting to an OleDb connection is not an option in our case. We're using a managed SSIS runtime on Azure and failed to get the OleDb provider for Oracle working on it. The manually built package using the Ado.NET connection manager works, which is why I need to figure a way to generate the package with an Ado.NET connection and the Oracle Managed Data Access provider.
Any ideas how to fix this?

Odata: Cannot acquire a managed connection from the run-time connection manager

Problem
Get the error (see below) when executing an SSIS Odata connection to the Medicare Data site despite successfully previewing data.
Tried
Running as 32-bit
Reinstalling the driver
SSIS Error in Debug
Error: 0xC020801F at data convert, OData Source [21]: Cannot acquire a managed connection from the run-time connection manager.
Error: 0xC0047017 at data convert, SSIS.Pipeline: OData Source failed validation and returned error code 0xC020801F.
Error: 0xC004700C at data convert, SSIS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at data convert: There were errors during task validation.
Turns out its a really dumb thing: use http instead of https despite the Medicare site reference to https
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/72a5752a-22e5-4542-97c3-7a4044e0fea5/ssis-odata-source-works-in-development-but-fails-when-run-0xc020801f
Can you open the SSIS package from within Visual Studio shell, and then look at the oData connection and test it? I'm having a similar problem, and when I test my connection, I'm getting an Internal Server Error (500) returned from the SharePoint server where I'm trying to connect.

How can I configure an SSIS ODBC Connection Manager for an Oracle DB?

I am trying to connect to an Oracle DB using an ODBC connection manager in SSIS. The ODBC DSN that I created works for MS Access, but when trying to create and configure a source task in SSIS, the following error message is displayed:
Test connection failed because of an error in initializing provider.
ERROR [IM003] Specified driver could not be loaded due to system error
1114; A dynamic link library (DLL) initialization routine failed.
(Oracle in instantclient_11_2,
C:\oralce\instantclient_11_2\SQORA32.dll).
Any suggestions?

Cannot update Excel source properties in SSIS package

I have an SSIS package that imports an excel spreadsheet into an SQL Server 2008 database.
I have an Excel connection in the Connection Managers tab and it points to an Excel file on my local computer.
But when I open the Excel Source in Data Flow, if I try to view columns or change the "Name of Excel sheet:" I get this error.
Error at LoadMasterData [Connection manager "SourceConnectionExcel"]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft JET Database Engine" Hresult: 0x80004005 Description: "Unspecified error".
Error at Data Flow Task 1 [Source - Sheet1$ [1]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "SourceConnectionExcel" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
The package was saved from SQL Server Management Studio using Import Data. When I run the package it works fine but I want to be able to specify the spreadsheet name as a variable. When I change the option to specify the sheet name as a variable, it won't let me close the window with the "OK" button, and just keeps giving me the same error as above.
Has anyone experienced this behaviour before that can help me get this working?
Thanks
Are you running on 32bit or 64bit? if you're on 64bit you need to know that there are no providers for Excel - you'll have to enforce the package to not use 64bit. Right click project, properties, debugging: Run64BitRuntime - set to false.

Resources