BIRT“目标聚合名称不存在”

时间:2009-12-03 21:16:12

标签: birt

我正在设计一个包含各种聚合和数据字段的会计报告,当我尝试在字段上聚合时,我收到以下错误:

"Target Aggregation Name does not exist"

现在......计算字段的表达式如下

if( row["A"] == 'ASSET' )
{
    some value
}
else
{
    0;
}

如果我输入一个常量值,如1,则聚合起作用......

编辑:

有关错误日志的更多信息

    data.engine.BirtException ( 1 time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: A BIRT exception occurred: Error evaluating Javascript expression. Script engine error: A BIRT exception occurred: Error evaluating Javascript expression. Script engine error: A BIRT exception occurred: Error evaluating Javascript expression. Script engine error: Target Aggregation Name does not exist
 Script source: null, line: 10,198, text:
<compiled script>. See next exception for more information.

更多

Script source: null, line: 0, text:
<compiled script>
    at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1166)
    at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1130)
    at org.eclipse.birt.report.engine.executor.DataItemExecutor.execute(DataItemExecutor.java:100)
    at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
    at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
    at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)
    at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:64)
    at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
    at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)

Script source: null, line: 0, text:
<compiled script>
    at org.eclipse.birt.data.engine.core.DataException.wrap(DataException.java:118)
    at org.eclipse.birt.data.engine.expression.BytecodeExpression.evaluate(BytecodeExpression.java:53)
    at org.eclipse.birt.data.engine.expression.ExprEvaluateUtil.evaluateCompiledExpression(ExprEvaluateUtil.java:472)
    at org.eclipse.birt.data.engine.expression.ExprEvaluateUtil.evaluateValue(ExprEvaluateUtil.java:332)
    at org.eclipse.birt.data.engine.executor.aggregation.AggregationHelper.evaluateArgsValue(AggregationHelper.java:481)
    at org.eclipse.birt.data.engine.executor.aggregation.AggregationHelper.onRow(AggregationHelper.java:344)
    at org.eclipse.birt.data.engine.executor.aggregation.AggregationHelper.pass(AggregationHelper.java:184)
    at org.eclipse.birt.data.engine.executor.aggregation.AggregationHelper.calculate(AggregationHelper.java:147)
    at org.eclipse.birt.data.engine.executor.aggregation.AggregationHelper.populateAggregations(AggregationHelper.java:109)
    at org.eclipse.birt.data.engine.executor.aggregation.AggregationHelper.<init>(AggregationHelper.java:86)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.populateAggregationInBinding(PassManager.java:145)
    at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.pass(PassManager.java:128)

0 个答案:

没有答案