Hi Everyone ,
Can anyone please let me know how to resolve this error .
Thanks !
Priya
Hi Everyone ,
Can anyone please let me know how to resolve this error .
Thanks !
Priya
Please convert object to Integer.
Convert.ToInt32(object)
Or
Int.Parse(object)
input string was not in format error is occurring.
can you help
What are you trying to convert?
Can you place the input string.
@Aman_Mongar
Simple buddy,
in first assing activity, i hope you are getting from a datatable so type like
InvoiceAmount = Convert.ToInt32(row(āyour column nameā).ToString)
and in second writeline activity type like
"Invoice Amount : " + InvoiceAmount.ToString
Hope this would work buddy
Cheersā¦
Actually I am trying to bring value from google sheet and convert it to Int so that I can compare the value. And I tried as you mention but it still giving same error that is āInput string was not in a correct formatā.
Buddy can i see the error screenshot
I am using read cell to get a value
@Aman_Mongar
Ahh buddy, for read cell you donāt need to have row mentioned in front its just a value of string datatype
so kindly mention in assign activity as
InvoiceAmount = Convert.ToInt32(out_Cell_Value.ToString)
where out_Cell_Value is the output value of Read cell activity
This would work buddy
Cheersā¦!
can you upload a script plz
I m trying to convert a number from google sheet.
can you upload a xml file if you have the solution
Thank You for help @Palaniyappan
Is that working buddyā¦!
Yaa Thank you
Amazingā¦!
Cheersā¦Keep going buddyā¦!
@Aman_Mongar
Buddy if you feel that you are done with solution, kindly close this thread with solution marked that could help others while looking for solution under your topicā¦
Cheersā¦
you are so kind and helpful