Compiler error is showing while reading a Cell and saving to a variable of GenericValue type.
Could you please change the variable type to string an try or please attach workflow if it doesn’t workout .
The value contained in excel cell is of integer type. So while trying to get it as string, it shows run time error. The error message is “System converter cannot convert from system.double”.
oh right even i had this problem earlier .
I just change the formatting of that cell to text.
I have removed cell formatting. As I am new to RPA tools I am lil confused.
I have given (CInt(myStringVariable.ToString)) in the excel cell read result box. Still I ma getting the same eror. “myStringVariable” is just a string variable with main scope. Can you please help here?
Could you please upload workflow .
Looks like you didn’t attach excel.
I have created simple workflow and its working fine.
readcell.zip (7.0 KB)
Thank you Dilip. This worked.
Just for conslusion(May help somebody):
Read the excel value to ‘UiPath.Core.GenericValue’ typed variable.
For converting to integer, use:
integerVariable = (CInt(genericVariable.ToString))