"Key not valid for use in specified state." - SSIS Package - ssis

I have a SSIS package deployed in my server. My database is a SQL Server 2008R2, the SSIS was developed in Data Tools 2008.
It used to work perfectly but since a few days it started to throw this error:
Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. End Error Error: 2018-03-27 15:15:37.25 Code: 0xC0016016 Source: Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. End Error Error: 2018-03-27 15:15:37.84 Code: 0xC0202009 Source: Package Connection manager "MYDATABASE" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E4D Description: "Login failed for user 'MYUSER'.". End Error Error: 2018-03-27 15:15:37.84 Code: 0xC020801C Source: XX Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "MYDATABASE" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. End Error Error: 2018-03-27 15:15:37.84 Code: 0xC0047017 Source: Carga criticidad SSIS.Pipeline Description: component "XX" (1) failed validation and returned error code 0xC020801C. Description: One or more component failed validation. End Error Error: 2018-03-27 15:15:37.84 Code: 0xC0024107 Source: XX Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1)
I already checked this post: SSIS: Just started getting a "Key not valid for use in specified state." error on my scheduled SSIS package
And i think it isn't the same because if a execute my ETL from the Data Tools, it works just fine. It only throws error when it executes by the SQL Agent
Does anyone know what could be this? I haven't changed anyuthing in the Server, Database or SSIS Package.

Related

Error on Acquiring Connection in SSIS package using Connection string from Configuration File

I am getting below error during execution of SSIS Package which is running by a Sql Schedule Job and using a config file for DB Connection. Job is running in a different domain user account which has admin privileges. SSIS package Protection level is DONT SAVE SENSITIVE.
Executed as user: domainname\user. Microsoft (R) SQL Server Execute Package Utility Version 10.50.6560.0 for 64-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Started: 11:59:25 PM Error: X/X/XXXX 23:59:27.73 Code: 0xC0202009 Source: XYZ Connection manager "DB_1" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E4D Description: "Login failed for user 'USR_1.". End Error Error: X/X/XXXX 23:59:27.73 Code: 0xC020801C Source: Action1 source [1] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "DB_1" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. End Error Error: X/X/XXXX 23:59:27.73 Code: 0xC0047017 Source: Action1 SSIS.Pipeline Description: component "CC source" (1) failed validation and returned error code 0xC020801C. End Error Error: X/X/XXXX 23:59:27.73 Code: 0xC004700C Source: Action1 SSIS.Pipeline Description: One or more component failed validation. End Error Error: X/X/XXXX 23:59:27.73 Code: 0xC0024107 Source: Action1 Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 11:59:25 PM Finished: 11:59:27 PM Elapsed: 1.966 seconds. The package execution failed. The step failed.
Sql User USR_1 is used during Package Design Time. But DB Connection String has different Sql Login in Config File USR_2. This error Start to come after changing the Login Password for Sql User USR_2. But We are able to Connect SQL MGMT Studio with USR_2 with New Password. And When we use USR_1 user and its password in COnfig File. This error does not come.
I have found root cause behind this issue.
Some unwanted characters were present in the password.
[] () , ; ? * ! # =.

SSIS package fails when used in SQL Server Agent (SQL to MySql connection)

I have create a Data Flow Task with ADO NET Source (Local SQL Server), Data Conversion Step and ADO NET Destination (ODBC Provider).
While in BIDS everything works fine, when iam running the package from SQL Server Agent i get the following error:
"Message
Executed as user: ISK\SYSTEM. Microsoft (R) SQL Server Execute Package Utility Version 10.50.1600.1 for 32-bit Copyright (C) Microsoft Corporation 2010. All rights reserved.
Started: 5:31:26 μμ
Error: 2017-08-20 17:31:27.79
Code: 0xC0208452
Source: Data Flow Task ADO NET Destination [22]
Description: ADO NET Destination has failed to acquire the connection {F2EA5342-B616-4E16-80E5-2744574A453A}. The connection may have been corrupted. End Error Error: 2017-08-20 17:31:27.79 Code: 0xC0047017 Source: Data Flow Task SSIS.Pipeline Description: component "ADO NET Destination" (22) failed validation and returned error code 0xC0208452. End Error Error: 2017-08-20 17:31:27.79 Code: 0xC004700C Source: Data Flow Task SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2017-08-20 17:31:27.79 Code: 0xC0024107 Source: Data Flow Task Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 5:31:26 μμ Finished: 5:31:27 μμ Elapsed: 1.622 seconds. The package execution failed. The step failed."
I have try everything i could find:
Run64BitRuntime - False
ProtectionLevel - DontSaveSensitive
ExecutionOption of JobStep - Use 32 Bit Runtime
Created a package configuration file and set there the connection password for the mysql database.
I will be more than happy if anyone could point some directions

SSIS ForEach loop through multplie excel files

I'm trying to parse through multiple excel files using Foreach Loop Container and getting the error blow. Whats annoying me is the for each loop works when the "Excel File Path" is set to 1 file in excel connection manager. But it loops through the same file multiple times. However, I need to loop through each file once and move to the next file. so I need to add an expression to excel connection manager. And its when I add an expression of the variable is when the error occurs
TITLE: Package Validation Error
Package Validation Error
ADDITIONAL INFORMATION:
Error at Data Flow Task [Excel Source [2]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager 1" failed with error code 0xC0202009. 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]: Excel 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 [Connection manager "Excel Connection Manager 1"]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft Office Access Database Engine" Hresult: 0x80004005 Description: "Invalid argument.".
(Microsoft.DataTransformationServices.VsIntegration)
BUTTONS:
OK
I had to set delay validation on the excel connection manager and everything else to get this to run OK

ssis package excecution error

I created a package which is used to transfer data from oracle instance to SQL instance
I got following errors
1.[SRC WKF_LOG_HISTORY [63]] Error: Either Table Name or SqlCommand property should be set.
2.[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on SRC WKF_LOG_HISTORY returned error code 0x80004005. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
3.Task DFT Copy Data failed could any one please help to get out from these.
thank you

Getting error loading data into the MS Access using SSIS

Message
Executed as user: WORKGROUP\REPORTING$. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 64-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 4:10:44 PM Error: 2013-06-26 16:10:45.69 Code: 0xC0209303 Source: WAP_Success_DUMP Connection manager "SAME" Description: The requested OLE DB provider Microsoft.Jet.OLEDB.4.0 is not registered. If the 64-bit driver is not installed, run the package in 32-bit mode. Error code: 0x00000000. An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered". End Error Error: 2013-06-26 16:10:45.69 Code: 0xC020801C Source: ALL OLE DB Destination [173] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "SAME" failed with error code 0xC0209303. There may be error messages posted before this with more information on why the AcquireConnection method call failed. End Error Error: 2013-06-26 16:10:45.69 Code: 0xC0047017 Source: ALL SSIS.Pipeline Description: OLE DB Destination failed validation and returned error code 0xC020801C. End Error Error: 2013-06-26 16:10:45.69 Code: 0xC004700C Source: ALL SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2013-06-26 16:10:45.69 Code: 0xC0024107 Source: ALL Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 4:10:44 PM Finished: 4:10:45 PM Elapsed: 1.528 seconds. The package execution failed. The step failed.
I am getting the above error ,when I executed the package using Sql Server job agent.When I execute the package using BIDS its running successfully.I have changed my solution to the Run64bitRunTime false I am getting the some other errors.
I have run into this before. I had to change the Run64bitRunTime property to false. Then make sure the appropriate driver was installed on the server. Ultimately I started using the ACE drivers.