UiPath failing to pass variables


#1

Hello,

I’m having problems with UiPath passing variables.
Take for an example,

I created the variable apples and assigned it 10.

If i use a message activity and call the variable apples, it works.
If I set a Type Into activity to write Apples, it doesn’t work.

I am setting the variable inside a for each loop and also using the variable inside the for each loop.


#2

Hi @r0manred,

Any exception???

Regards,
Arivu


#3

No Exceptions. Type into just never types Apples.


#4

Send me screenshot of the type into activity with properties

Regards,
Arivu


#5

I will, but let me ask this. Cause I think I got it to work.

Can I update part of a string variable with another variable inside a for loop?

The above question is not what’s working now.


#6

Hi @r0manred,

You are assigning one variable to another variable tight…yea it’s possible using assign activity

Regards,
Arivu


#7

Right, but can I do that in the default? So in default I create a variable called “basket”.

The variable is default to “I have” + number + " many apples"

and I update number somewhere throughout the workflow. the “number” variable inside “basket” should also be updated, correct?


#8

Yes
“I have” + number.ToString() + " many apples"

Regards,
Arivu


#9

Assuming number is already string. If it wasn’t an error would probably be thrown.

For some reason this isn’t working. Although, this is working for a selector I made dynamic.


#10

Is there a way to rebuild or clean the workflow?

Edit: The previous problem I had that you tried to help with reoccurred again. After running the workflow a certain amount of times the Datatable variable is not initialized. Although, it is initialized.


#11

Created a new workflow and all issues resolved again.

Just curious, is anyone else having this problem? I can’t keep recreating workflows :skull: