SSIS - 将数据从Sharepoint源传输到OLDB目标时出错

时间:2016-07-12 05:44:45

标签: sql sql-server sharepoint ssis oledb

尝试传输数据时出现此错误。我是SSIS的新人,但如果你能提供帮助就会很棒。

[OLE DB Destination 1 [2]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80040E21  Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".

[OLE DB Destination 1 [2]] Error: An error occurred while setting up a binding for the "Comments" column. The binding status was "DT_NTEXT". The data flow column type is "DBBINDSTATUS_UNSUPPORTEDCONVERSION". The conversion from the OLE DB type of "DBTYPE_IUNKNOWN" to the destination column type of "DBTYPE_WVARCHAR" might not be supported by this provider.

[OLE DB Destination 1 [2]] Error: Cannot create an OLE DB accessor. Verify that the column metadata is valid.

[SSIS.Pipeline] Error: OLE DB Destination 1 failed the pre-execute phase and returned error code 0xC0202025.

Task Get Merchant Data failed

1 个答案:

答案 0 :(得分:0)

好的,所以错误的关键部分是

"Comments" column. The binding status was "DT_NTEXT". The data flow column type is "DBBINDSTATUS_UNSUPPORTEDCONVERSION". The conversion from the OLE DB type of "DBTYPE_IUNKNOWN" to the destination column type of "DBTYPE_WVARCHAR"  might not be supported by this provider.

所以你试图写一个TEXT列(NTEXT,因为这是unicode数据)。 您的评论来源是DBTYPE_IUNKNOWN类型,它说它不知道如何转换为NTEXT导致您的错误。

修复是编辑你的源连接并声明一个可以转换的数据类型,因为它当前设置为unknown,我想你还没有这样做。

因此打开源连接并编辑注释列的数据类型并选择适当的结果。它可能是某种形式的NTEXT或WTEXT,将在导入时转换为NTEXT