2017-11-13 10 views
1

SSIS 패키지를 사용하여 SQL Server로 Excel 파일을 가져 오려고하는데이 파일을 업로드하려고 할 때마다 마지막으로 업로드 된 행이 업로드되지 않습니다. 정확한 55107은 업로드해야하지만 54990 만 업로드됩니다. 117 행에 몇 가지 문제가 생겨서 그 이유를 파악할 수 없습니다. 이 오류 메시지를 이해하고 문제를 해결할 수 있도록 도와주세요.SSIS를 사용하여 Excel에서 Excel로 데이터를로드 할 수 없습니다.

SSIS package "C:\Users\A670814\Documents\Visual Studio 2015\Projects\Integration Services Project1\Integration Services Project1\NDCS Towers.dtsx" starting. Information: 0x4004300A at NDCS tower, SSIS.Pipeline: Validation phase is beginning.

Information: 0x4004300A at NDCS tower, SSIS.Pipeline: Validation phase is beginning. Warning: 0x80049304 at NDCS tower, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available. To resolve, run this package as an administrator, or on the system's console. Information: 0x40043006 at NDCS tower, SSIS.Pipeline: Prepare for Execute phase is beginning. Information: 0x40043007 at NDCS tower, SSIS.Pipeline: Pre-Execute phase is beginning. Information: 0x4004300C at NDCS tower, SSIS.Pipeline: Execute phase is beginning. Error: 0xC0202009 at NDCS tower, OLE DB Destination [280]: 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 11.0" Hresult: 0x80004005 Description: "Unspecified error". Error: 0xC020901C at NDCS tower, OLE DB Destination [280]: There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[Copy of ID] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "The value violated the integrity constraints for the column.".

Error: 0xC0209029 at NDCS tower, OLE DB Destination [280]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "OLE DB Destination.Inputs[OLE DB Destination Input]" failed because error code 0xC020907D occurred, and the error row disposition on "OLE DB Destination.Inputs[OLE DB Destination Input]" 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.

Error: 0xC0047022 at NDCS tower, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "OLE DB Destination" (280) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (293). 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.

Error: 0xC02020C4 at NDCS tower, Excel Source [156]: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020. Error: 0xC0047038 at NDCS tower, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Excel Source 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. Information: 0x40043008 at NDCS tower, SSIS.Pipeline: Post Execute phase is beginning. Information: 0x4004300B at NDCS tower, SSIS.Pipeline: "OLE DB Destination" wrote 55107 rows. Information: 0x40043009 at NDCS tower, SSIS.Pipeline: Cleanup phase is beginning. Task failed: NDCS tower

Warning: 0x80019002 at NDCS Towers: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (6) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.

SSIS package "C:\Users\A670814\Documents\Visual Studio 2015\Projects\Integration Services Project1\Integration Services Project1\NDCS Towers.dtsx" finished: Failure.

+0

엑셀 파일에 빈 행이 있는지 확인하십시오. – Mohammed

답변

0

There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[Copy of ID] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "The value violated the integrity constraints for the column.".

그것은 [Copy of ID] 열이 null의 많은 행이, 또는 행에 위반 SQL 서버에서 [Copy of ID] 컬럼에 대한 몇 가지 제약이있다 같습니다 아래는 내가 갖는 오류 메시지는 Excel 파일에서.

[Copy of ID] 컬럼에 데이터가없는 행을 삭제하려고하거나 조건부 분할 구성 요소를 추가하여 필터링 다음과 같은 consition

ISNULL([Copy of ID]) 

필터링 아니면 SQL을 사용하여 대상 SQL 테이블에 액세스 할 수 있습니다 서버 관리 스튜디오 및 SQL 테이블 디자인 모드로 이동하여 많은 유용한 답변 열의 [Copy of ID]

비슷한 질문 옵션 Allow null을 확인하십시오 The value violated the integrity constraints for the column

+0

ID의 복사본 열이 기본 키 열로되어 있고 열의 값을 두 번 확인했으며 중복이없고 Null 값이 없습니다. –

+0

대상 테이블에 이미 데이터가 포함되어 있는지 확인하고 열이 올바르게 매핑되어 있는지 확인한 후 – Hadi

+0

및 Excel 파일의이 열의 데이터 형식을 확인하십시오. 그 열의 정체성인가요? – Hadi