Variable not holding the default value

Hi Guys,
I created a very simple Open Browser activity and provided the url via variable, but its throwing error,I tried Write Line activity to check if the variable holds value or not it seems the value is missing in the variable, dont know whats going on. Then I tried providing url directly in the url section of Open Browser and it worked.

Details of the Variable I created
Default: “https://www.google.co.in/
Modifier: None
Name: demoUrl
Scope: Main Sequence
Type: String

Hello @Ayushman_Bokde, welcome to UiPath community!

Can you please check if you have duplicate variables?

Hi @Ayushman_Bokde ,
welcome to UiPath community forum.
Is it possible for you to share the code and better understanding of the issues you are facing.

thanks
Anjani

Use universal search (the magnifying glass icon at the top right of the Studio window) and type in the variable name). You will probably see that you have the variable defined twice. You can also run Analyze Project and it will often catch these issues.

@Ayushman_Bokde,

It’s known bug in UiPath community version. Just workaround for now is use Assign activity and assign the value you want as default.

Hi, @ashokkarale , which exact software version are you referring to, or is it Community Version in general? I’ve been experiencing this issue with multiple bots for the past few weeks. So aggravating.

@Lloyd_B,

It’s still there in the latest version of Community Studio 2024.10.5

There are 2 options for you

  1. Delete duplicate variables
  2. Delete current workflow and create a new workflow copying each part over

Thanks @ashokkarale … Assign activity does serve as a great workaround.

1 Like