2014-08-29 6 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 등이 필요한지 확실하지 않습니다. –

답변

1

이 두 관련 오류가 있습니다

"Invalid character value for cast specification"

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

귀하의 입력 (엑셀) 데이터가 가장 가능성이 올바르게 포맷되지 않았거나 유효하지 않습니다.

입력 파일과 대상 테이블을 보지 않으면 도움이되지 않지만 이러한 오류를 직접 조사해야합니다.

관련 문제