Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS Error converting varchar to numeric while importing csv flat file into sql table

$
0
0

I have flat file having column MGR_fee with data like (10.00%,12.00%,....) . On other hand i have created a stored proc where i took MGR_fee as Varchar(50) but in table this column,MGR_fee has datatype Decimal(32,6) .

so i used in my proc CONVERT(DECIMAL(32,6),REPLACE(@MGR_fee,'%','')), SYNTAX WHILE INSERTING THE VALUE.

But when i ran my SSIS package i got the error message "[OLE DB Command [20]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E07. An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E07  Description: "Error converting data type varchar to numeric.". ". Please help me out.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>