2017-11-13 7 views
1

SSISパッケージを使用してExcelファイルを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

Excelファイルに空白行があるか確認してください。 – 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のコピーの列は主キーの列とし、列の値をダブルチェックし、重複はなく、ヌル値はありません。 –

+0

宛先テーブルにすでにデータが含まれているかどうかを確認し、列が正しくマップされていることを確認してください。 – Hadi

+0

とExcelファイルのこの列のデータ型は何ですか?その列のアイデンティティかどうか? – Hadi

関連する問題