I changed my code to the following to mak it easier to debug...Im posting my error afterwards. The SSIS package is deploy to an integration server:
Declare @TSQLCmd varchar(3000)
DECLARE @startdt DATETIME, @enddt DATETIME
Declare @ReturnCode INT
Select @TSQLCmd = 'dtexec /DTS "\"\MSDB\HDC\"" /SERVER C9100970E1DB44B /CHECKPOINTING OFF /REPORTING V /set \package.variables[User::HDCTodaysDate].Value;"' + CONVERT(VARCHAR(10), '07/16/2013', 101) + '"'''
--print @TSQLCmd
EXEC @ReturnCode = xp_cmdshell @TSQLCmd
My error is as follows:
Microsoft (R) SQL Server Execute Package Utility
Version 11.0.3369.0 for 32-bit
Copyright (C) Microsoft Corporation. All rights reserved.
NULL
Started: 4:55:51 PM
Error: 2013-07-16 16:55:53.49
Code: 0xC0016016
Source: HDC
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: 2013-07-16 16:55:53.68
Code: 0xC0016016
Source: HDC
Description: Failed to decrypt protected XML node "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: 2013-07-16 16:55:53.78
Code: 0xC0016016
Source: HDC
Description: Failed to decrypt protected XML node "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: 2013-07-16 16:55:53.78
Code: 0xC0016016
Source: HDC
Description: Failed to decrypt protected XML node "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: 2013-07-16 16:55:53.78
Code: 0xC0016016
Source: HDC
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
Info: 2013-07-16 16:55:54.99
Code: 0x4004300A
Source: Data Flow Task SSIS.Pipeline
Description: Validation phase is beginning.
End Info
Progress: 2013-07-16 16:55:54.99
Source: Data Flow Task
Validating: 0% complete
End Progress
CustomEvent: 2013-07-16 16:55:54.99
Source: Data Flow Task
Name: OnPipelinePreComponentCall
Description: Data flow engine will call a component method.
End CustomEvent
Error: 2013-07-16 16:55:55.31
Code: 0xC0202009
Source: HDC Connection manager "C9100970E1DB44B.HDC.HDC_Worker1"
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 11.0" Hresult: 0x80040E4D Description: "Login failed for user 'HDC_Worker'.".
End Error
Error: 2013-07-16 16:55:55.33
Code: 0xC020801C
Source: Data Flow Task OLE DB Destination [2]
Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "C9100970E1DB44B.HDC.HDC_Worker1" failed with error code 0xC0202009. There may be error messages posted befor
e this with more information on why the AcquireConnection method call failed.
End Error
CustomEvent: 2013-07-16 16:55:55.33
Source: Data Flow Task
Name: OnPipelinePostComponentCall
Description: Data flow engine has finished a call to a component method.
End CustomEvent
Error: 2013-07-16 16:55:55.33
Code: 0xC0047017
Source: Data Flow Task SSIS.Pipeline
Description: OLE DB Destination failed validation and returned error code 0xC020801C.
End Error
Progress: 2013-07-16 16:55:55.33
Source: Data Flow Task
Validating: 50% complete
End Progress
Error: 2013-07-16 16:55:55.33
Code: 0xC004700C
Source: Data Flow Task SSIS.Pipeline
Description: One or more component failed validation.
End Error
Error: 2013-07-16 16:55:55.33
Code: 0xC0024107
Source: Data Flow Task
Description: There were errors during task validation.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 4:55:51 PM
Finished: 4:55:55 PM
Elapsed: 3.448 seconds
NULL