我有 3 个 SSIS 包。 3 个 SSIS 包中有两个可以完美运行,第三个。这是第二个的副本,除了更改连接字符串不断抛出问题:
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSObject100'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{D4E5AF42-7999-473C-8082-6EFC676953C4}' failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)).
自从我将包复制过来以来,它一直在这样做。我遵循了在线指南并运行了 regsvr32 dts.dll,这表示它是成功的,但没有任何改变。我仍然收到错误,这是为什么?
SSIS 包似乎可以验证我的容器,与其他两个相比,它需要很长时间才能完成,然后在验证中失败并抛出上述错误消息。
最佳答案
不能只复制包,还需要改名生成新的 GUID (标识 COM 对象)用于此包。查看this MSDN 文章了解更多信息。
关于ssis - 无法将 'System._COMObject' 类型的 COM 对象转换为接口(interface)类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35872818/