如何使用SSIS将空字符串批量插入非空列时处理错误

时间:2016-01-06 09:57:02

标签: ssis

如何使用SSIS批量插入管理将空字符串插入非空列。

我的情景是,

我在文本文件中有一个以制表符分隔的数据。一些非空字段值包含空字符串。当我尝试使用SSIS插入时,我得到了以下错误。

[OLE DB Destination [730]] Error: 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 10.0"  Hresult: 0x80004005  Description: "Unspecified error".

[OLE DB Destination [730]] Error: There was an error with input column "Copy of UOM_CD" (3675) on input "OLE DB Destination Input" (743). The column status returned was: "The value violated the integrity constraints for the column.".

[OLE DB Destination [730]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "OLE DB Destination Input" (743)" failed because error code 0xC020907D occurred, and the error row disposition on "input "OLE DB Destination Input" (743)" 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_PROCESSINPUTFAILED.  The ProcessInput method on component "OLE DB Destination" (730) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (743). 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.

如何解决这个问题,请提供一些帮助。

0 个答案:

没有答案