• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1177
  • Last Modified:

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.
0
Tyecom
Asked:
Tyecom
  • 4
  • 2
  • 2
  • +2
1 Solution
 
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
Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

 
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
 
Reza RadCommented:
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

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 4
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now