SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Importing Text file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

James Niven
Starting Member

USA
17 Posts

Posted - 04/29/2013 :  12:05:10  Show Profile  Reply with Quote
Hello,

I am a raw bginner with SQL Server and I am receiving my education from reading and practising.
I am importing a text file with 92000 rows and I am receiving these erros and not too sure what they mean or how to correct!
I am looking for guidance from the brain trusts here, can someone help out!

- Executing (Error)
Messages
Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Column 4" 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 "output column "Column 4" (26)" failed because truncation occurred, and the truncation row disposition on "output column "Column 4" (26)" 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:\Documents and Settings\James\My Documents\FCC CDBS Public Files\Current Data\Facility.txt" on data row 1387.
(SQL Server Import and Export Wizard)

Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Source - Facility_txt" (1) 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)




=======================
James Niven
Austin, Texas
=======================

polczym
Starting Member

USA
2 Posts

Posted - 04/29/2013 :  15:03:42  Show Profile  Visit polczym's Homepage  Reply with Quote
You can do a couple of things here.
(1) Make sure your destination fields are the same size or larger than your source fields.
(2) Change the Error Output to Ignore (not advised), or Redirect Row (read up on this).

The best thing is to make sure your source and destination match from the size perspective, unless you are performing a convert Task.

Mark W. Polczynski
Go to Top of Page

James Niven
Starting Member

USA
17 Posts

Posted - 04/29/2013 :  18:53:37  Show Profile  Reply with Quote
Hello Polczym,

Thanks for the reply and items to check.
I tried something different. The same text file I am importing I setup in an Access database and imported fine into Access. I then imported the same access database file in sql and I was able to import fine, When I try importing the text file direct into sql I receive the errors.
Anything I can try?


=======================
James Niven
Austin, Texas
=======================
Go to Top of Page

James Niven
Starting Member

USA
17 Posts

Posted - 04/29/2013 :  18:55:12  Show Profile  Reply with Quote
I should add the my reply, I delete the rows within SQL table and imported into the same table.

=======================
James Niven
Austin, Texas
=======================
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000