2017-04-26 48 views
1

xlsxファイルをデータベースにインポートするために作成したSSISパッケージがあります。一部のファイルには255文字以上のデータがあるので、その列をDT_NTEXTに設定しました。私がこの長いデータを持っていることを知っているxlsxファイルを残しておけば、パッケージはうまく動作しません。しかし、私はインポートフォルダにインポートするために必要なすべてのファイルを残せば、私は次のerrosを得る:SSIS。複数のxlsxファイルをインポートする

[VENTA_IMS_EXCEL [1]] Error: SSIS Error Code DTS_E_OLEDBERROR.
An OLE DB error has occurred. Error code: 0x80040E21.

[VENTA_IMS_EXCEL [1]] Error: Failed to retrieve long data for column "F17".

[VENTA_IMS_EXCEL [1]] Error: There was an error with output column "SubFamilia" (16693) on output "Excel Source Output" (9). The column status returned was: "DBSTATUS_UNAVAILABLE".

[VENTA_IMS_EXCEL [1]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "output column "SubFamilia" (16693)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "SubFamilia" (16693)" 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.

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.
The PrimeOutput method on component "VENTA_IMS_EXCEL" (1) returned error code 0xC0209029.
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.

私の推測では、問題は、それがで動作するようにデータの種類の各ファイルを評価することであるということです255文字未満のデータがある場合は失敗します。

誰もがこれを手伝ってくれますか?これをどうすれば解決できますか?したがって、問題なくすべてのファイルをループしてインポートすることができます。

+0

あなたは、このフィールドに接続されているエラーを無視するために、Excelファイルにエラー構成を設定できませんでしたか?その場合、データビューアのデータを監視することによって、障害の原因を捕捉できますか? – MiguelH

+1

私は同じ問題を数か月前に返しました.XlsxはSSISとうまく合わないので、xlsxファイルをテキストファイルに変換してしまい、それらのtxtファイルを私のシステムにインポートしました。 http://www.techbrothersit.com/2014/09/ssis-how-to-convert-excel-file-to-csv.html –

+0

私は同じ問題を抱えていましたが、決して解決しませんでした。 Excelドライバは、データ型をオンザフライで処理し、フィールド内のデータの長さによって変化します。 SSISは、メタデータが変更されたために苦情を申し立てます。 –

答えて

1

これはExcelファイルの一般的な問題です。 Excelのドライバは、最初の8行に基づいて各列のデータ型を推論します。あなたのデータソースがあなたのカラムに割り当てているデータ型を見直し、すべての値がこのデータ型に適合していることを確認してください。

レビューこのブログの記事:https://www.concentra.co.uk/blog/why-ssis-always-gets-excel-data-types-wrong-and-how-to-fix-it

関連する問題