Share via

SSIS Not Replacing Variable Name with Variable Value

OmaCoder 96 Reputation points
2021-07-01T15:50:46.363+00:00

Every once in awhile our ETL jobs in SSIS fail. The error message looks like this:

Login failed for user 'TEAMASP\SQLAdmin'. Reason: Failed to open the explicitly specified database '$Project::BICfg_Svr'

As you can see, I have a parm at the project level. But SSIS is not pulling in the parm value, and instead is literally trying to connect to a database named what my parm name is?

SQL Server Integration Services

Answer accepted by question author

OmaCoder 96 Reputation points
2021-07-06T14:19:07.903+00:00

The consensus is that our SQL Server that produced this error has not been patched since 2019. The suggestion is to patch it to current, and then test the behavior to see if the issue still exists in the latest CU, and then if so, raise the issue.

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Yitzhak Khabinsky 27,196 Reputation points
    2021-07-02T13:24:18.64+00:00

    Hi @OmaCoder ,

    This bug was already fixed by Microsoft.
    As @CarrinWu-MSFT mentioned, it is documented here: kb4486936-fix-login-failed-for-user-error-occurs-when-you-run-maintenance-plan-with-sql-login-account-in-sql-server

    Your current CU18 is dated back to 2019.
    Please update your SQL Server/SSIS run-time environment with the latest CU, which is CU24.
    You can see it here: Microsoft SQL Server Versions List

    Was this answer helpful?


  2. CarrinWu-MSFT 6,891 Reputation points
    2021-07-02T08:25:35.873+00:00

    Hi @OmaCoder ,

    Welcome to Microsoft Q&A!

    Have you check the SQL Server error log before? And find some error like below. If yes, this error had been fixed by KB4486936.
    DateTime Logon Error: 18456, Severity: 14, State: 8.
    DateTime Logon Login failed for user 'UserName'. Reason: Password did not match that for the login provided. [CLIENT: <LocalMachine>]

    Best regards,
    Carrin


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.