I’m trying to do a simple process that just copy a text selected in a web browser.
After used a “Control A” hot key I put the “Copy Selected Text” component.
Then in the panel Properties>Options>Result I created a variable string called “ResultAVT” (control K)
But an error appear for me: Compiler error(s) encoutered processing expression…
I bet you have ResultAVT defined multiple times in different scopes. Use the universal search and type in ResultAVT and I bet you see multiple results returned.
The answer can’t be no results found. You aren’t doing the search correctly.
Click the magnifying glass in the upper right corner. Click Universal Search. Click All Files. Delete any existing search text and type in your variable name.
OK that shows you only have it defined once in Main.xaml
Notice you have Current File selected, not All Files. But maybe you only have one file anyway.
Delete the variable from the variables panel, then put your cursor in the activity’s Result field, press CTRL+K, and create a new variable. Then look in the variables panel to see the datatype.
I’m wondering, though, why are you using Copy Selected Text? If you’re trying to get text from a web page or something, there are better ways (like the Get Text activity).
This isn’t a good way to do things. You should use the Get Text activity to get the text and store it in a variable, then you use Excel activities to write to Excel - you don’t copy/paste to get data and put it into Excel.
Have you done the free UiPath Academy training? It covers how to do basic things like getting text from the screen and how to work with Excel files.
Thanks for the tips.
I’m just starded the Uipath training.
I already did another basic training.
I’ll take care and look in the training how to work with Excel files.