Sorry for my quest…
I’m trying to import an excel sheet containing columns
General format and Dates format into a db.
Some columns in General format contain amounts.
I’m trying to import the sheet to DB, but it always fails when the cells
with the amounts are empty.
Perhaps when the cell is empty, it is not properly converted to decimal? You could use write line convert.ToDecimal(row.Item(“Capitale_Affidato_1B”)) before the SQL statement to test how it looks.
If the empty decimal is the problem, you could give it a default value.