Runtime execution error: xxx to type 'Integer' is not valid

Good day,

How to correct the following error?
Thanks for the help.

You can check this solution:
ChangeStringToInt.xaml (5.4 KB)

Assign 1:

kelvin_temperature = "89°F"

Assign 2:

kelvin_temperature_without_faraday = Convert.ToString(kelvin_temperature.Replace("°F",""))

Assign 3:

temperature_in_int = CInt(kelvin_temperature_without_faraday)

Results:

Hello @Mathurin_Tcheandjieu

Can you plz confirm in which activity you are gettinh this error? You can runndebug mode and verify that.

Also are you doing some calculations in workflow?? If yes you need to convert to integer using Cint(”string value”)

Hi @Mathurin_Tcheandjieu,

While the variable you are using is an integer, you are getting this error because you assign a string value to it.

If your variable type doesn’t matter, you can solve this problem by converting the variable to string.

If it needs to be an integer, you can follow the steps below.

Regards,
MY

This is what is going on.
Thanks,

Thank you, Muhammed, I am on it.

Thank you.

Please mark the correct thread post as a Solution in order to help other users to find easier the answer to their questions/issues.

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