复制活动失败,并且“找到了比预期列数更多的列” [英] Copy Activity fails with "found more columns than expected column count"

查看:86
本文介绍了复制活动失败,并且“找到了比预期列数更多的列”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用ADF将压缩的blob加载到SQL Azure Datawarehouse时,我得到了这样的错误:

While using ADF to load the compressed blob to SQL Azure Datawarehouse, I get this eror:

复制活动在源端遇到用户错误:ErrorCode = UserErrorSourceDataContainsMoreColumnsThanDefined,'Type = Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message = Error
在处理时找到' Csv / Tsv格式文本'source'abcdefgh',行号为1:发现列多于预期列数:53。,Source = Microsoft.DataTransfer.Common,'。

我查看了blob的模式,并在SQL Azure DWH中创建了确切的列数。如何排除故障?

I looked at the schema of the blob and created exact number of columns in SQL Azure DWH. How to troubleshoot this?

推荐答案

我认为ADF默认使用逗号作为列分隔符。 但如果您的数据也有逗号,则可能会出现问题。 尝试使用您的数据中没有出现的其他分隔符。 也许是一个不可打印的字符,比如
。 "\ u0001"或"\ u001e"。
I believe ADF uses a comma as a column delimiter by default.  But if your data also has commas, this can be problematic.  Try using a different delimiter that does not occur in your data.  Perhaps a non-printable character like . "\u0001" or "\u001e".


这篇关于复制活动失败,并且“找到了比预期列数更多的列”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