我有一个从 Excel 文档导入到数据库表的 SSIS 包。我收到以下错误:
[Excel Source [1]] Error: There was an error with output column "ShipTo" (47) on output
"Excel Source Output" (9). The column status returned was: "The value could not be
converted because of a potential loss of data.".
[Excel Source [1]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The
"output column "ShipTo" (47)" failed because error code 0xC0209072 occurred, and the
error row disposition on "output column "ShipTo" (47)" 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 "Excel Source" (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.
我已经阅读并找到了确保我的数据类型匹配的文章,并且我已经做到了。在 Excel 文档中,有 184 行,在这些错误 (shipto) 中列出的列中,它们都具有相同的值,即“全部”。我上次运行时遇到了这个问题,但只有 4 行有“全部”,所以我只是手动输入了这些值,但这一次效率不高。
在目标表上,ShipTo 列是 Varchar(20),所以我认为大小不是问题,因为它是以下三件事之一:1 位数字、2 位数字或单词 All。
有没有人有任何我可以尝试的其他想法?任何帮助是极大的赞赏。感谢任何可以提供任何帮助的人。