我在转换中有错误说无法从结果集中获取行并且无法获得值'日期'来自数据库结果集,索引2

时间:2016-11-14 14:24:32

标签: pentaho pentaho-spoon

2016/11/14 09:18:07 - installment.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Unexpected error
2016/11/14 09:18:07 - installment.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException: 
2016/11/14 09:18:07 - installment.0 - Couldn't get row from result set
2016/11/14 09:18:07 - installment.0 - 
2016/11/14 09:18:07 - installment.0 - Unable to get value 'Date' from database resultset, index 2
2016/11/14 09:18:07 - installment.0 - Value '7614399astanton0000-00-00 00:00:00scriptps2016-11-10 13:47:3600ûû12016-11-11 00:00:00  225.490000.00000    225.49000ûOPNû6228638ûEPP

1 个答案:

答案 0 :(得分:0)

这条线很清楚地说:

2016/11/14 09:18:07 - installment.0 - 
2016/11/14 09:18:07 - installment.0 - Unable to get value 'Date' from database resultset, index 2
2016/11/14 09:18:07 - installment.0 - Value '7614399astanton0000-00-00 00:00:00scriptps2016-11-10 13:47:3600ûû12016-11-11 00:00:00  225.490000.00000    225.49000ûOPNû6228638ûEPP

您有错误转换(从0开始的行中的值)

13:47:3600ûû12016-11-11 00:00:00

..到Date值。您必须指定正确的日期转换掩码。还有像

这样的字符
ûû1

暗示你很可能也有不正确的编码问题。