我有一个SSIS包,是3年前由其他人构建的,而这个人已经离去。在过去的一年里,我多次运行它,但现在我遇到了这些错误,我不知道这些错误为什么会出现。这个ssis包从Excel文档导入到临时表中。一旦信息在临时表上第二次运行,它就会从临时表中提取并将其插入到生产表中,同时添加额外的列。以下是我遇到的错误:
[OLE DB Destination [162]] 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 [162]] Error: There was an error with input column "UserProfileID" (299) on
input "OLE DB Destination Input" (175). The column status returned was: "The value violated the
integrity constraints for the column.".
[OLE DB Destination [162]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The
"input "OLE DB Destination Input" (175)" failed because error code 0xC020907D occurred, and
the error row disposition on "input "OLE DB Destination Input" (175)" 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" (162) failed with error code 0xC0209029 while processing input
"OLE DB Destination Input" (175). 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.
当我看到“输入列'UserProfileID'存在错误”时,我在临时表中查看它并发现它是空的。这是包在运行时应该找到的列之一。但我不知道这个信息是否在第二次运行时找到,或者它是否应该在第一次填充。所以我不确定我遇到的问题是否就是这个。
我非常感谢任何可以提供帮助的人。如果需要任何其他信息,我会尝试提供。感谢任何能够提供帮助的人。
![从Excel文件导入到临时表](https://istack.dev59.com/rA5sL.webp)
![从临时表导入到真实表](https://istack.dev59.com/nChQf.webp)
![数据流](https://istack.dev59.com/fx8BE.webp)