Run Command: Conversion from string '27AAAFS7156D1Z9' to type 'Integer' is not valid

Today, we tried to insert data into the database, extracted from DU, but we are facing the following issue:

“Run Command: Conversion from string ‘27AAAFS7156D1Z9’ to type ‘Integer’ is not valid.”

This error occurs in every field. We have already checked all the parameter data types, and they match. However, the studio is behaving unexpectedly. Please look into this issue and provide a solution as soon as possible.

We are connected to Microsoft SQL Server with the studio. It was working fine and inserting data properly yesterday, but today we are stuck with this issue.

Please find the attached screenshot for your reference.

Looking forward to your prompt response.

List item



when the value is the value which should be parsed within a number, then keep in mind that it contains Letters 27AAAFS7156D1Z9 so the value is not a number

i am not trying to Convert i just called SP to insert the data into DB but it is giving that exception i tried all the possible ways but it is not resolved please check images and give me suggestion

from the current screenshot we do see a few XXX.parse(… and this is about conversion. The error message itself is also a hint for

However, you can analyze by

  • which column has the reported value
  • what is done further with the value

Analysis can be done with debugging / immediate panel

Could you please tell like the below value belongs to which column in list as well as in DB?

27AAAFS7156D1Z9

Edit - Found that it is for Vendor GST Number. Does this column in DB was created as varchar only or was it previously configured as INT??

Did you tried creating a new column with varchar property and update to that column instead of existing one?Are you facing the same error?

Also check the syntax of DB insert command is correct and matching with the values and columns. Considering the number of fields are more - it is worth to confirm that as well