MS SSIS command line call "Argument for option 'set' is not valid"

Hi all,
I'm tring to execute a SSIS package from command line. Here's the code:
dtexec.exe /file "E:\TestIS\IntegrationServicesProject1\IntegrationServicesProject1\Package.dtsx" /set \Package.Variables[User::Name].Properties[Value];20150314
and it return a error saying  "Argument for option 'set' is not valid". I've configure the package and generated a XML file. And do exactly as the official doc says. However, this line of code just doesn't work. If I delete the set option
and run the package alone, it can be ran. So anyone can help me out? Thank you in advance.

Hi NoahdeArk,
In SQL Server Integration Services, string literals must be enclosed in quotation marks. The expression language provides a set of escape sequences for commonly escaped characters such as nonprinting characters and quotation marks. A string literal consists
of zero or more characters surrounded by quotation marks. If a string contains quotation marks, these must be escaped in order for the expression to parse. For more details, please see:
https://msdn.microsoft.com/en-us/library/ms141001.aspx
So to troubleshoot this issue, please refer to the following command:
dtexec.exe /file "E:\TestIS\IntegrationServicesProject1\IntegrationServicesProject1\Package.dtsx" /set \Package.Variables[User::Name].Properties[Value]; \"20150314\"
Or
dtexec.exe /file "E:\TestIS\IntegrationServicesProject1\IntegrationServicesProject1\Package.dtsx" /set \Package.Variables[User::Name].Properties[Value]; \""20150314"\"
The following similar threads are for your references:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/af4f62e1-b600-49d7-98c2-4a35c9fef404/escape-character-for-set-option-of-dtexec
http://stackoverflow.com/questions/9612471/dtexec-error-setting-multiple-variables
Thanks,
Katherine Xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support

