SSIS Error Code DTS_E_OLEDBERROR: 0xC0202009

SSIS Error Code DTS_E_OLEDBERROR: 0xC0202009

我今天创建了一个新包,它从 运行 其他包的主包中获取信息。我的主包在 运行 时间从配置文件中提取连接信息。保护级别 = DontSaveSensitive。使用 Windows 身份验证。它在本地工作正常,但是当我从工作中 运行 它时,它给我以下错误。

欢迎任何想法或建设性意见!

Code: 0xC0202009 Source: DFT - Insert Into StageSites Source DB TEICommon [1] Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E14. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E14 Description: "Statement(s) could not be prepared.". An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E14 Description: "Invalid column name 'SuspendedDate'.". An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E14 Description: "Invalid column name 'FirstShipmentDate'.". End Error Error: 2016-10-28 10:38:02.50 Code: 0xC004706B Source: DFT - Insert Into StageSites SSIS.Pipeline Description: "component "Source DB TEICommon" (1)" failed validation and returned validation status "VS_ISBROKEN". End Error Error: 2016-10-28 10:38:02.50 Code: 0xC004700C Source: DFT - Insert Into StageSites SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2016-10-28 10:38:02.50 Code: 0xC0024107 Source: DFT - Insert Into StageSites Description: There were errors during task validation. End Error

更新:[已修复] 我通过更新我的 ETL 查询从中提取的数据库中的模式解决了这个问题。

这是您的实际错误:

"Invalid column name 'SuspendedDate'.".

"Invalid column name 'FirstShipmentDate'.".

您正在查询 table(在组件 Insert Into StageSites 中),期望这些列在它们不存在时存在。由于您说它在本地工作而不是在工作中工作,因此最可能的解释是当工作运行时您的 DataSource 连接到另一台服务器而不是它在本地连接的服务器。检查作业指向的服务器上 .config 文件中的连接字符串。