繁体   English   中英

第一列中的 null 值是否阻止在 Pentaho Spoon 中导入 Excel 文件?

[英]Are null values in the first column preventing import of Excel files in Pentaho Spoon?

我正在尝试使用 Pentaho Kettle/Spoon 中的“Excel 输入”转换导入 Excel 文件。 Spoon 为第 67 行吐出一个“NullPointerException”,该行在第一列中有一个 null 值。 (前 66 行在第一列中具有非空值。)

以下是错误日志:

2011/07/19 15:07:17 - Excel Input.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : Error processing row from Excel file [D:\Documents and Settings\kdrapkin\Desktop\Dataset creation\PDA data Saudi Arabia\input files\100 w.xlsx] : java.lang.NullPointerException
2011/07/19 15:07:17 - Excel Input.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : java.lang.NullPointerException
2011/07/19 15:07:17 - Excel Input.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : org.pentaho.di.trans.steps.excelinput.ExcelInput.fillRow(ExcelInput.java:122)
2011/07/19 15:07:17 - Excel Input.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : org.pentaho.di.trans.steps.excelinput.ExcelInput.getRowFromWorkbooks(ExcelInput.java:644)
2011/07/19 15:07:17 - Excel Input.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : org.pentaho.di.trans.steps.excelinput.ExcelInput.processRow(ExcelInput.java:450)
2011/07/19 15:07:17 - Excel Input.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : org.pentaho.di.trans.step.RunThread.run(RunThread.java:40)
2011/07/19 15:07:17 - Excel Input.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : java.lang.Thread.run(Unknown Source)
2011/07/19 15:07:17 - Excel Input.0 - Finished processing (I=66, O=0, R=0, W=66, U=0, E=1)

有没有办法解决这个问题?

我遇到了同样的错误,这是一个适合我的解决方案。

将整个数据从该表复制到另一个表

我也遇到了同样的问题,我将这些行复制到另一个文件中,它工作正常。

原因:
1. 我在 Sheet1 中使用了 Vlookup,但该文件中的值不可用。 所以发生了 Null 指针异常。

将其复制到另一个文件后,查找值变为 Empty,并且 Null 指针异常消失

我遇到了同样的错误。 If your file is not very big, you can change the " Spread Sheet type (engine) " option (on the Files tab of the Microsoft Excel Input step) from " Excel 2007 XLSX (Apache POI Streaming) " to " Excel 2007 XLSX (阿帕奇 POI) "。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM