Input string was not in a correct format. What can be done for fixing this?

The value getting from queue is 0.299875
The condition written 
Convert.ToInt32(in_TransactionItem.SpecificContent(“Value”))>=90

the error it throws Input string was not in a correct format.

What can be done for fixing this?

Thanks in Advance

Hi @Manju_Reddy_Kanughula

Try this:

Cdbl(in_TransactionItem.SpecificContent("Value"))>=90

Regards

Hi @Manju_Reddy_Kanughula

Can you try below

Convert.ToInt32(Convert.ToDouble(in_TransactionItem.SpecificContent("Value")) * 100) >= 90

Regards,

@Manju_Reddy_Kanughula,

Try this:

Convert.ToInt32(in_TransactionItem.SpecificContent(“Value”).ToString.Replace(",",""))>=90

Replace , with empty string.
This could be due to comma in amounts like 12,233 or 4,550

Thanks,
Ashok :slight_smile:

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