Question csv file import failing

kwhelchel

Well-known member
Joined
Feb 28, 2020
Messages
53
Programming Experience
Beginner
The following csv file fails on the last column ot TYPSPEC field. And I am not sure what I am missing here? and or if I should be using varchar on it.

Thanks
 

Attachments

  • entry2.TXT
    751.8 KB · Views: 39
I get this error
- Executing (Error)
Messages
Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "TYPESPEC" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
(SQL Server Import and Export Wizard)

Error 0xc020902a: Data Flow Task 1: The "Source - entry2_TXT.Outputs[Flat File Source Output].Columns[TYPESPEC]" failed because truncation occurred, and the truncation row disposition on "Source - entry2_TXT.Outputs[Flat File Source Output].Columns[TYPESPEC]" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
(SQL Server Import and Export Wizard)

Error 0xc0202092: Data Flow Task 1: An error occurred while processing file "C:\Users\Keith\Desktop\VersiReports\dbf querries\entry2.TXT" on data row 2.
(SQL Server Import and Export Wizard)

Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source - entry2_TXT returned error code 0xC0202092. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
 
ok so I got it to work but not sure is still right thing to do, on the choose a data source , advance I went to the TYPESPEC changed the output columnwidth to 300 and it imported but how would I make it so that field will never give me a problem in the table/column ?
 
Back
Top Bottom