使用tFileInputDelimited从CSV读取int值时出错错误:对于输入字符串:“10617 ,,,,,”

问题描述 投票:1回答:1

我是Talend的新手我正在尝试读取CSV文件并根据整数值对其进行排序。请在下面找到我的csv示例输入

描述;行业;水平;大小;行代码;价值 企业在供应商因素上花费了大量时间和资源; FIN; 0; 6-19名员工; LC0301; 10617 企业在劳动力因素上花费了大量时间和资源; FIN; 0; 6-19名员工; LC0302; 16395 业务在技术/设备因素上花费了大量时间和资源; FIN; 0; 6-19名员工; LC0303; 7401 企业在融资因素上花费了大量时间和资源; FIN; 0; 6-19名员工; LC0304; 4896 企业在客户相关因素上花费了大量时间和资源; FIN; 0; 6-19名员工; LC03051; 3101

我试图使用我定义的tFileInputDelimited.Schema来读取它 Schema Image

当我运行这份工作时。我遇到了错误。

Starting job SortCSVFile at 11:24 26/02/2019.

******[statistics] connecting to socket on port 3949
[statistics] connected
For input string: "10617,,,,,"
For input string: "16395,,,,,"
For input string: "7401,,,,,"
For input string: "4896,,,,,"
For input string: "3101,,,,,"
[statistics] disconnected
Job SortCSVFile ended at 11:24 26/02/2019. [exit code=0]******

请帮我解决这个问题。

talend
1个回答
1
投票

我找到了答案。我在tFileInputDelimeter的高级设置选项卡中选择了“高级分隔符(用于数字)”复选框。谢谢。我发布了这个答案,因为它可能对像我这样的新学员有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.