none
Passing Arguments to a Process Task RRS feed

  • Question

  • I have a Process Task inside a For Each Loop Container.

    When I hardcode the arguments to a known id it works fine.

    If I set the Arguments property to my variable as -> User::CustomerId nothing happens and it looks like nothing is passed.

    This variable is set in a Script Task previously inside the For Each Loop container and I see it is set when I debug it.

    I am a little lost as to what is happening.

    Anyone?

    Thanks,

    C.


    CG

    Tuesday, January 13, 2015 5:31 PM

Answers

  • I changed the type of the variable to be string and I set the Expression Arguments to use it and it works fine now.

    Thanks for the quick replies.


    CG

    Tuesday, January 13, 2015 11:48 PM

All replies

  • Was it this:

    ?

    I am thinking perhaps it runs, but nothing is displayed. It is hard to say. You would need to tell us what was the original command line, and what was passed to it in the parametrized argument case.


    Arthur

    MyBlog


    Twitter

    Tuesday, January 13, 2015 5:45 PM
    Moderator
  • Try like this

    1. Put a breakpoint on the pre execute of the execute process task

    2. When package execution hits the breakpoint go to watch window and check the value set for variable

    3. Copy the value out and go to command prompt

    4. invoke the exe which execute process task calls with argument value you got from variable and then you will get the exact error message.


    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    ----------------------------
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

    Tuesday, January 13, 2015 6:08 PM
  • Check the scope of the variable.  If the scope is too narrow, ie within the For-Next loop, then it needs to be move up to the package level.
    Tuesday, January 13, 2015 8:03 PM
  • I changed the type of the variable to be string and I set the Expression Arguments to use it and it works fine now.

    Thanks for the quick replies.


    CG

    Tuesday, January 13, 2015 11:48 PM