SSIS忽略文本限定符 - 双引号保留在一列中

时间:2013-11-07 18:18:18

标签: ssis

我正在尝试导入一个如下所示的文件:

"RTSTAT","DATE","      BUS_LINE      ","AMOUNT","LN_CODE","TEAM"  
"0646540210","10/04/11  ","   P   ",  99900.00,"0010101","0098765"
"0940365400","03/30/12  ","   P   ",  88800.00,"0020202","0085464"

我将Connection Manager中的文本限定符设置为“

虽然TEAM列的数据仍显示预览中的双引号。

当我运行包时,DataFlow中的源文件会出错:

Error: 0xC0202055 at Data Flow Task, Source - VFE3007M_DETAIL_csv [1]: 
The column delimiter for column "TEAM      " was not found.
Error: 0xC0202091 at Data Flow Task, Source - VFE3007M_DETAIL_csv [1]: 
An error occurred while skipping data rows.
Error: 0xC0047038 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.
The PrimeOutput method on component "Source - VFE3007M_DETAIL_csv" (1) 
returned error code 0xC0202091. 

如果我使用NotePad并删除所有双引号,则该文件可以正常工作。虽然那不太理想。

有关如何解决此问题的任何建议吗?

2 个答案:

答案 0 :(得分:0)

转到左侧面板上的Connection Manager // Advanced部分。您将看到列名称具有双引号和空格。清理所有列名称。

答案 1 :(得分:0)

就我而言:SSIS - Version 11.0.6020.0,它帮助我在平面文件连接管理器编辑器中将TextQualified更改为True,其中文本限定符为(")