0

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

"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"

我将连接管理器中的文本限定符设置为“

尽管 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. 

如果我使用记事本并删除所有双引号,则该文件有效。虽然这并不理想。

对于如何解决这个问题,有任何的建议吗?

4

2 回答 2

0

转到左侧面板上的连接管理器// 高级部分。您会看到列名有双引号和空格。清理所有列名。

于 2013-11-07T19:12:49.470 回答
0

在我的情况下:SSIS - Version 11.0.6020.0,它帮助我在文本限定符为的平面文件连接管理器编辑器中更改TextQualified为。True(")

于 2016-04-27T09:28:02.110 回答