Similar Messages

  • Argument "10.2.8.39 c/ 1435.Process" for option "connection" is not valid. The command line parameters are invalid.

    Hello,
    I am running a sql job which runs SSIs pakcage imported from Integration Service Sever..
    it give me this error.... the server is :10.2.8.39 and the database is process
    how can I fix It? 

    Hello Arthux ,, thx alot for your help,,, I run the job again and this time it gives me this error ??
    Date,Source,Severity,Step ID,Server,Job Name,Step Name,Notifications,Message,Duration,Sql Severity,Sql Message ID,Operator Emailed,Operator Net sent,Operator Paged,Retries Attempted
    11/28/2011 13:58:09,SSISScoreCardsSDM,Error,0,OPLINKDEVINTRA\OPLINKDEVINTRA,SSISScoreCardsSDM,(Job outcome),,The job failed.  The Job was invoked by User LINKDOTNET\michael.philip.  The last step to run was step 1 (SDM).,00:00:01,0,0,,,,0
    11/28/2011 13:58:10,SSISScoreCardsSDM,Error,1,OPLINKDEVINTRA\OPLINKDEVINTRA,SSISScoreCardsSDM,SDM,,Executed as user: LINKDEV\OPSQLADMIN. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.1600.1 for 64-bit  Copyright (C) Microsoft
    Corporation 2010. All rights reserved.    Option "    /CONNECTION" is not valid.  The command line parameters are invalid.  The step failed.,00:00:00,0,0,,,,0

  • Microsoft (R) SQL Server Execute Package Utility Version 10.50.2500.0 for 64-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Argument "Data connector" for option "connection" is not valid. The command line parameters are invalid.

    sql server:- 2008 r2 stardard edition
    os:- 64
    Package is password procted.
    following is command line in ssis package .
    /FILE "E:\PostgressToSql_IPMS\PostgressToSql_IPMS\PostgressToSql.dtsx"
     /DECRYPT  /CONNECTION "Server.user";"\"Data Source=server;
    User ID=user;Provider=SQLOLEDB.1;Persist Security Info=True;
    Application Name=SSIS-Package-{DD33AC67-4A45-40D6-AF70-4BBD421931C1}BPOSQLDB01\BPOSQLDB01.log4BPO;
    Auto Translate=False;\"" /CONNECTION "server.conn 1";
    "\"Data Source=server;User ID=log4BPO;Initial Catalog=edb1;
    Provider=SQLOLEDB.1;Persist Security Info=True;Auto Translate=False;
    Application Name=SSIS-Package-{665E3825-6AFC-4DD3-ABC8-50B5F0F18EEB}server.conn 1;
    \"" /CHECKPOINTING OFF /REPORTING E
    Need change something? Seperate configuaration file required ?

    Hi Dinesh,
    Based on my research, the issue is caused by you are running a SSIS package with a connection manager that has a space-character in the connection name.
    To work around this issue, please refer to the following two suggestions:
    Rename the connection manager in THE package to not include certain special characters (spaces, dashes). Note that the connection manager name can be changed without having to edit any property of the connection string itself.
    Escape quote the connection name, such that
    /CONNECTION "server.conn 1";"..."
    becomes
    /CONNECTION "\"server.conn 1\"";"..."
    The following similar issue is for your reference:
    https://connect.microsoft.com/SQLServer/feedback/details/510869/dtexec-commandline-fails-when-connection-is-passed-to-commandline-and-connection-name-contains-a-space
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Hide oracle password on Unix command line call?

    Does anyone know whether you can hide the password for a command line call to rwrun60 under Unix? For other Oracle products like sqlplus you can hide the password by supplying it using the redirection operator. i.e. sqlplus userid @script <<EOD and then put the password or password@sid on the next line and then EOD on the 3rd line to end the redirection. This virtually hides the password from anyone able to look at processes on the system. Can this also be done for rwrun60? If you just put the userid after userid= will reports prompt you for a password?

    Take a look at http://java.sun.com/features/2002/09/pword_mask.html.
    Hope this helps,

  • Command line calling

    Hello everyone,
    I am a PhD student in Stockholm, studying VoIP technology. I am in the middle of writing my dissertation, about command line calling.
    As I'm doing my researches, I've already found some very interesting research material, such as this page:
    XxXwww.voip-sip-sdk.com/p_251-how-to-use-the-command-line-caller-example-with-ozeki-voip-sip-sdk-voipXxX (cancel the X-s)
    It would be great to find someone to discuss this program, or maybe a whole group, because it would really help me with moving on.
    Any advice is welcome!
    Thx
    gemma

    >> The problem is the how to call this loader command remotely from our file adapter OS command line.
    The below link might be helpful ...
    http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature

  • Adobe Reader XI does not open files with a command line "path" argument.

    Adobe Reader XI does not open files with a command line "path" argument. Version X and lower all worked fine. I have deleted and reinstalled the program with no success. Is this a bug?

    Hi Daniel,
    What is the make of the printer and is it using PCL or PS driver.?
    Do you have Acrobat installed on this machine as well?
    Please check if 'Print Spooler' service is running on the machine.
    Regards,
    Rave

  • SQL Server SSIS SQL Agent Job Receiving "Option -Daily" is not valid. error message SQL Server 2008 R2

    I have seen this error posted on msdn before but  this seems to be a bit different.  Same story.  When I exec a SSIS package in BIDS it succeeds.  When I run it as an agent job it fails with the error "Option -Daily" is not
    valid.
    Here is the script that SQL Server "New Job" wizard created.
    /FILE "C:\Development\SSIS\Daily Report\bin\Daily Report.dtsx" /CONNECTION FlatFile2; "C:\Development\SSIS\Daily Report\base_daiily.csv" /CONNECTION "localhost.database";"\"Data Source=localhost;Initial Catalog=database;Integrated
    Security=True;Application Name=""SSIS-Daily Report-{5786B48C-481E-9951-B486486231AF}localhost.database"";\CHECKPOINTING OFF /REPORTING E
    I had to clean the above up a little bit to block restricted information.  The error suggests that SQL Server is having problems parsing the string the wizard created.  Any thoughts regarding what is occuring here.
    Just my thoughts tomh

    why would you use new job wizard?
    Just create the new job and a new SSIS step in it.
    The error message looks like too abridged, but the issue actually might be with the parts
    Application Name=""SSIS ...tabase"";\CH
    Quotes after quotes
    Arthur
    MyBlog
    Twitter

  • The parameters supplied for the batch are not valid.

    Error:The parameters supplied for the batch are not valid
    Stored Procedure is as follows
    CREATE PROCEDURE [dbo].[Usp_TrackVehicleDetails] 
    @reg_Number     NVARCHAR(25)
    AS
    BEGIN
    SET NOCOUNT ON;
        DECLARE @Imei_Number    NVARCHAR(25),
    @Imei_Table
    NVARCHAR(MAX),
    @Latitude_Val
    NVARCHAR(MAX),
    @Longitude_Val  NVARCHAR(MAX),
    @Imei_PK
    NVARCHAR(MAX),
    @result         INT
    -- Tracking Device by means of Latitude and Longitude
    SELECT @Imei_Number=Imei_No FROM MapDevice_Vehicle WHERE Vehicle_No=@reg_Number;
    SELECT @Imei_Table='Imei_'+@Imei_Number
    SET @Imei_PK='SELECT(MAX(CAST(Imei_Id AS NVARCHAR(MAX)))) FROM dbo.'+@Imei_Table;
    SET @Latitude_Val='SELECT Latitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
                SET @Longitude_Val='SELECT Longitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
                EXEC @result= sp_executesql @Imei_PK,@Latitude_Val,@Longitude_Val
                SELECT @result
    --RETURN @result
       BEGIN TRY
    BEGIN TRANSACTION T1
    -- Returning Values based on Vehicle_Number
    SELECT ISNULL(@Latitude_Val,'')[latitude],
      ISNULL(@Longitude_Val,'')[longitude]
    IF @@ERROR!=0
    BEGIN
    ROLLBACK TRANSACTION T1
    END
    ELSE
    COMMIT TRANSACTION T1 
    END TRY
    BEGIN CATCH
    SELECT ERROR_MESSAGE() AS ErrMsg, ERROR_LINE() AS ErrLine,ERROR_PROCEDURE() AS ErrProc
    END CATCH
    END 

    Your construct is not correct....
     EXEC @result= sp_executesql @Imei_PK,@Latitude_Val,@Longitude_Val --These
    should be  parameters/....
    Please try the below(The longitude and latitude to be included...)
    /*Test script*/create table MapDevice_Vehicle(vehicle_no nvarchar(25),imei_no nvarchar(25))
    Insert into MapDevice_Vehicle Select 'KL8P8234','KL'
    create table Imei_KL(Imei_Id nvarchar(25))
    Insert into Imei_KL Select 'KL8P8234'
    exec [Usp_TrackVehicleDetails] 'KL8P8234'/*Test script*/
    CREATE PROCEDURE [dbo].[Usp_TrackVehicleDetails]
    @reg_Number NVARCHAR(25)
    AS
    BEGIN
    SET NOCOUNT ON;
    DECLARE @Imei_Number NVARCHAR(25),
    @Imei_Table NVARCHAR(MAX),
    @Latitude_Val NVARCHAR(MAX),
    @Longitude_Val NVARCHAR(MAX),
    @Imei_PK NVARCHAR(MAX),@paramdefs nvarchar(MAX),@result INT
    -- Tracking Device by means of Latitude and Longitude
    SELECT @Imei_Number=Imei_No FROM MapDevice_Vehicle WHERE Vehicle_No=@reg_Number;
    SELECT @Imei_Table='Imei_'+@Imei_Number
    SET @Imei_PK='SELECT(MAX(CAST(Imei_Id AS NVARCHAR(MAX)))) FROM dbo.+@Imei_Table';
    SET @paramdefs = N'@Imei_Table nvarchar(255)';
    --SET @Latitude_Val='SELECT Latitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
    --SET @Longitude_Val='SELECT Longitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
    EXEC @result= sp_executesql @Imei_PK,@paramdefs,@Imei_Table = @Imei_Table
    SELECT @result
    --RETURN @result
    BEGIN TRY
    BEGIN TRANSACTION T1
    -- Returning Values based on Vehicle_Number
    SELECT ISNULL(@Latitude_Val,'')[latitude],
    ISNULL(@Longitude_Val,'')[longitude]
    IF @@ERROR!=0
    BEGIN
    ROLLBACK TRANSACTION T1
    END
    ELSE
    COMMIT TRANSACTION T1
    END TRY
    BEGIN CATCH
    SELECT ERROR_MESSAGE() AS ErrMsg, ERROR_LINE() AS ErrLine,ERROR_PROCEDURE() AS ErrProc
    END CATCH
    END

  • Error Logging In with live Connect Oauth2: invalid_grant The provided value for the 'redirect_uri' is not valid

    Hello,
    I've been working with oauthwebsecurity to add a few identity providers to work with for authorization. But for some reason i can't get the Oauth2 protocol to work with windows live. I constantly get this error:
    {"error":"invalid_grant","error_description":"The provided value for the 'redirect_uri' is not valid. The value must exactly match the redirect URI used to obtain the authorization code."}
    I've checked the redirect_uri i send to the initial login request, and i get an access code back. but when i attempt to request the access token in the callback I get the error above even though the redirect_uri i send in the callback request is the same
    as the initial log in request. any help or ideas would be appreciated.
    Thx,
    Ruud

    Hello Ruud,
    How are you? I just posted a similar problem, however, I vividly understand the process flow.  I believe this is a bad design and your can review my post entitled "Azure
    Graph API oAuth 2.0 - redirect_uri required - bad design."  People are already starting to experience the problem and this wasn't required in the previous version.
    I'd like to know Microsoft's feedback on this, particularly someone who has experience / insight into development.

  • XML for Analysis parser: The 'Domain\User' value of the 'EffectiveUserName' XML for Analysis property is not valid.

    hi 
    i have sharepoint 2013 enterprise over sql server 2012 standard, and i want to create some reports trhought excel services and performance point using EffectiveUserName feature, but right actually my environment is not working, when a configure an excel
    to read a SSAS cube from my local machine the rol is ok, but when i published the excel and try to update from Internet Explorer this error is presenting
    XML for Analysis parser: The Domain\User' value of the 'EffectiveUserName' XML for Analysis property is not valid.
    Anybody can helpme is urgent find out for some solution
    thanks a lot

    Turns out that you need the SP Farm service account to be an admin on the SSAS server as well.  That fixed the problem for us.
    MS: Please update your documentation :)

  • RefreshKrb5Config=true from command line JVM argument

    Can we set refreshKrb5Config=true from command line JVM argu,ent like we set java.security.krb5.conf using -D option ? We are not using jass config file.

    doubled the amount of code!If the code size is measured in the number of lines. More subtle size measurements are also conceivable.
    Once in the past we got a new boss who introduced an exact measurement for the programmers' efficiency based on the statistics taken from the cvs (Concurrent Versioning System) repository.
    Soon the colleagues began to comment out whole code blocks and reintroduce them instead of simply modifying them. Thus the number of the code lines changed by them skyrocketed.
    There was a nice guy there. During his studies, he used to be the system & network administrator at a hostel for students of the electrical engineering faculty at the technical university. We feel it must have been a nice job. We plain programmers used Linux as desktop OS, but he used Solaris: even good old Linux was not good enough for him. (Windows? Naturally out of question!) I put up a big fight with our chief until I persuaded him to allow the Exchange server's supporting the standard (non-proprietary) mailing protocols, so that we were able to use the mailing infrastructure from our Linux and his Solaris boxes albeit without the calendar functions.
    Well, this guy was an expert for difficult technical questions, he engineered the site-wide single-sign-on system etc. When he perused a piece of code, he shrank it by eliminating obsolete methods, by refactoring parallel ones etc. His measured output was negative...

  • File adapter OS command line - Calling a command remotely ??

    Hi,
    We have a scenario where in which receiver file adapter after putting a file on the FTP  , a subsequent XML loader needs to be called which would load data into the client legacy ERP system.
    There seems to be some idea about doing it through file adapter OS command line.
    The problem is the how to call this loader command remotely from our file adapter OS command line.
    Any help would be appreciated ???

    >> The problem is the how to call this loader command remotely from our file adapter OS command line.
    The below link might be helpful ...
    http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature

  • Passing command line unicode argument to Java code

    I have to pass command line argument which is Japanese to Java main method. If I type Unicode characters on command-line window, it displays '?????' which is OK, but the value passed to java program is also '?????'. How do I get the correct value of argument passed by the command window? Below is sample program which writes to a file the value supplied by command line argument.
    public static void main(String[] args) {
    String input = args[0];
    try {
    String filePath = "C:/Temp/abc.txt";
    File file = new File(filePath);
    OutputStream out = new FileOutputStream(file);
    byte buf[] = new byte[1024];
    int len;
    InputStream is = new ByteArrayInputStream(input.getBytes());
    while ((len = is.read(buf)) > 0) {
    out.write(buf, 0, len);
    out.close();
    is.close();
    } catch (Exception e) {
    e.printStackTrace();
    }

    To clarify a little:
    If the "command line" means a console opened from the operating system, then the problem is that your machine's operating system can't handle the Unicode characters you want (at least, not in the console mode). If you can't configure the machine to accept Unicode on the command line, you'll have to investigate some other means of passing the argument to your app, as the other poster mentioned.

  • Command Line Export/Import for ApEx

    Hi There,
    I was wondering if there is an ApEx Utility that allows the Export and Import of applications/pages/images/style sheets etc from the command line on a Linux box.
    I am using Oracle Application Express v3.0.1
    Thanks.
    Tony.

    Tony,
    Another post in the past has discussed about this already.
    Exporting/Importing a *Bunch* of Applications
    John Scott wrote a blog post about this as well at [http://jes.blogs.shellprompt.net/2006/12/12/backing-up-your-applications/|http://jes.blogs.shellprompt.net/2006/12/12/backing-up-your-applications/]
    In short, you can use APEX utility - APEXExport to export and standard SQL to import.
    Ittichai
    Edited by: ittichai on Mar 16, 2009 9:38 PM

  • Move tool issue : Command key + mouse dragging for moving any layer not working in PS CC

    I'm trying to move a layer within the document by holding command key and mouse dragging (mouse cursor not above the layer) is not working at all while using move tool. Suddenly this functionality stopped working. Now I have to place my cursor on layer to be move and drag with mouse. Also pressing command key changing auto select option from layer to group.
    Please help.

    Usually when a tool is not working as expected, a Reset of that tool might be the answer.
    Select the move tool in the toolbox,
    Go to the move tool icon on the top left of the screen (just above the toolbox in its' Option bar) and Ctrl-click on it to get the Reset menu.
    Click on Reset Tool.

Maybe you are looking for

  • What are the things required to upgrade internal hard drive For Macbook Pro mid 2012 13 inch?

    Hi, I want to upgrade my internal drive but I don't know how to do that. I have already purchased a WD 1TB internal hard drive. However, I contacted apple support and they said if I try to upgrade the hdd myself, then the warranty of the macbook woul

  • IPad won't restore photos in camera roll while restoring from iCloud

    Hello Apple community, I reseted my iPad after iOS 8.1.2 update and now i'm restoring from a backup, I got my contacts, apps... restored exept my photos, only 5 photos were restored, I can see downloading, my ipad is stuck on this since yesterday. Pl

  • The Back Arrow is not working properly in hotmail, using Firefox browser

    I have to click the back arrow twice to get it to work. And then it doesn't take me to the previous page I was on. It takes me to my In box. It was very useful when I had my messages sorted to show only "Unread Messages". Hitting the back arrow allow

  • Remove or isolate part with JavaScript?

    Hi folks, as you know you can remove or isolate parts in the modelhierarchy with a few clicks. Now I want to do exacactly the same with JavaScript to add this function to a button or something similar. So I can have a button like "show part xy" and o

  • Running java command from DOS prompt

    Hi, When I run java from the DOS prompt (NT) in any other location than the JDK bin directory, I get the following error: Error opening registry key 'Software\JavaSoft\Java Runtime Environment' My understanding is to be able to run this from anywhere