Is it possible to abort the processing of a row in the ProcessInputRow method? I'm doing some data validations with the incoming CSV data in this function. I'm setting the row values in a sub. If an error occurs i'll catch it in the ProcessInputRow and start writing the data into a staging table for a later approval. Everthing works fine. Problem is that the Row with the bad data is still written in the target table.
E.g. i have a row with a string value 99-02-2010 that i try to add as CDate to a date colum like this:
Row.ChangeDate = CDate(rowValues.GetValue(0).ToString()) ' => throws an exception
As is said the exception is thrown and processed by me by writing the row into my staging table. But i can't find a way to stop processing this row by the script task. Any ideas?
regards