Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flat file extraction error

Status
Not open for further replies.

rockstar283

IS-IT--Management
Mar 17, 2013
4
US
I am using ssis 2008 and trying to extract data from a tab delimited file

DJpaQ9M.png


In the file above, I am getting an error where Counter=1494059

I am using a derived column transformation and it has a formula '(DT_DBTIMESTAMP)Date'

Due to that I am getting following errors:

PctBFWi.png


[Derived Column 1 [295]] Error: An error occurred while attempting to perform a type cast.
[Derived Column 1 [295]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "component "Derived Column 1" (295)" failed because error code 0xC0049064 occurred, and the error row disposition on "input column "Date" (297)" 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 tried to redirect erranous rows..but it is also not working

Can anyone pls help to sort this one out..

p.s. all the previous files were processed successfully, we are getting errors with this one file only..though it has identical structure and encoding
 
As the error states there was an error converting from one data type to a date - this just means that on that particular file one of the values you are trying to convert is invalid (or is spaces for example).

one way to identify which value is wrong is to load the file on to a table with that field set to char, and then selecting from that table using the isdate function to determine which record(s) are invalid.


And as a standard, whenever you are dealing with dates you should explicitly build a string with the date parts of the input, separated by "-", on the format YYYY-MM-DD, and ensuring that if any of the parts is blank that the resulting date is a Null date

And as your image does not show it, where did you add the redirect rows?

Regards

Frederico Fonseca
SysSoft Integrated Ltd

FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top