Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSIS package fails in the scheduled job- How to add Decrypt password in command line - Any Example syntax please Expand / Collapse
Author
Message
Posted Tuesday, July 31, 2012 6:43 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, September 4, 2014 5:42 PM
Points: 235, Visits: 983
Hi Experts,
I am trying to schedule a job with ssis package..

The error message is:

SQL Server Execute Package Utility Version 10.50.2500.0 for 32-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Argument "LV" for option "connection" is not valid. The command line parameters are invalid. The step failed.


I googled and found something that is, i need to add /decrypt command line
Reference:
http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/638f8dea-c2fc-4bae-ae77-058066c9fedb

My package protection level is EncryptSensitivewithUserkey, is this is the best protection level,

Please suggest me
Post #1338260
Posted Wednesday, August 1, 2012 12:28 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 8:29 AM
Points: 12,945, Visits: 10,716
The issue is with the /connection property, not with /decrypt. Normally, the package will be decrypted by your user key (as the protection level suggests) so you wouldn't need to add the /decrypt option. However, in SQL Server Agent jobs packages are executed using the SQL Server Agent account, or with a proxy if you specified one.

So you need to change your protection level to EncryptSensitiveWithPassword and add /decrypt with the password (although SQL Server Agent will ask you for the password) or change it to DontSaveSensitive and store your sensitive data in package configurations (last option is preferred by me).

In the SQL Server Agent, don't select the connections in the connections tab, it's not necessary.

Syntax for command line can be found here:
dtexec Utility (SSIS Tool)




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1338320
Posted Wednesday, August 1, 2012 9:42 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, September 4, 2014 5:42 PM
Points: 235, Visits: 983
I changed the protection level to EncryptSensitiveWithPassword


Please let me know syntax to "add /decrypt with the password"


Thanks a ton!
Post #1338638
Posted Wednesday, August 1, 2012 3:32 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, April 11, 2014 3:04 PM
Points: 2,127, Visits: 747
If my memory is working I believe if you use dtexecui.exe you can choose all the options and the tool will provide the correct command line syntax to cut and past into your agent job.

[url=http://msdn.microsoft.com/en-us/library/ms138023(v=sql.100)][/url]



Post #1338859
Posted Wednesday, August 1, 2012 11:25 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 8:29 AM
Points: 12,945, Visits: 10,716
Sqlism (8/1/2012)
I changed the protection level to EncryptSensitiveWithPassword


Please let me know syntax to "add /decrypt with the password"


Thanks a ton!


As I said before, SQL Agent will ask you for the password. Normally you don't have to edit the command line in a job yourself. Also, I linked to the syntax defination at the bottom of my post.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1338952
Posted Thursday, December 6, 2012 11:52 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, May 13, 2014 4:58 AM
Points: 1, Visits: 42
If the package is stored on file / folder location you would need to specify it.

CommandLine: /FILE "c:\path to your package\package.dtsx" /DECRYPT password
Post #1393883
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse