Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSIS Importing from flat file: Error 0xc0209029:

Status
Not open for further replies.

akalinowski

IS-IT--Management
Oct 3, 2006
190
US
i get the following errros when i try to import a flat file with date as datetime:
Code:
- Executing (Error)
Messages
Error 0xc02020a1: Data Flow Task: Data conversion failed. The data conversion for column "Column 0" returned status value 2 and status text "The value could not be converted because of a potential loss of data.".
 (SQL Server Import and Export Wizard)
 
Error 0xc0209029: Data Flow Task: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "output column "Column 0" (10)" failed because error code 0xC0209084 occurred, and the error row disposition on "output column "Column 0" (10)" 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.
 (SQL Server Import and Export Wizard)
 
Error 0xc0202092: Data Flow Task: An error occurred while processing file "\\retail\nffiles\SALESEXP.TXT" on data row 1.
 (SQL Server Import and Export Wizard)
 
Error 0xc0047038: Data Flow Task: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "Source - SALESEXP_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)
 
Error 0xc0047021: Data Flow Task: SSIS Error Code DTS_E_THREADFAILED.  Thread "SourceThread0" has exited with error code 0xC0047038.  There may be error messages posted before this with more information on why the thread has exited.
 (SQL Server Import and Export Wizard)
 
Error 0xc0047039: Data Flow Task: SSIS Error Code DTS_E_THREADCANCELLED.  Thread "WorkThread0" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.  There may be error messages posted before this with more information on why the thread was cancelled.
 (SQL Server Import and Export Wizard)
 
Error 0xc0047021: Data Flow Task: SSIS Error Code DTS_E_THREADFAILED.  Thread "WorkThread0" has exited with error code 0xC0047039.  There may be error messages posted before this with more information on why the thread has exited.
 (SQL Server Import and Export Wizard)
my format is MMDDYY and here is some sample data
Code:
061008,1,1,"S",55411,"001timm",0,0710471815118,40789,"DR3757J","BK","L",1.00,39.95,20.00,0.00,0.00,0,
061008,1,1,"S",55411,"001timm",0,0710471835499,48634,"DA3623","NR","NS",1.00,1.00,1.00,2.00,66.67,90,
061008,1,1,"S",55412,"001timm",0,0710471790286,37523,"TS7172","BK","M",1.00,24.95,12.00,0.00,0.00,0,
061008,1,2,"H",0,"001timm",0,0710471764102,34588,"DENW820","DN","7",1.00,19.99,17.50,15.96,44.39,2,

any help would be greatly appreciated.

akalinowski
MCSE 2000, A+, N+, LCP, CNE
 
Dates and times are funny things in the way they are handled in different places. I find the best way to handle them is to set up a staging table where the datetime column is VARCHAR. Copy all the data into the staging table, then move it to the real table. SQL Server seems to have less trouble converting it by doing that.

-SQLBill

The following is part of my signature block and is only intended to be informational.
Posting advice: FAQ481-4875
 
You could bring it in as a string and then use a Derived Column transformation and an expression, or try the Data Conversion transformation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top