Problem Converting Data Using SSIS

I have several DTS packages that I am re-creating in SSIS.  The packages run perfectly under SQL 2000, but after creating them in SSIS and verifying the that data type and column width are correct, I'm getting a data conversion failed error.  The exact error reads:

1)  [Flat File Source [1]] Error: Data conversion failed. The data conversion for column "Column 31" returned status value 2 and status text "The value could not be converted because of a potential loss of data.".

2)  [Flat File Source [1]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "output column "Column 31" (152)" failed because error code 0xC0209084 occurred, and the error row disposition on "output column "Column 31" (152)" 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.

3)  [Flat File Source [1]] Error: An error occurred while processing file "\\AS013278S\efile_ftp\CA571EDOWN" on data row 1.

I looked at all the properties and can't see what's causing this problem.  The source file resides on a remote server, and is in a "file" format.  Any help with this matter will be greatly appreciated.
TyecomAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason Yousef, MSSr. BI  DeveloperCommented:
HI,
It's a data type problem, check to make sure that each column has the right width and data type.
Try to bring one column a time to see where it fails for an example...
Also there's a way of redirecting error rows so you can examine them.

Also try to post a sample data and your flat file connection manager configurations (column configuration) screen shot.

Regards,
Jason
0
AlexPaceCommented:
So compare column 31 in the source to column 31 in the destination.... now look at the first row in the source file and examine element 31.   Too big?  Too small?  Wrong delimiter?   Null?  .... or maybe one of the previous element values contains an internal delimiter that is causing an offeset in the element counting/parsing process.
0
TyecomAuthor Commented:
Column 31 data type from the source file is "DATABASE TIMESTAMP DT_DBTIME.  It seem to have an issue with converting is SSIS.  Here is the screen shot from the SSIS Execution Results:

SSIS-Error-1.docx
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Jason Yousef, MSSr. BI  DeveloperCommented:
And what data type you're using in SSIS?
0
TyecomAuthor Commented:
If I understand you correctly, I think I'm using the same data type in SSIS..."DATABASE TIMESTAMP DT_DBTIME.  Where can I verify this?
0
TyecomAuthor Commented:
I just delete the TIMESTAMP column.  However, now I'm getting the following error:

"The statement has been terminated.". An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80004005  Description: "Violation of PRIMARY KEY constraint 'C1249703'. Cannot insert duplicate key in object 'CA571L'.".

Any suggestions?
0
AlexPaceCommented:
That means the source data has at least one row with the same unique key as the destination table.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Reza RadConsultant, TrainerCommented:
could you upload your package here?
0
TyecomAuthor Commented:
Does SSIS supports data type "Numeric DT_Numeric"?  I have a column in my source file that has this data type, but when the transformation begins, I get errors?
0
Alpesh PatelAssistant ConsultantCommented:
It is the conversion error  i.e you are converting string to number but contain character in that.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.