Error on cell reading - Int32 value

Hi,

I’m trying to extract a number from an excel (declared as a number in the excel file) and stock it as a variable (type Int32), but when the robot reads the cell, this error appears:

Int32Converter cannot convert from System.Double.

I tried to change the type to string and convert after that and to declare the variable as a double, but it doesn’t works.

Hi @nSangui,

Have you tried to Convert it using Convert.ToInt32 or Cint before storing into the variable?

Regards,
Amrita

Yes, I’ve created an intermediate variable as read cell activity output and after that I tried to convert it into a Int32, but the error persist.

Check this and the tutorials on data types and variables.

2 Likes