Hide
If we add a FormulaFunction and don't specify a formula, we end up with a line like this in datadefinition.xml:
<expression name="FormulaFunction0"/>
If we close PRD and open it again, if we try to open this report we'll get a very nasty exception. I had to edit the .prpt file manually:
ParentException:
org.pentaho.reporting.libraries.xmlns.parser.ParseException: Required attribute 'class' is missing. [Location: Line=7 Column=40]
at org.pentaho.reporting.engine.classic.core.modules.parser.base.common.ExpressionReadHandler.startParsing(ExpressionReadHandler.java:85)
at org.pentaho.reporting.engine.classic.core.modules.parser.base.common.AbstractPropertyXmlReadHandler.startParsing(AbstractPropertyXmlReadHandler.java:66)
at org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler.startElement(AbstractXmlReadHandler.java:116)
at org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler.recurse(RootXmlReadHandler.java:328)
at org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler.startElement(AbstractXmlReadHandler.java:133)
at org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler.startElement(RootXmlReadHandler.java:467)
Show
If we add a FormulaFunction and don't specify a formula, we end up with a line like this in datadefinition.xml:
<expression name="FormulaFunction0"/>
If we close PRD and open it again, if we try to open this report we'll get a very nasty exception. I had to edit the .prpt file manually:
ParentException:
org.pentaho.reporting.libraries.xmlns.parser.ParseException: Required attribute 'class' is missing. [Location: Line=7 Column=40]
at org.pentaho.reporting.engine.classic.core.modules.parser.base.common.ExpressionReadHandler.startParsing(ExpressionReadHandler.java:85)
at org.pentaho.reporting.engine.classic.core.modules.parser.base.common.AbstractPropertyXmlReadHandler.startParsing(AbstractPropertyXmlReadHandler.java:66)
at org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler.startElement(AbstractXmlReadHandler.java:116)
at org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler.recurse(RootXmlReadHandler.java:328)
at org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler.startElement(AbstractXmlReadHandler.java:133)
at org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler.startElement(RootXmlReadHandler.java:467)