问题描述
我有一个 SSIS 包,在他的 OLEDB 目标中有一个 NVARCHAR(MAX) 字段.这个字段甚至没有被数据流填充.数据流任务失败并显示错误无法创建 OLE DB 访问器.验证列元数据是否有效".
I have an SSIS package that in hes OLEDB destination have an NVARCHAR(MAX) field. This field is not even been filled by the data flow. The data flow task fails with error "Cannot create an OLE DB accessor. Verify that the column metadata is valid".
我看到了这个类似的问题:如何修复 SSIS 中的多步骤 OLE DB 操作错误? 并检查了我的元数据,并听取了它的建议.我发现 SSIS 将违规列映射为 NTEXT 而不是 DT_WSTR.我尝试将其类型更改为长度为 8000 的 DT_WSTR,但仍然出现相同的错误.还尝试用 NULL 填充该字段,同样的错误.将验证外部元数据"设置为 false 没有任何区别.关于如何修复它的任何建议?
I saw this similar question: How do I fix the multiple-step OLE DB operation errors in SSIS? and examined my metadata fallowing it's advice. I found that SSIS is mapping the offending column as NTEXT instead of DT_WSTR. I tried changing it's type to DT_WSTR with length 8000, but still get the same error. Also tried filling the field with NULL, same error. Setting "Validate External Metadata" to false didn't make any difference. Any suggestion about how to fix it?
谢谢.
推荐答案
只是为了记录,我最终使用了 .Net Destination,在那里这个错误不会发生.
Just for the records, I ended using a .Net Destination, where this bug doesn't happen.
这篇关于SSIS:无法创建 OLE DB 访问器.验证列元数据是否有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!