INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Flat file extraction error

Flat file extraction error

(OP)
I am using ssis 2008 and trying to extract data from a tab delimited file



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:



[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

RE: Flat file extraction error

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
www.syssoft-int.com

FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close