Variable or argument is not defiend in the current scope

Hello,
I need help solving the following problem. I am using a variable as URL. I have fixed the selector. But still get this error message that the variable or argument is not defiend in the current scope.

Hi @Mansi_Shinde

Might be the Variable which you are used in selectors is not in the current scope. Go to Variables panel select the variable which you have used in the selector, change the scope to the outer most sequence.

Check the below reference for better understanding,

Hope you understand!!

The scope I have selected is the outermost range.

@Mansi_Shinde

There is one glitch in UiPath, delete the variable in the selectors and rearrange again in the selectors. Then it will work.

Hi @Mansi_Shinde,

How are you specifying variable, can you please show?

Regards
Sonali

Hey @Mansi_Shinde i thnk you create this variable in the ui-explorer and thats why this variable is only inside that particular activity Do section just go to that activity and Increase the scope so you can use it to the other one seq also


or have you create the variable is in right way please check that also.

cheers

for eg.
url=‘{{IN_URL_Variable}}’


I extract the data from Excel (the URL) is and then I import the argument and link this variable to the argument. Instead of URL I now use as argument. So the scope of variable is the outermost (whole process) and I have used some activities where it works, but for some activities, it doesn’t work. for eg. set focus activity.

have you tried reinitializing the variable or argument in the selectors… @Mansi_Shinde

I also faced the same issue.

Yes, I have tried to reintialize the variable. But it doesn’t work.

@mkankatala Before passing directly into the arguments into activity try to pass the value in log message and try to run that in debug mode because this type of exception is only shown where the variable or arguments not correctly passed .

cheers

@Mansi_Shinde

just remove it…then highlight area where to insert and right click and click on use variable and select the variable or argument you need

cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.