Flat File Import issues
I have been working on this import for days and I just can't figure this out. All I am trying to do is import a flat csv file into a new table using the default settings in the import tool and it just won't work! I have tried it hundreds of different ways, including saving the package and opening it in BIDS. Sorry, I am new to SQL and SSIS... Errors are below. - Executing (Error) Messages Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Column 2" 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 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "output column "Column 2" (18)" failed because error code 0xC0209084 occurred, and the error row disposition on "output column "Column 2" (18)" 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 1: An error occurred while processing file "C:\Users\Tony\Documents\HR\AP20110506TCH.csv" on data row 1. (SQL Server Import and Export Wizard) Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Source - AP20110506TCH_csv" (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) Thanks!
May 25th, 2011 7:27am

Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Column 2" returned status value 2 and status text "The value could not be converted because of a potential loss of data.". This usually happens when the size of your destination column is not of same size as your source column. Please make sure that your source and destination have the same sizes.
Free Windows Admin Tool Kit Click here and download it now
May 25th, 2011 8:13am

This can occur if you are trying to convert one type to another and the new type will result in data being lost. Example You are trying to convert an eight-byte signed integer (DT_I8) to a four-byte signed integer (DT_I8) You are trying to convert an eight-byte signed integer (DT_I4) to a four-byte signed integer (DT_I2) Have a read of the following http://msdn.microsoft.com/en-us/library/ms141036.aspx Jeff Wharton MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt) MCT, MCPD, MCITP, MCDBA Blog: MrWharty.wordpress.com
May 25th, 2011 8:41am

Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Column 2" returned status value 2 and status text "The value could not be converted because of a potential loss of data.". This usually happens when the size of your destination column is not of same size as your source column. Please make sure that your source and destination have the same sizes. That would cause a Truncation error. This is a data type conversion error.Jeff Wharton MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt) MCT, MCPD, MCITP, MCDBA Blog: MrWharty.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
May 25th, 2011 8:45am

I think I might know what the problem is. There is a large "text" field within the csv that has quotes. Within the quotes are a number of commas that Excel doesn't seem to process when opening, but I think SQL is processing each one of those commas when it tries to import. Is there anything I can do to stop that? Thanks!
May 25th, 2011 2:41pm

Setting " as a text qualifier is the next obvious choice. It is set in your connection manager. For some overview: http://www.ideaexcursion.com/2008/11/12/handling-embedded-text-qualifiers/Arthur My Blog
Free Windows Admin Tool Kit Click here and download it now
May 25th, 2011 2:51pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics