Hi in visual studio 2012, I had a derived column with the expression:
"(" + SUBSTRING(Ethnicity,(FINDSTRING(Ethnicity,"(",1) + 1),(FINDSTRING(Ethnicity,")",1) - 2)) + ")"
It was working fine, and esentally it was striping out every think that was not words in parentheses to leave (xxxx). however i noticed that the length of the columns was not correct so i repointed the flat file connection manager to the csv data source and it now showed that it had pulled 5170 rows instead of the 2700 out from the csv, however a error is now occurring at derived column 2, and the error message is not that helpful when your a noob at SSIS
[Derived Column 2 [11]] Error: An error occurred while evaluating the function.
[Derived Column 2 [11]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Derived Column 2" failed because error code 0xC0049067 occurred, and the error row disposition on "Derived Column 2.Inputs[Derived Column Input].Columns[ReadCode]"
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.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Derived Column 2" (11) failed with error code 0xC0209029 while processing input "Derived Column Input" (12). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
Can anyone help?