How to convert string to integer

while fetching Coronavirus Cases, Deaths, and Recovered from https://www.worldometers.info/coronavirus/ in my GUI automation workflow , the values are coming as String type—how can I convert them to Integer to perform calculations?

You can do this using the Rename Field step.

Steps:

  1. Add a Rename Field step in the workflow.

  2. Go to the Metadata tab.

  3. Select the fields (e.g., Coronavirus Cases, Deaths, Recovered) whose data type needs to be changed.

  4. Change the data type from String to Integer.

Tried this RenameField plugin And from metadata selected the datatype as Integer but still i got this error “Unexpected conversion error while converting value [CoronaCases String] to an Integer“

Hi Pushkraj.

Be sure that string has no non digit characters and no punctuation

1 Like