-
Bug
-
Resolution: Fixed
-
Critical
-
5.7.0
-
None
-
Security Level: Jimmy
-
None
Steps to Reproduce
1. load the attached file
Current Result
java.lang.IllegalStateException: Too few arguments supplied to operation. Expected (2) operands but got (1) at org.zkoss.poi.ss.formula.FormulaRenderer.getOperands(FormulaRenderer.java:148) at org.zkoss.poi.ss.formula.FormulaRenderer.toFormulaString(FormulaRenderer.java:124) at org.zkoss.poi.ss.formula.FormulaRenderer.toFormulaEditText(FormulaRenderer.java:273) at io.keikaiex.model.sys.FormatEngineEx.getFormulaEditText(FormatEngineEx.java:61) at io.keikai.model.impl.sys.FormatEngineImpl.getEditText(FormatEngineImpl.java:169) at io.keikai.ui.impl.CellFormatHelper.getCellEditText(CellFormatHelper.java:544) at io.keikai.ui.SpreadsheetCtrlImpl.getCellAttr(SpreadsheetCtrlImpl.java:632) at io.keikai.ui.SpreadsheetCtrlImpl.getRangeAttrs(SpreadsheetCtrlImpl.java:382) at io.keikai.ui.Spreadsheet.createActiveRange(Spreadsheet.java:1970) at io.keikai.ui.Spreadsheet.renderProperties(Spreadsheet.java:1923) at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:2175)
Expected Result
A1 is 1
A2 is #REF
Debug Information
- the error also fails the exporting
- the formula contains an invalid reference: =2*IF(1=1,1,AnotherSheet!#REF!)
Workaround
fix the invalid cell reference
- relates to
-
KEIKAI-454 exporter can throw more specific information when exporting fails
- Closed