I am setting up a new datawarehouse (Server 1) and need to get data from 3 different databases on the same server (Server 2). Everything works good until until I try to make the connection dynamic.
I have created a Foreach Loop Container FLC including 4 variables
- Servername
- Database
- User
- Pw
In the FLC I have added a data flow task DFT, and in the DFT added a OLE DB Source

In the OLE DB Source connection properties I have added the the 1 variables as expression. Directly the connection goes to offline and OLE DB Source gives an error. Error message:
Error at Data Flow Task [OLE DB Source 5]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Test" failed with error code 0xC0014041. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Error at Data Flow Task [SSIS.Pipeline]: OLE DB Source failed validation and returned error code 0xC020801C.
Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
Error at Data Flow Task: There were errors during task validation.
Error at Package: The connection manager "Test" will not acquire a connection because the connection manager OfflineMode property is TRUE. When the OfflineMode is TRUE, connections cannot be acquired.
(Microsoft.DataTransformationServices.VsIntegration)