Hi,
In REFRamework when I run Analyzer, it is showing a bunch of errors for global variables used in states. Why is that? How to remedy it?
For example, if I define TransactionNumber in Main and use it in a state, it shows as an error saying it is not decalred. It may be inaccessible.
Thank you,
@A_Learner ,
Refer this article of mine.
Global variables are helpful in managing data and configurations that need to be accessed across various workflows of a project. In this article, we will explore the concept of global variables in UiPath, their importance, and address some frequently...
Reading time: 3 min read
Thanks,
Ashok
Thank you, @ashokkarale
I am using version 2020.10
Global meaning, variables declared in the main workflow which are used across REFramework. Why they are shwoing error in Analyzer. Bot run is okay.
Thank you,
Anil_G
(Anil Gorthi)
June 20, 2024, 4:00am
5
@A_Learner
Version 2020 dors not support global…
Now if you are saying a variable in main is global then no…it is a local variable in the main.xaml….
So if you need to access it in any other xaml then you need to create an input argument in that child xaml and then link it to the variable via imports panel in the invoke workflow in the main xaml
Hope this helps
Cheers
1 Like
@A_Learner ,
Ok. So those are not global variables.
If project is running fine then, workflow analyser is showing warnings not error. If there are error then code would not have ran.
Mostly the warnings are for naming conventions. You can search the rule code in documentation for knowing it’s meaning and how to fix it.
The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...
Thanks,
Ashok
Thank you, @ashokkarale
Code is running ok. But the issues are shown as Errors with Analyzer.
Is that okay?
Thank you,
@A_Learner ,
Absolutely ok. These are good to have standardization suggested by UiPath. You can update the code if you like or ignore it.
Thanks,
Ashok
1 Like
system
(system)
Closed
June 23, 2024, 10:26am
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.