I am a beginner in UIPath. I am trying to get a variable from Invoke one workflow to another flow viewer workflow and i have set the arguments as below
But when i try accessing this variable in the other workflow then i am getting error as “Object Reference not set to an instance of an object”.
Also in the workflow where I am accessing the variables i have imported the arguments with the direction as “In”
For the Out arguments,
In the main workflow create an variable of OUT argument data type and in the Invoke workflow, assign the OUT argument to the variable created in the main workflow.
Arguments scope only inside the invoked workflow. It can’t be accessible in the main workflow.
Object Reference not set to an instance of an object–>coming because it is either null or blank.
Can you please check if the parameter is defined correctly or passed in the workflow correctly ? basically check the place where you are invoking the workflow, make sure it does have some value passed in the “In” arguments!
I tried applying your solution but the same error persist. Can you please elaborate.
Below is my workflow and the link of the workflow.
I need the value from serverLauncher.xaml to INDDViewerPath.xaml
Once you are getting the “OUT” from ServerLauncher, where are you assigning it to the input to INDDViewerPath workflow ? you have to define or assign it also to pass it to the next workflow
I have tried this as well. But i am actually not that aware about the concept of Arguments that are used while invoking a workflow. I am still facing the issue
Simple speaking: You have to declare “ServerPath” VARIABLE in the Main.xaml (calling workflow) to receive the value of “ServerPath” OUT ARGUMENT declared in “serverLauncher.xaml” (called workflow). Then in “Invoked wworkflow’s arguments” dialog you will link the ARGUMENT and VARIABLE