SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS package fails in the scheduled job- How to add Decrypt password in command line - Any Example...


SSIS package fails in the scheduled job- How to add Decrypt password in command line - Any Example syntax please

Author
Message
SQListic
SQListic
Mr or Mrs. 500
Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)

Group: General Forum Members
Points: 520 Visits: 1115
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
Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27847 Visits: 13268
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?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
SQListic
SQListic
Mr or Mrs. 500
Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)Mr or Mrs. 500 (520 reputation)

Group: General Forum Members
Points: 520 Visits: 1115
I changed the protection level to EncryptSensitiveWithPassword


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


Thanks a ton!
andersg98
andersg98
SSCrazy
SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)

Group: General Forum Members
Points: 2250 Visits: 785
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]



Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27847 Visits: 13268
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?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
bernard.barnard
bernard.barnard
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 45
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search