Avatar of Tyecom
TyecomFlag for United States of America

asked on 

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.
Microsoft SQL Server

Avatar of undefined
Last Comment
Alpesh Patel
Avatar of Jason Yousef
Jason Yousef
Flag of United States of America image

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
Avatar of AlexPace
AlexPace
Flag of United States of America image

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.
Avatar of Tyecom
Tyecom
Flag of United States of America image

ASKER

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
Avatar of Jason Yousef
Jason Yousef
Flag of United States of America image

And what data type you're using in SSIS?
Avatar of Tyecom
Tyecom
Flag of United States of America image

ASKER

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?
Avatar of Tyecom
Tyecom
Flag of United States of America image

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of AlexPace
AlexPace
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Reza Rad
Reza Rad
Flag of New Zealand image

could you upload your package here?
Avatar of Tyecom
Tyecom
Flag of United States of America image

ASKER

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?
Avatar of Alpesh Patel
Alpesh Patel
Flag of India image

It is the conversion error  i.e you are converting string to number but contain character in that.
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo