2014-08-29 76 views
0

我試圖用18列導入Excel文件(.xls);第一行有列名。該文件包含3718行學生個人數據。這是我收到的文件導入到SQL Server數據庫中的錯誤:SSIS錯誤:「鑄造規範的字符值無效」

- Copying to [dbo].[masterlist$] (Error) 
Messages 
* Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. 
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Invalid character value for cast specification". 
(SQL Server Import and Export Wizard) 

* Error 0xc020901c: Data Flow Task 1: There was an error with input column "dbirth" (121) on input "Destination Input" (84). The column status returned was: "Conversion failed because the data value overflowed the specified type.". 
(SQL Server Import and Export Wizard) 

* Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "input "Destination Input" (84)" failed because error code 0xC020907A occurred, and the error row disposition on "input "Destination Input" (84)" 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 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Destination - masterlist$" (71) failed with error code 0xC0209029 while processing input "Destination Input" (84). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure. 
(SQL Server Import and Export Wizard) 

* Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020. 
(SQL Server Import and Export Wizard) 

* Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Source - masterlist$" (1) returned error code 0xC02020C4. 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) 
+0

不確定是否有些錯誤是其他錯誤的直接結果,但我懷疑這很可能。但是 - 至少有一個dbirth日期未在Excel電子表格中正確格式化。潛在的所有日期格式都是錯誤的。不確定是否需要dd/mm/yyyy或mm/dd/yyyy等。 – 2014-08-29 01:40:59

回答

1

這是兩個相關的錯誤:

"Invalid character value for cast specification"

"Conversion failed because the data value overflowed the specified type."

你輸入(Excel)中的數據是最有可能的格式不正確或者是無效。

沒有看到您的輸入文件和目標表很難提供幫助,但您應該嘗試自己研究這些錯誤。