【问题标题】:SSIS - Error in transferring data from Sharepoint source to OLDB destinationSSIS - 将数据从 Sharepoint 源传输到 OLDB 目标时出错
【发布时间】:2016-07-12 05:44:44
【问题描述】:

我在尝试传输数据时收到此错误。我是 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

【问题讨论】:

  • 你能告诉我们源列是什么吗?
  • 是的 SureSELECT [ID] ,[Status] ,[Store_No (LinkTitle)] ,[Merchant_No] ,[Comments] ,[Created] ,[Third_Party_Introduced_Customer] FROM [dbo].[tmp_Merchant GO跨度>

标签: sql sql-server sharepoint ssis oledb


【解决方案1】:

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

"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 数据)。 您的 cmets 源的类型为 DBTYPE_IUNKNOWN,它表示它不知道如何转换为 NTEXT 导致您的错误。

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

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

【讨论】:

  • 谢谢迈克。起初我不知道该怎么做,但我玩了一个转换器,然后我接受了你的建议并做了,它奏效了
  • 太棒了。如果我的回答对他们有​​帮助,您可以接受它,以便将您的问题标记为已回答。这将有助于其他搜索类似问题的人
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-06-24
相关资源
最近更新 更多