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

Convert a string column with blank values to integer in SSIS

$
0
0
Hi, I'm trying to convert a string column to integer but the problem is that this column contains some blank values. So I cheked different forums on this topic and tried to get rid of blank values by adding a derived column with the following expression: [Column] == "" ? NULL(DT_I4) : (DT_I4) [Column] . However, I got an error: [Derived Column [2]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Derived Column" failed because error code 0xC0049063 occurred, and the error row disposition on "Derived Column.Outputs[Derived Column Output].Columns[Column]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure. I have no idea what I'm doing wrong.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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