数据工厂中的双引号、逗号和转义

Double quotes, commas and escapes in Data factory

提问人:user2181700 提问时间:9/20/2021 最后编辑:user2181700 更新时间:9/21/2021 访问量:1242

问:

我有 .xlsx 源文件沉入 .csv 文件。

数据集设置如下

enter image description here

这导致我的 .csv 文件中断

enter image description here

在休息之前,备注列中的文本如下所示

等等 “foo foo foo” 酒吧。胡说八道/傻瓜

双引号是否应该转义我的备忘录列并创建一行? 我以为它需要一个逗号?

将设置更改为“无引号字符”会导致问题,因为此列还包含逗号。

我尝试将转义符更改为双引号,但让新行仍然带有引号。

我也在尝试考虑我未来的过程,即在另外两个地方为这个文件使用类似的数据集。是否可以在引入阶段修复此问题,还是需要更改所有数据集?

我应该将其设置为什么?

提前致谢

csv 引用 azure-data-factory

评论


答:

0赞 IpsitaDash-MT 9/21/2021 #1

这是我的源数据集和配置:sample1.xlsx

enter image description here

Sink 数据集和配置:outputcsv2.csv

enter image description here

请确保在“复制活动设置”中的“-”下选择:Flatten hierarchyCopy Behaviorsink

enter image description here

下面是复制活动成功运行后的“我的存储帐户”下的内容:Here is the under the my Storage account after the Copy Activity runs successfully:outputcsv2.csv

enter image description here