im using the REFramework and i created a variable inside the config file within the “settings” sheet.
Within the InitAllApplications file i invoke a file that needs the variable from the settings. So at the arguments i assign the Variable with “in_Config(“VarName”).ToString” as seen here:
But I get this Error. I tried a lot of stuff so far, but I am not familiar enough yet with the REFramework to figure this out.
If I try to print out the ToString, i get the exact same Error.
I did not created it inside of the UiPath files. I only did it inside the config.xaml file. The before posted link only says to use Config("VarName").ToString to you use it.
Where do i have to create the variable? And if i do so, whats the point of the config file, if i need to create the variable within the code anyways?
I hope @mahrie you are passing that inconfig value to that invoked workflow acme login
So that direction is correctly mentioned as IN as you are passing INSIDE The workflow
Check with the INVOKE WORKFLOW file activity where you are reading the config file
There while importing argument you must send the config variable outside that workflow so that it can be used anywhere in the process
So that direction should be OUT
To be very simple
Whenever you are passing a value to a workflow through invoke workflow activity the direction should be IN
If you are getting some value from a workflow and try to using all over the project then the direction should be OUT
You have that out_config right
What is the variable name of that you are passing
The second image is cut in right side
That’s the variable we need to use
Yes…same REFramework.
If You go to Main Page and check the variables under Variables,you will Find Config which is globally used across all workflows.
InitAllSettings fetches the values from the config excel and assigns it to Config dictionary.
So please use that variable and the error will go.
Since it is not getting the object,you are getting reference error
The below image to this text shows the argument panel inside the workflow where we are reading the config
What we need to do is while invoking that workflow with a INVIKE WORKFLOW File activity we need to assign that out_config to a dictionary variable named config
That is we are getting the value from that workflow - OUT direction
Now we can use that Config variable and pass that to Acme login workflow to a IN Argument which you have already defined
That is replace that in_config with variable name config
So it is Config(“ACME_URL”).ToString when using the config on Main /REF Level and passing it to another workflow within an invoke workflow file and its arguments