Failed to acquire connection. Connection may not be configured correctly or you may not have the right permissions on this connection

Pavvy picture Pavvy · Jul 7, 2017 · Viewed 9.5k times · Source

I am getting following error while attempting to execute the package. I can execute individual task successfully. But whenever attempt to execute whole package it gives me error. SSIS Data flow on distributed transaction - [Execute SQL Task] Error: Failed to acquire connection "targetCon2". Connection may not be configured correctly or you may not have the right permissions on this connection.

I went through many links but nothing worked for me so starting a new thread. I checked SQL Agent Job - Connection may not be configured correctly or you may not have the right permissions on this connection?

SSIS package fail due to 'acquire connection' error

SSIS Package failing with "Failed to acquire connection" error

My distributed transaction service is running. DTC settings are correct. I am executing everything sequentially. Don't know whats wrong. I want to execute whole part in one transaction.

Please check the screenshots for more details. Project Snap and Error

Answer

Michael picture Michael · Aug 21, 2018

I just experienced this issue as well. My problem was i had switched out the params file to point to a new environment. While the ADO connection 'test connection' button worked; when running the package it failed. I rebuilt the soution and it worked great after that.