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

  • 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

  • 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)

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • I changed the protection level to EncryptSensitiveWithPassword

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

    Thanks a ton!

  • 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.

  • 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.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • 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

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply