2017-04-26 167 views
1

我被一個爲將xlsx文件導入數據庫而創建的SSIS包卡住了。由於一些文件的數據具有更多的tan 255字符,我將該列設置爲DT_NTEXT。如果我只留下一個我知道有這個長數據的xlsx文件,那麼這個包可以正常工作,不會出現任何錯誤。但是,如果我把一切都需要在導入文件夾要導入的文件,我得到下一個錯誤回報: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.

我的猜測是,問題是,它評估的那種數據一起工作的每個文件,並且在存在少於tan 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抱怨,因爲元數據已經改變。 –

回答