2017-04-26 166 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抱怨,因为元数据已经改变。 –

回答