showing error as Error converting a string to a number (invalid format).