org.eclipse.birt.data.engine.core.DataException: Fail to execute script in function __bm_FETCH(). Source: ------ " + if( currentRow >= totalRows ) { return( false ); } var currentRowData = allRowsData.get(currentRow); row["aggrId"]=currentRowData[0]; row["aggrName"]=currentRowData[1]; row["clusterId"]=currentRowData[2]; row["clusterName"]=currentRowData[3]; row["haPair"]=currentRowData[4]; row["haPairId"]=currentRowData[5]; row["nodeId"]=currentRowData[6]; row["totalDataCapacity"]=currentRowData[7]; row["usedDataCapacity"]=currentRowData[8]; row["availableDataCapacity"]=currentRowData[9]; row["snapshotReserveUsedCapacity"]=currentRowData[ 10]; row["snapshotReserveAvailCapacity"]=currentRowData [11]; row["snapshotReserveTotalCapacity"]=currentRowData [12]; row["totalCommitted"]=currentRowData[13]; row["bytesUsedPerDay"]=currentRowData[14]; row["daysToFull"]=currentRowData[15]; row["aggregateType"]=currentRowData[16]; row["raidType"]=currentRowData[17]; row["state"]=currentRowData[18]; row["growthRateSensitivityThreshold"]=currentRowDa ta[19]; row["growthRateThreshold"]=currentRowData[20]; row["spaceFullThreshold"]=currentRowData[21]; row["spaceNearlyFullThreshold"]=currentRowData[22] ; row["overcommittedThreshold"]=currentRowData[23]; row["nearlyOvercommittedThreshold"]=currentRowData [24]; row["daysUntilFullThreshold"]=currentRowData[25]; row["snapshotFullThreshold"]=currentRowData[26]; // Computed Columns for percentage Calculation if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["usedPercent"] = 0.00 } else { row["usedPercent"] = BirtMath.round(row["usedDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["availablePercent"] = 0.00 } else { row["availablePercent"] = BirtMath.round(row["availableDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] >= row["snapshotReserveTotalCapacity"]) { row["snapshotReserveUsedPercent"] = 100.00 } else { row["snapshotReserveUsedPercent"] = BirtMath.round(row["snapshotReserveUsedCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } } else { row["snapshotReserveUsedPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { row["snapshotReserveAvailPercent"] = BirtMath.round(row["snapshotReserveAvailCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } else { row["snapshotReserveAvailPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] > row["snapshotReserveTotalCapacity"]) { row["snapshotOverflowPercent"] = BirtMath.round((row["snapshotReserveUsedCapacity"] - row["snapshotReserveTotalCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["snapshotOverflowPercent"] = 0.00 } } else { row["snapshotOverflowPercent"] = 0.00 } if (row["totalDataCapacity"] != null && row["totalDataCapacity"] !=0) { if (row["totalCommitted"] > row["totalDataCapacity"]) { row["overcommittedCapacityPercent"] = BirtMath.round((row["totalCommitted"] - row["totalDataCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["overcommittedCapacityPercent"] = 0.00 } } else { row["overcommittedCapacityPercent"] = 0.00 } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["dailyGrowthRate"] = 0.00 } else { row["dailyGrowthRate"] = BirtMath.round(row["bytesUsedPerDay"] * 100 / row["totalDataCapacity"], 2) } currentRow = currentRow + 1; return ( true ); + " ----- A BIRT exception occurred. See next exception for more information. ReferenceError: "currentRow" is not defined. (/report/data-sets/script-data-set[@id="526"]/meth od[@name="fetch"]#1) org.eclipse.birt.report.engine.api.EngineException : There are errors evaluating script "if( currentRow >= totalRows ) { return( false ); } var currentRowData = allRowsData.get(currentRow); row["aggrId"]=currentRowData[0]; row["aggrName"]=currentRowData[1]; row["clusterId"]=currentRowData[2]; row["clusterName"]=currentRowData[3]; row["haPair"]=currentRowData[4]; row["haPairId"]=currentRowData[5]; row["nodeId"]=currentRowData[6]; row["totalDataCapacity"]=currentRowData[7]; row["usedDataCapacity"]=currentRowData[8]; row["availableDataCapacity"]=currentRowData[9]; row["snapshotReserveUsedCapacity"]=currentRowData[ 10]; row["snapshotReserveAvailCapacity"]=currentRowData [11]; row["snapshotReserveTotalCapacity"]=currentRowData [12]; row["totalCommitted"]=currentRowData[13]; row["bytesUsedPerDay"]=currentRowData[14]; row["daysToFull"]=currentRowData[15]; row["aggregateType"]=currentRowData[16]; row["raidType"]=currentRowData[17]; row["state"]=currentRowData[18]; row["growthRateSensitivityThreshold"]=currentRowDa ta[19]; row["growthRateThreshold"]=currentRowData[20]; row["spaceFullThreshold"]=currentRowData[21]; row["spaceNearlyFullThreshold"]=currentRowData[22] ; row["overcommittedThreshold"]=currentRowData[23]; row["nearlyOvercommittedThreshold"]=currentRowData [24]; row["daysUntilFullThreshold"]=currentRowData[25]; row["snapshotFullThreshold"]=currentRowData[26]; // Computed Columns for percentage Calculation if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["usedPercent"] = 0.00 } else { row["usedPercent"] = BirtMath.round(row["usedDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["availablePercent"] = 0.00 } else { row["availablePercent"] = BirtMath.round(row["availableDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] >= row["snapshotReserveTotalCapacity"]) { row["snapshotReserveUsedPercent"] = 100.00 } else { row["snapshotReserveUsedPercent"] = BirtMath.round(row["snapshotReserveUsedCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } } else { row["snapshotReserveUsedPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { row["snapshotReserveAvailPercent"] = BirtMath.round(row["snapshotReserveAvailCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } else { row["snapshotReserveAvailPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] > row["snapshotReserveTotalCapacity"]) { row["snapshotOverflowPercent"] = BirtMath.round((row["snapshotReserveUsedCapacity"] - row["snapshotReserveTotalCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["snapshotOverflowPercent"] = 0.00 } } else { row["snapshotOverflowPercent"] = 0.00 } if (row["totalDataCapacity"] != null && row["totalDataCapacity"] !=0) { if (row["totalCommitted"] > row["totalDataCapacity"]) { row["overcommittedCapacityPercent"] = BirtMath.round((row["totalCommitted"] - row["totalDataCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["overcommittedCapacityPercent"] = 0.00 } } else { row["overcommittedCapacityPercent"] = 0.00 } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["dailyGrowthRate"] = 0.00 } else { row["dailyGrowthRate"] = BirtMath.round(row["bytesUsedPerDay"] * 100 / row["totalDataCapacity"], 2) } currentRow = currentRow + 1; return ( true );": Fail to execute script in function __bm_FETCH(). Source: ------ " + if( currentRow >= totalRows ) { return( false ); } var currentRowData = allRowsData.get(currentRow); row["aggrId"]=currentRowData[0]; row["aggrName"]=currentRowData[1]; row["clusterId"]=currentRowData[2]; row["clusterName"]=currentRowData[3]; row["haPair"]=currentRowData[4]; row["haPairId"]=currentRowData[5]; row["nodeId"]=currentRowData[6]; row["totalDataCapacity"]=currentRowData[7]; row["usedDataCapacity"]=currentRowData[8]; row["availableDataCapacity"]=currentRowData[9]; row["snapshotReserveUsedCapacity"]=currentRowData[ 10]; row["snapshotReserveAvailCapacity"]=currentRowData [11]; row["snapshotReserveTotalCapacity"]=currentRowData [12]; row["totalCommitted"]=currentRowData[13]; row["bytesUsedPerDay"]=currentRowData[14]; row["daysToFull"]=currentRowData[15]; row["aggregateType"]=currentRowData[16]; row["raidType"]=currentRowData[17]; row["state"]=currentRowData[18]; row["growthRateSensitivityThreshold"]=currentRowDa ta[19]; row["growthRateThreshold"]=currentRowData[20]; row["spaceFullThreshold"]=currentRowData[21]; row["spaceNearlyFullThreshold"]=currentRowData[22] ; row["overcommittedThreshold"]=currentRowData[23]; row["nearlyOvercommittedThreshold"]=currentRowData [24]; row["daysUntilFullThreshold"]=currentRowData[25]; row["snapshotFullThreshold"]=currentRowData[26]; // Computed Columns for percentage Calculation if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["usedPercent"] = 0.00 } else { row["usedPercent"] = BirtMath.round(row["usedDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["availablePercent"] = 0.00 } else { row["availablePercent"] = BirtMath.round(row["availableDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] >= row["snapshotReserveTotalCapacity"]) { row["snapshotReserveUsedPercent"] = 100.00 } else { row["snapshotReserveUsedPercent"] = BirtMath.round(row["snapshotReserveUsedCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } } else { row["snapshotReserveUsedPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { row["snapshotReserveAvailPercent"] = BirtMath.round(row["snapshotReserveAvailCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } else { row["snapshotReserveAvailPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] > row["snapshotReserveTotalCapacity"]) { row["snapshotOverflowPercent"] = BirtMath.round((row["snapshotReserveUsedCapacity"] - row["snapshotReserveTotalCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["snapshotOverflowPercent"] = 0.00 } } else { row["snapshotOverflowPercent"] = 0.00 } if (row["totalDataCapacity"] != null && row["totalDataCapacity"] !=0) { if (row["totalCommitted"] > row["totalDataCapacity"]) { row["overcommittedCapacityPercent"] = BirtMath.round((row["totalCommitted"] - row["totalDataCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["overcommittedCapacityPercent"] = 0.00 } } else { row["overcommittedCapacityPercent"] = 0.00 } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["dailyGrowthRate"] = 0.00 } else { row["dailyGrowthRate"] = BirtMath.round(row["bytesUsedPerDay"] * 100 / row["totalDataCapacity"], 2) } currentRow = currentRow + 1; return ( true ); + " ----- A BIRT exception occurred. See next exception for more information. ReferenceError: "currentRow" is not defined. (/report/data-sets/script-data-set[@id="526"]/meth od[@name="fetch"]#1). at org.eclipse.birt.report.engine.script.internal.DtE ScriptExecutor.handleJS(DtEScriptExecutor.java:99) at org.eclipse.birt.report.engine.script.internal.Dat aSetScriptExecutor.handleJS(DataSetScriptExecutor. java:256) at org.eclipse.birt.report.engine.script.internal.Scr iptDataSetScriptExecutor.handleFetch(ScriptDataSet ScriptExecutor.java:143) at org.eclipse.birt.data.engine.impl.ScriptDataSetRun time.fetch(ScriptDataSetRuntime.java:103) at org.eclipse.birt.data.engine.impl.PreparedScriptDS Query$ScriptDSQueryExecutor$CustomDataSet.fetch(Pr eparedScriptDSQuery.java:260) at org.eclipse.birt.data.engine.executor.cache.OdiAda pter.fetch(OdiAdapter.java:226) at org.eclipse.birt.data.engine.executor.cache.RowRes ultSet.fetch(RowResultSet.java:145) at org.eclipse.birt.data.engine.executor.cache.RowRes ultSet.doNext(RowResultSet.java:118) at org.eclipse.birt.data.engine.executor.cache.RowRes ultSet.next(RowResultSet.java:96) at org.eclipse.birt.data.engine.executor.cache.Expand ableRowResultSet.next(ExpandableRowResultSet.java: 63) at org.eclipse.birt.data.engine.executor.cache.SmartC acheHelper.populateData(SmartCacheHelper.java:318) at org.eclipse.birt.data.engine.executor.cache.SmartC acheHelper.initInstance(SmartCacheHelper.java:285) at org.eclipse.birt.data.engine.executor.cache.SmartC acheHelper.getResultSetCache(SmartCacheHelper.java :246) at org.eclipse.birt.data.engine.executor.cache.SmartC ache.<init>(SmartCache.java:74) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassUtil.populateOdiResultSet(PassUtil.java:110 ) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassUtil.pass(PassUtil.java:62) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.populateResultSetCacheInResultSetPo pulator(PassManager.java:276) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.populateDataSet(PassManager.java:23 8) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.prepareDataSetResultSet(PassManager .java:98) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.pass(PassManager.java:134) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.populateResultSet(PassManager.java: 74) at org.eclipse.birt.data.engine.executor.transform.Re sultSetPopulator.populateResultSet(ResultSetPopula tor.java:218) at org.eclipse.birt.data.engine.executor.transform.Ca chedResultSet.<init>(CachedResultSet.java:200) at org.eclipse.birt.data.engine.executor.CandidateQue ry.execute(CandidateQuery.java:142) at org.eclipse.birt.data.engine.impl.PreparedScriptDS Query$ScriptDSQueryExecutor.executeOdiQuery(Prepar edScriptDSQuery.java:226) at org.eclipse.birt.data.engine.impl.QueryExecutor.ex ecute(QueryExecutor.java:1237) at org.eclipse.birt.data.engine.impl.ServiceForQueryR esults.executeQuery(ServiceForQueryResults.java:23 3) at org.eclipse.birt.data.engine.impl.QueryResults.get ResultIterator(QueryResults.java:178) at org.eclipse.birt.report.engine.data.dte.QueryResul tSet.<init>(QueryResultSet.java:98) at org.eclipse.birt.report.engine.data.dte.DteDataEng ine.doExecuteQuery(DteDataEngine.java:168) at org.eclipse.birt.report.engine.data.dte.DataGenera tionEngine.doExecuteQuery(DataGenerationEngine.jav a:83) at org.eclipse.birt.report.engine.data.dte.AbstractDa taEngine.execute(AbstractDataEngine.java:275) at org.eclipse.birt.report.engine.executor.ExecutionC ontext.executeQuery(ExecutionContext.java:1947) at org.eclipse.birt.report.engine.executor.QueryItemE xecutor.executeQuery(QueryItemExecutor.java:80) at org.eclipse.birt.report.engine.executor.TableItemE xecutor.execute(TableItemExecutor.java:62) at org.eclipse.birt.report.engine.internal.executor.w rap.WrappedReportItemExecutor.execute(WrappedRepor tItemExecutor.java:46) at org.eclipse.birt.report.engine.internal.executor.e mitter.ReportItemEmitterExecutor.execute(ReportIte mEmitterExecutor.java:46) at org.eclipse.birt.report.engine.internal.executor.d up.SuppressDuplicateItemExecutor.execute(SuppressD uplicateItemExecutor.java:43) at org.eclipse.birt.report.engine.layout.html.HTMLBlo ckStackingLM.layoutNodes(HTMLBlockStackingLM.java: 65) at org.eclipse.birt.report.engine.layout.html.HTMLSta ckingLM.layoutChildren(HTMLStackingLM.java:26) at org.eclipse.birt.report.engine.layout.html.HTMLAbs tractLM.layout(HTMLAbstractLM.java:140) at org.eclipse.birt.report.engine.layout.html.HTMLInl ineStackingLM.resumeLayout(HTMLInlineStackingLM.ja va:111) at org.eclipse.birt.report.engine.layout.html.HTMLInl ineStackingLM.layoutNodes(HTMLInlineStackingLM.jav a:160) at org.eclipse.birt.report.engine.layout.html.HTMLSta ckingLM.layoutChildren(HTMLStackingLM.java:26) at org.eclipse.birt.report.engine.layout.html.HTMLAbs tractLM.layout(HTMLAbstractLM.java:140) at org.eclipse.birt.report.engine.layout.html.HTMLBlo ckStackingLM.layoutNodes(HTMLBlockStackingLM.java: 70) at org.eclipse.birt.report.engine.layout.html.HTMLSta ckingLM.layoutChildren(HTMLStackingLM.java:26) at org.eclipse.birt.report.engine.layout.html.HTMLRep eatHeaderLM.layoutChildren(HTMLRepeatHeaderLM.java :46) at org.eclipse.birt.report.engine.layout.html.HTMLAbs tractLM.layout(HTMLAbstractLM.java:140) at org.eclipse.birt.report.engine.layout.html.HTMLBlo ckStackingLM.layoutNodes(HTMLBlockStackingLM.java: 70) at org.eclipse.birt.report.engine.layout.html.HTMLPag eLM.layout(HTMLPageLM.java:92) at org.eclipse.birt.report.engine.layout.html.HTMLRep ortLayoutEngine.layout(HTMLReportLayoutEngine.java :100) at org.eclipse.birt.report.engine.presentation.Report DocumentBuilder.build(ReportDocumentBuilder.java:2 58)

netapp.com | 4 months ago
  1. 0

    Reports broken in OnCommand Unified Manager 6.2RC1 - NetApp Community

    netapp.com | 4 months ago
    org.eclipse.birt.data.engine.core.DataException: Fail to execute script in function __bm_FETCH(). Source: ------ " + if( currentRow >= totalRows ) { return( false ); } var currentRowData = allRowsData.get(currentRow); row["aggrId"]=currentRowData[0]; row["aggrName"]=currentRowData[1]; row["clusterId"]=currentRowData[2]; row["clusterName"]=currentRowData[3]; row["haPair"]=currentRowData[4]; row["haPairId"]=currentRowData[5]; row["nodeId"]=currentRowData[6]; row["totalDataCapacity"]=currentRowData[7]; row["usedDataCapacity"]=currentRowData[8]; row["availableDataCapacity"]=currentRowData[9]; row["snapshotReserveUsedCapacity"]=currentRowData[ 10]; row["snapshotReserveAvailCapacity"]=currentRowData [11]; row["snapshotReserveTotalCapacity"]=currentRowData [12]; row["totalCommitted"]=currentRowData[13]; row["bytesUsedPerDay"]=currentRowData[14]; row["daysToFull"]=currentRowData[15]; row["aggregateType"]=currentRowData[16]; row["raidType"]=currentRowData[17]; row["state"]=currentRowData[18]; row["growthRateSensitivityThreshold"]=currentRowDa ta[19]; row["growthRateThreshold"]=currentRowData[20]; row["spaceFullThreshold"]=currentRowData[21]; row["spaceNearlyFullThreshold"]=currentRowData[22] ; row["overcommittedThreshold"]=currentRowData[23]; row["nearlyOvercommittedThreshold"]=currentRowData [24]; row["daysUntilFullThreshold"]=currentRowData[25]; row["snapshotFullThreshold"]=currentRowData[26]; // Computed Columns for percentage Calculation if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["usedPercent"] = 0.00 } else { row["usedPercent"] = BirtMath.round(row["usedDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["availablePercent"] = 0.00 } else { row["availablePercent"] = BirtMath.round(row["availableDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] >= row["snapshotReserveTotalCapacity"]) { row["snapshotReserveUsedPercent"] = 100.00 } else { row["snapshotReserveUsedPercent"] = BirtMath.round(row["snapshotReserveUsedCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } } else { row["snapshotReserveUsedPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { row["snapshotReserveAvailPercent"] = BirtMath.round(row["snapshotReserveAvailCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } else { row["snapshotReserveAvailPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] > row["snapshotReserveTotalCapacity"]) { row["snapshotOverflowPercent"] = BirtMath.round((row["snapshotReserveUsedCapacity"] - row["snapshotReserveTotalCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["snapshotOverflowPercent"] = 0.00 } } else { row["snapshotOverflowPercent"] = 0.00 } if (row["totalDataCapacity"] != null && row["totalDataCapacity"] !=0) { if (row["totalCommitted"] > row["totalDataCapacity"]) { row["overcommittedCapacityPercent"] = BirtMath.round((row["totalCommitted"] - row["totalDataCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["overcommittedCapacityPercent"] = 0.00 } } else { row["overcommittedCapacityPercent"] = 0.00 } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["dailyGrowthRate"] = 0.00 } else { row["dailyGrowthRate"] = BirtMath.round(row["bytesUsedPerDay"] * 100 / row["totalDataCapacity"], 2) } currentRow = currentRow + 1; return ( true ); + " ----- A BIRT exception occurred. See next exception for more information. ReferenceError: "currentRow" is not defined. (/report/data-sets/script-data-set[@id="526"]/meth od[@name="fetch"]#1) org.eclipse.birt.report.engine.api.EngineException : There are errors evaluating script "if( currentRow >= totalRows ) { return( false ); } var currentRowData = allRowsData.get(currentRow); row["aggrId"]=currentRowData[0]; row["aggrName"]=currentRowData[1]; row["clusterId"]=currentRowData[2]; row["clusterName"]=currentRowData[3]; row["haPair"]=currentRowData[4]; row["haPairId"]=currentRowData[5]; row["nodeId"]=currentRowData[6]; row["totalDataCapacity"]=currentRowData[7]; row["usedDataCapacity"]=currentRowData[8]; row["availableDataCapacity"]=currentRowData[9]; row["snapshotReserveUsedCapacity"]=currentRowData[ 10]; row["snapshotReserveAvailCapacity"]=currentRowData [11]; row["snapshotReserveTotalCapacity"]=currentRowData [12]; row["totalCommitted"]=currentRowData[13]; row["bytesUsedPerDay"]=currentRowData[14]; row["daysToFull"]=currentRowData[15]; row["aggregateType"]=currentRowData[16]; row["raidType"]=currentRowData[17]; row["state"]=currentRowData[18]; row["growthRateSensitivityThreshold"]=currentRowDa ta[19]; row["growthRateThreshold"]=currentRowData[20]; row["spaceFullThreshold"]=currentRowData[21]; row["spaceNearlyFullThreshold"]=currentRowData[22] ; row["overcommittedThreshold"]=currentRowData[23]; row["nearlyOvercommittedThreshold"]=currentRowData [24]; row["daysUntilFullThreshold"]=currentRowData[25]; row["snapshotFullThreshold"]=currentRowData[26]; // Computed Columns for percentage Calculation if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["usedPercent"] = 0.00 } else { row["usedPercent"] = BirtMath.round(row["usedDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["availablePercent"] = 0.00 } else { row["availablePercent"] = BirtMath.round(row["availableDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] >= row["snapshotReserveTotalCapacity"]) { row["snapshotReserveUsedPercent"] = 100.00 } else { row["snapshotReserveUsedPercent"] = BirtMath.round(row["snapshotReserveUsedCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } } else { row["snapshotReserveUsedPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { row["snapshotReserveAvailPercent"] = BirtMath.round(row["snapshotReserveAvailCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } else { row["snapshotReserveAvailPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] > row["snapshotReserveTotalCapacity"]) { row["snapshotOverflowPercent"] = BirtMath.round((row["snapshotReserveUsedCapacity"] - row["snapshotReserveTotalCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["snapshotOverflowPercent"] = 0.00 } } else { row["snapshotOverflowPercent"] = 0.00 } if (row["totalDataCapacity"] != null && row["totalDataCapacity"] !=0) { if (row["totalCommitted"] > row["totalDataCapacity"]) { row["overcommittedCapacityPercent"] = BirtMath.round((row["totalCommitted"] - row["totalDataCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["overcommittedCapacityPercent"] = 0.00 } } else { row["overcommittedCapacityPercent"] = 0.00 } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["dailyGrowthRate"] = 0.00 } else { row["dailyGrowthRate"] = BirtMath.round(row["bytesUsedPerDay"] * 100 / row["totalDataCapacity"], 2) } currentRow = currentRow + 1; return ( true );": Fail to execute script in function __bm_FETCH(). Source: ------ " + if( currentRow >= totalRows ) { return( false ); } var currentRowData = allRowsData.get(currentRow); row["aggrId"]=currentRowData[0]; row["aggrName"]=currentRowData[1]; row["clusterId"]=currentRowData[2]; row["clusterName"]=currentRowData[3]; row["haPair"]=currentRowData[4]; row["haPairId"]=currentRowData[5]; row["nodeId"]=currentRowData[6]; row["totalDataCapacity"]=currentRowData[7]; row["usedDataCapacity"]=currentRowData[8]; row["availableDataCapacity"]=currentRowData[9]; row["snapshotReserveUsedCapacity"]=currentRowData[ 10]; row["snapshotReserveAvailCapacity"]=currentRowData [11]; row["snapshotReserveTotalCapacity"]=currentRowData [12]; row["totalCommitted"]=currentRowData[13]; row["bytesUsedPerDay"]=currentRowData[14]; row["daysToFull"]=currentRowData[15]; row["aggregateType"]=currentRowData[16]; row["raidType"]=currentRowData[17]; row["state"]=currentRowData[18]; row["growthRateSensitivityThreshold"]=currentRowDa ta[19]; row["growthRateThreshold"]=currentRowData[20]; row["spaceFullThreshold"]=currentRowData[21]; row["spaceNearlyFullThreshold"]=currentRowData[22] ; row["overcommittedThreshold"]=currentRowData[23]; row["nearlyOvercommittedThreshold"]=currentRowData [24]; row["daysUntilFullThreshold"]=currentRowData[25]; row["snapshotFullThreshold"]=currentRowData[26]; // Computed Columns for percentage Calculation if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["usedPercent"] = 0.00 } else { row["usedPercent"] = BirtMath.round(row["usedDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["availablePercent"] = 0.00 } else { row["availablePercent"] = BirtMath.round(row["availableDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] >= row["snapshotReserveTotalCapacity"]) { row["snapshotReserveUsedPercent"] = 100.00 } else { row["snapshotReserveUsedPercent"] = BirtMath.round(row["snapshotReserveUsedCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } } else { row["snapshotReserveUsedPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { row["snapshotReserveAvailPercent"] = BirtMath.round(row["snapshotReserveAvailCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } else { row["snapshotReserveAvailPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] > row["snapshotReserveTotalCapacity"]) { row["snapshotOverflowPercent"] = BirtMath.round((row["snapshotReserveUsedCapacity"] - row["snapshotReserveTotalCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["snapshotOverflowPercent"] = 0.00 } } else { row["snapshotOverflowPercent"] = 0.00 } if (row["totalDataCapacity"] != null && row["totalDataCapacity"] !=0) { if (row["totalCommitted"] > row["totalDataCapacity"]) { row["overcommittedCapacityPercent"] = BirtMath.round((row["totalCommitted"] - row["totalDataCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["overcommittedCapacityPercent"] = 0.00 } } else { row["overcommittedCapacityPercent"] = 0.00 } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["dailyGrowthRate"] = 0.00 } else { row["dailyGrowthRate"] = BirtMath.round(row["bytesUsedPerDay"] * 100 / row["totalDataCapacity"], 2) } currentRow = currentRow + 1; return ( true ); + " ----- A BIRT exception occurred. See next exception for more information. ReferenceError: "currentRow" is not defined. (/report/data-sets/script-data-set[@id="526"]/meth od[@name="fetch"]#1). at org.eclipse.birt.report.engine.script.internal.DtE ScriptExecutor.handleJS(DtEScriptExecutor.java:99) at org.eclipse.birt.report.engine.script.internal.Dat aSetScriptExecutor.handleJS(DataSetScriptExecutor. java:256) at org.eclipse.birt.report.engine.script.internal.Scr iptDataSetScriptExecutor.handleFetch(ScriptDataSet ScriptExecutor.java:143) at org.eclipse.birt.data.engine.impl.ScriptDataSetRun time.fetch(ScriptDataSetRuntime.java:103) at org.eclipse.birt.data.engine.impl.PreparedScriptDS Query$ScriptDSQueryExecutor$CustomDataSet.fetch(Pr eparedScriptDSQuery.java:260) at org.eclipse.birt.data.engine.executor.cache.OdiAda pter.fetch(OdiAdapter.java:226) at org.eclipse.birt.data.engine.executor.cache.RowRes ultSet.fetch(RowResultSet.java:145) at org.eclipse.birt.data.engine.executor.cache.RowRes ultSet.doNext(RowResultSet.java:118) at org.eclipse.birt.data.engine.executor.cache.RowRes ultSet.next(RowResultSet.java:96) at org.eclipse.birt.data.engine.executor.cache.Expand ableRowResultSet.next(ExpandableRowResultSet.java: 63) at org.eclipse.birt.data.engine.executor.cache.SmartC acheHelper.populateData(SmartCacheHelper.java:318) at org.eclipse.birt.data.engine.executor.cache.SmartC acheHelper.initInstance(SmartCacheHelper.java:285) at org.eclipse.birt.data.engine.executor.cache.SmartC acheHelper.getResultSetCache(SmartCacheHelper.java :246) at org.eclipse.birt.data.engine.executor.cache.SmartC ache.<init>(SmartCache.java:74) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassUtil.populateOdiResultSet(PassUtil.java:110 ) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassUtil.pass(PassUtil.java:62) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.populateResultSetCacheInResultSetPo pulator(PassManager.java:276) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.populateDataSet(PassManager.java:23 8) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.prepareDataSetResultSet(PassManager .java:98) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.pass(PassManager.java:134) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.populateResultSet(PassManager.java: 74) at org.eclipse.birt.data.engine.executor.transform.Re sultSetPopulator.populateResultSet(ResultSetPopula tor.java:218) at org.eclipse.birt.data.engine.executor.transform.Ca chedResultSet.<init>(CachedResultSet.java:200) at org.eclipse.birt.data.engine.executor.CandidateQue ry.execute(CandidateQuery.java:142) at org.eclipse.birt.data.engine.impl.PreparedScriptDS Query$ScriptDSQueryExecutor.executeOdiQuery(Prepar edScriptDSQuery.java:226) at org.eclipse.birt.data.engine.impl.QueryExecutor.ex ecute(QueryExecutor.java:1237) at org.eclipse.birt.data.engine.impl.ServiceForQueryR esults.executeQuery(ServiceForQueryResults.java:23 3) at org.eclipse.birt.data.engine.impl.QueryResults.get ResultIterator(QueryResults.java:178) at org.eclipse.birt.report.engine.data.dte.QueryResul tSet.<init>(QueryResultSet.java:98) at org.eclipse.birt.report.engine.data.dte.DteDataEng ine.doExecuteQuery(DteDataEngine.java:168) at org.eclipse.birt.report.engine.data.dte.DataGenera tionEngine.doExecuteQuery(DataGenerationEngine.jav a:83) at org.eclipse.birt.report.engine.data.dte.AbstractDa taEngine.execute(AbstractDataEngine.java:275) at org.eclipse.birt.report.engine.executor.ExecutionC ontext.executeQuery(ExecutionContext.java:1947) at org.eclipse.birt.report.engine.executor.QueryItemE xecutor.executeQuery(QueryItemExecutor.java:80) at org.eclipse.birt.report.engine.executor.TableItemE xecutor.execute(TableItemExecutor.java:62) at org.eclipse.birt.report.engine.internal.executor.w rap.WrappedReportItemExecutor.execute(WrappedRepor tItemExecutor.java:46) at org.eclipse.birt.report.engine.internal.executor.e mitter.ReportItemEmitterExecutor.execute(ReportIte mEmitterExecutor.java:46) at org.eclipse.birt.report.engine.internal.executor.d up.SuppressDuplicateItemExecutor.execute(SuppressD uplicateItemExecutor.java:43) at org.eclipse.birt.report.engine.layout.html.HTMLBlo ckStackingLM.layoutNodes(HTMLBlockStackingLM.java: 65) at org.eclipse.birt.report.engine.layout.html.HTMLSta ckingLM.layoutChildren(HTMLStackingLM.java:26) at org.eclipse.birt.report.engine.layout.html.HTMLAbs tractLM.layout(HTMLAbstractLM.java:140) at org.eclipse.birt.report.engine.layout.html.HTMLInl ineStackingLM.resumeLayout(HTMLInlineStackingLM.ja va:111) at org.eclipse.birt.report.engine.layout.html.HTMLInl ineStackingLM.layoutNodes(HTMLInlineStackingLM.jav a:160) at org.eclipse.birt.report.engine.layout.html.HTMLSta ckingLM.layoutChildren(HTMLStackingLM.java:26) at org.eclipse.birt.report.engine.layout.html.HTMLAbs tractLM.layout(HTMLAbstractLM.java:140) at org.eclipse.birt.report.engine.layout.html.HTMLBlo ckStackingLM.layoutNodes(HTMLBlockStackingLM.java: 70) at org.eclipse.birt.report.engine.layout.html.HTMLSta ckingLM.layoutChildren(HTMLStackingLM.java:26) at org.eclipse.birt.report.engine.layout.html.HTMLRep eatHeaderLM.layoutChildren(HTMLRepeatHeaderLM.java :46) at org.eclipse.birt.report.engine.layout.html.HTMLAbs tractLM.layout(HTMLAbstractLM.java:140) at org.eclipse.birt.report.engine.layout.html.HTMLBlo ckStackingLM.layoutNodes(HTMLBlockStackingLM.java: 70) at org.eclipse.birt.report.engine.layout.html.HTMLPag eLM.layout(HTMLPageLM.java:92) at org.eclipse.birt.report.engine.layout.html.HTMLRep ortLayoutEngine.layout(HTMLReportLayoutEngine.java :100) at org.eclipse.birt.report.engine.presentation.Report DocumentBuilder.build(ReportDocumentBuilder.java:2 58)
  2. 0

    exceptions thrown out when rendering attached reports using engine APIs

    Eclipse Bugzilla | 1 decade ago | xiang.li
    org.eclipse.birt.data.engine.core.DataException: Invalid row index value: 0
  3. 0

    Engine Exception occurs when table using table groups is split on two pages

    Eclipse Bugzilla | 5 years ago | janwawrosz
    org.eclipse.birt.report.engine.api.EngineException: Invalid row index value: 16.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception thrown in deployed report viewer

    Eclipse Bugzilla | 8 years ago | joe
    org.eclipse.birt.data.engine.core.DataException: Column binding "row["CUSTOMERNUMBER"]" does not exist.
  6. 0

    upgrading the report engine from BIRT 2.2.2 to 2.5.1 causes Column Binding Exceptions

    Eclipse Bugzilla | 7 years ago | sriram.kumar
    org.eclipse.birt.data.engine.core.DataException: Column binding "row["DIMNAME2"]" does not exist.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.eclipse.birt.data.engine.core.DataException

      Fail to execute script in function __bm_FETCH(). Source: ------ " + if( currentRow >= totalRows ) { return( false ); } var currentRowData = allRowsData.get(currentRow); row["aggrId"]=currentRowData[0]; row["aggrName"]=currentRowData[1]; row["clusterId"]=currentRowData[2]; row["clusterName"]=currentRowData[3]; row["haPair"]=currentRowData[4]; row["haPairId"]=currentRowData[5]; row["nodeId"]=currentRowData[6]; row["totalDataCapacity"]=currentRowData[7]; row["usedDataCapacity"]=currentRowData[8]; row["availableDataCapacity"]=currentRowData[9]; row["snapshotReserveUsedCapacity"]=currentRowData[ 10]; row["snapshotReserveAvailCapacity"]=currentRowData [11]; row["snapshotReserveTotalCapacity"]=currentRowData [12]; row["totalCommitted"]=currentRowData[13]; row["bytesUsedPerDay"]=currentRowData[14]; row["daysToFull"]=currentRowData[15]; row["aggregateType"]=currentRowData[16]; row["raidType"]=currentRowData[17]; row["state"]=currentRowData[18]; row["growthRateSensitivityThreshold"]=currentRowDa ta[19]; row["growthRateThreshold"]=currentRowData[20]; row["spaceFullThreshold"]=currentRowData[21]; row["spaceNearlyFullThreshold"]=currentRowData[22] ; row["overcommittedThreshold"]=currentRowData[23]; row["nearlyOvercommittedThreshold"]=currentRowData [24]; row["daysUntilFullThreshold"]=currentRowData[25]; row["snapshotFullThreshold"]=currentRowData[26]; // Computed Columns for percentage Calculation if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["usedPercent"] = 0.00 } else { row["usedPercent"] = BirtMath.round(row["usedDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["availablePercent"] = 0.00 } else { row["availablePercent"] = BirtMath.round(row["availableDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] >= row["snapshotReserveTotalCapacity"]) { row["snapshotReserveUsedPercent"] = 100.00 } else { row["snapshotReserveUsedPercent"] = BirtMath.round(row["snapshotReserveUsedCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } } else { row["snapshotReserveUsedPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { row["snapshotReserveAvailPercent"] = BirtMath.round(row["snapshotReserveAvailCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } else { row["snapshotReserveAvailPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] > row["snapshotReserveTotalCapacity"]) { row["snapshotOverflowPercent"] = BirtMath.round((row["snapshotReserveUsedCapacity"] - row["snapshotReserveTotalCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["snapshotOverflowPercent"] = 0.00 } } else { row["snapshotOverflowPercent"] = 0.00 } if (row["totalDataCapacity"] != null && row["totalDataCapacity"] !=0) { if (row["totalCommitted"] > row["totalDataCapacity"]) { row["overcommittedCapacityPercent"] = BirtMath.round((row["totalCommitted"] - row["totalDataCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["overcommittedCapacityPercent"] = 0.00 } } else { row["overcommittedCapacityPercent"] = 0.00 } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["dailyGrowthRate"] = 0.00 } else { row["dailyGrowthRate"] = BirtMath.round(row["bytesUsedPerDay"] * 100 / row["totalDataCapacity"], 2) } currentRow = currentRow + 1; return ( true ); + " ----- A BIRT exception occurred. See next exception for more information. ReferenceError: "currentRow" is not defined. (/report/data-sets/script-data-set[@id="526"]/meth od[@name="fetch"]#1) org.eclipse.birt.report.engine.api.EngineException : There are errors evaluating script "if( currentRow >= totalRows ) { return( false ); } var currentRowData = allRowsData.get(currentRow); row["aggrId"]=currentRowData[0]; row["aggrName"]=currentRowData[1]; row["clusterId"]=currentRowData[2]; row["clusterName"]=currentRowData[3]; row["haPair"]=currentRowData[4]; row["haPairId"]=currentRowData[5]; row["nodeId"]=currentRowData[6]; row["totalDataCapacity"]=currentRowData[7]; row["usedDataCapacity"]=currentRowData[8]; row["availableDataCapacity"]=currentRowData[9]; row["snapshotReserveUsedCapacity"]=currentRowData[ 10]; row["snapshotReserveAvailCapacity"]=currentRowData [11]; row["snapshotReserveTotalCapacity"]=currentRowData [12]; row["totalCommitted"]=currentRowData[13]; row["bytesUsedPerDay"]=currentRowData[14]; row["daysToFull"]=currentRowData[15]; row["aggregateType"]=currentRowData[16]; row["raidType"]=currentRowData[17]; row["state"]=currentRowData[18]; row["growthRateSensitivityThreshold"]=currentRowDa ta[19]; row["growthRateThreshold"]=currentRowData[20]; row["spaceFullThreshold"]=currentRowData[21]; row["spaceNearlyFullThreshold"]=currentRowData[22] ; row["overcommittedThreshold"]=currentRowData[23]; row["nearlyOvercommittedThreshold"]=currentRowData [24]; row["daysUntilFullThreshold"]=currentRowData[25]; row["snapshotFullThreshold"]=currentRowData[26]; // Computed Columns for percentage Calculation if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["usedPercent"] = 0.00 } else { row["usedPercent"] = BirtMath.round(row["usedDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["availablePercent"] = 0.00 } else { row["availablePercent"] = BirtMath.round(row["availableDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] >= row["snapshotReserveTotalCapacity"]) { row["snapshotReserveUsedPercent"] = 100.00 } else { row["snapshotReserveUsedPercent"] = BirtMath.round(row["snapshotReserveUsedCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } } else { row["snapshotReserveUsedPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { row["snapshotReserveAvailPercent"] = BirtMath.round(row["snapshotReserveAvailCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } else { row["snapshotReserveAvailPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] > row["snapshotReserveTotalCapacity"]) { row["snapshotOverflowPercent"] = BirtMath.round((row["snapshotReserveUsedCapacity"] - row["snapshotReserveTotalCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["snapshotOverflowPercent"] = 0.00 } } else { row["snapshotOverflowPercent"] = 0.00 } if (row["totalDataCapacity"] != null && row["totalDataCapacity"] !=0) { if (row["totalCommitted"] > row["totalDataCapacity"]) { row["overcommittedCapacityPercent"] = BirtMath.round((row["totalCommitted"] - row["totalDataCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["overcommittedCapacityPercent"] = 0.00 } } else { row["overcommittedCapacityPercent"] = 0.00 } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["dailyGrowthRate"] = 0.00 } else { row["dailyGrowthRate"] = BirtMath.round(row["bytesUsedPerDay"] * 100 / row["totalDataCapacity"], 2) } currentRow = currentRow + 1; return ( true );": Fail to execute script in function __bm_FETCH(). Source: ------ " + if( currentRow >= totalRows ) { return( false ); } var currentRowData = allRowsData.get(currentRow); row["aggrId"]=currentRowData[0]; row["aggrName"]=currentRowData[1]; row["clusterId"]=currentRowData[2]; row["clusterName"]=currentRowData[3]; row["haPair"]=currentRowData[4]; row["haPairId"]=currentRowData[5]; row["nodeId"]=currentRowData[6]; row["totalDataCapacity"]=currentRowData[7]; row["usedDataCapacity"]=currentRowData[8]; row["availableDataCapacity"]=currentRowData[9]; row["snapshotReserveUsedCapacity"]=currentRowData[ 10]; row["snapshotReserveAvailCapacity"]=currentRowData [11]; row["snapshotReserveTotalCapacity"]=currentRowData [12]; row["totalCommitted"]=currentRowData[13]; row["bytesUsedPerDay"]=currentRowData[14]; row["daysToFull"]=currentRowData[15]; row["aggregateType"]=currentRowData[16]; row["raidType"]=currentRowData[17]; row["state"]=currentRowData[18]; row["growthRateSensitivityThreshold"]=currentRowDa ta[19]; row["growthRateThreshold"]=currentRowData[20]; row["spaceFullThreshold"]=currentRowData[21]; row["spaceNearlyFullThreshold"]=currentRowData[22] ; row["overcommittedThreshold"]=currentRowData[23]; row["nearlyOvercommittedThreshold"]=currentRowData [24]; row["daysUntilFullThreshold"]=currentRowData[25]; row["snapshotFullThreshold"]=currentRowData[26]; // Computed Columns for percentage Calculation if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["usedPercent"] = 0.00 } else { row["usedPercent"] = BirtMath.round(row["usedDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["availablePercent"] = 0.00 } else { row["availablePercent"] = BirtMath.round(row["availableDataCapacity"] * 100 / row["totalDataCapacity"], 2) } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] >= row["snapshotReserveTotalCapacity"]) { row["snapshotReserveUsedPercent"] = 100.00 } else { row["snapshotReserveUsedPercent"] = BirtMath.round(row["snapshotReserveUsedCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } } else { row["snapshotReserveUsedPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { row["snapshotReserveAvailPercent"] = BirtMath.round(row["snapshotReserveAvailCapacity"] * 100 / row["snapshotReserveTotalCapacity"], 2) } else { row["snapshotReserveAvailPercent"] = 0.00 } if (row["snapshotReserveTotalCapacity"] != null && row["snapshotReserveTotalCapacity"] != 0) { if (row["snapshotReserveUsedCapacity"] > row["snapshotReserveTotalCapacity"]) { row["snapshotOverflowPercent"] = BirtMath.round((row["snapshotReserveUsedCapacity"] - row["snapshotReserveTotalCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["snapshotOverflowPercent"] = 0.00 } } else { row["snapshotOverflowPercent"] = 0.00 } if (row["totalDataCapacity"] != null && row["totalDataCapacity"] !=0) { if (row["totalCommitted"] > row["totalDataCapacity"]) { row["overcommittedCapacityPercent"] = BirtMath.round((row["totalCommitted"] - row["totalDataCapacity"]) * 100 / row["totalDataCapacity"], 2) } else { row["overcommittedCapacityPercent"] = 0.00 } } else { row["overcommittedCapacityPercent"] = 0.00 } if (row["totalDataCapacity"] == null || row["totalDataCapacity"] == 0) { row["dailyGrowthRate"] = 0.00 } else { row["dailyGrowthRate"] = BirtMath.round(row["bytesUsedPerDay"] * 100 / row["totalDataCapacity"], 2) } currentRow = currentRow + 1; return ( true ); + " ----- A BIRT exception occurred. See next exception for more information. ReferenceError: "currentRow" is not defined. (/report/data-sets/script-data-set[@id="526"]/meth od[@name="fetch"]#1). at org.eclipse.birt.report.engine.script.internal.DtE ScriptExecutor.handleJS(DtEScriptExecutor.java:99) at org.eclipse.birt.report.engine.script.internal.Dat aSetScriptExecutor.handleJS(DataSetScriptExecutor. java:256) at org.eclipse.birt.report.engine.script.internal.Scr iptDataSetScriptExecutor.handleFetch(ScriptDataSet ScriptExecutor.java:143) at org.eclipse.birt.data.engine.impl.ScriptDataSetRun time.fetch(ScriptDataSetRuntime.java:103) at org.eclipse.birt.data.engine.impl.PreparedScriptDS Query$ScriptDSQueryExecutor$CustomDataSet.fetch(Pr eparedScriptDSQuery.java:260) at org.eclipse.birt.data.engine.executor.cache.OdiAda pter.fetch(OdiAdapter.java:226) at org.eclipse.birt.data.engine.executor.cache.RowRes ultSet.fetch(RowResultSet.java:145) at org.eclipse.birt.data.engine.executor.cache.RowRes ultSet.doNext(RowResultSet.java:118) at org.eclipse.birt.data.engine.executor.cache.RowRes ultSet.next(RowResultSet.java:96) at org.eclipse.birt.data.engine.executor.cache.Expand ableRowResultSet.next(ExpandableRowResultSet.java: 63) at org.eclipse.birt.data.engine.executor.cache.SmartC acheHelper.populateData(SmartCacheHelper.java:318) at org.eclipse.birt.data.engine.executor.cache.SmartC acheHelper.initInstance(SmartCacheHelper.java:285) at org.eclipse.birt.data.engine.executor.cache.SmartC acheHelper.getResultSetCache(SmartCacheHelper.java :246) at org.eclipse.birt.data.engine.executor.cache.SmartC ache.<init>(SmartCache.java:74) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassUtil.populateOdiResultSet(PassUtil.java:110 ) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassUtil.pass(PassUtil.java:62) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.populateResultSetCacheInResultSetPo pulator(PassManager.java:276) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.populateDataSet(PassManager.java:23 8) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.prepareDataSetResultSet(PassManager .java:98) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.pass(PassManager.java:134) at org.eclipse.birt.data.engine.executor.transform.pa ss.PassManager.populateResultSet(PassManager.java: 74) at org.eclipse.birt.data.engine.executor.transform.Re sultSetPopulator.populateResultSet(ResultSetPopula tor.java:218) at org.eclipse.birt.data.engine.executor.transform.Ca chedResultSet.<init>(CachedResultSet.java:200) at org.eclipse.birt.data.engine.executor.CandidateQue ry.execute(CandidateQuery.java:142) at org.eclipse.birt.data.engine.impl.PreparedScriptDS Query$ScriptDSQueryExecutor.executeOdiQuery(Prepar edScriptDSQuery.java:226) at org.eclipse.birt.data.engine.impl.QueryExecutor.ex ecute(QueryExecutor.java:1237) at org.eclipse.birt.data.engine.impl.ServiceForQueryR esults.executeQuery(ServiceForQueryResults.java:23 3) at org.eclipse.birt.data.engine.impl.QueryResults.get ResultIterator(QueryResults.java:178) at org.eclipse.birt.report.engine.data.dte.QueryResul tSet.<init>(QueryResultSet.java:98) at org.eclipse.birt.report.engine.data.dte.DteDataEng ine.doExecuteQuery(DteDataEngine.java:168) at org.eclipse.birt.report.engine.data.dte.DataGenera tionEngine.doExecuteQuery(DataGenerationEngine.jav a:83) at org.eclipse.birt.report.engine.data.dte.AbstractDa taEngine.execute(AbstractDataEngine.java:275) at org.eclipse.birt.report.engine.executor.ExecutionC ontext.executeQuery(ExecutionContext.java:1947) at org.eclipse.birt.report.engine.executor.QueryItemE xecutor.executeQuery(QueryItemExecutor.java:80) at org.eclipse.birt.report.engine.executor.TableItemE xecutor.execute(TableItemExecutor.java:62) at org.eclipse.birt.report.engine.internal.executor.w rap.WrappedReportItemExecutor.execute(WrappedRepor tItemExecutor.java:46) at org.eclipse.birt.report.engine.internal.executor.e mitter.ReportItemEmitterExecutor.execute(ReportIte mEmitterExecutor.java:46) at org.eclipse.birt.report.engine.internal.executor.d up.SuppressDuplicateItemExecutor.execute(SuppressD uplicateItemExecutor.java:43) at org.eclipse.birt.report.engine.layout.html.HTMLBlo ckStackingLM.layoutNodes(HTMLBlockStackingLM.java: 65) at org.eclipse.birt.report.engine.layout.html.HTMLSta ckingLM.layoutChildren(HTMLStackingLM.java:26) at org.eclipse.birt.report.engine.layout.html.HTMLAbs tractLM.layout(HTMLAbstractLM.java:140) at org.eclipse.birt.report.engine.layout.html.HTMLInl ineStackingLM.resumeLayout(HTMLInlineStackingLM.ja va:111) at org.eclipse.birt.report.engine.layout.html.HTMLInl ineStackingLM.layoutNodes(HTMLInlineStackingLM.jav a:160) at org.eclipse.birt.report.engine.layout.html.HTMLSta ckingLM.layoutChildren(HTMLStackingLM.java:26) at org.eclipse.birt.report.engine.layout.html.HTMLAbs tractLM.layout(HTMLAbstractLM.java:140) at org.eclipse.birt.report.engine.layout.html.HTMLBlo ckStackingLM.layoutNodes(HTMLBlockStackingLM.java: 70) at org.eclipse.birt.report.engine.layout.html.HTMLSta ckingLM.layoutChildren(HTMLStackingLM.java:26) at org.eclipse.birt.report.engine.layout.html.HTMLRep eatHeaderLM.layoutChildren(HTMLRepeatHeaderLM.java :46) at org.eclipse.birt.report.engine.layout.html.HTMLAbs tractLM.layout(HTMLAbstractLM.java:140) at org.eclipse.birt.report.engine.layout.html.HTMLBlo ckStackingLM.layoutNodes(HTMLBlockStackingLM.java: 70) at org.eclipse.birt.report.engine.layout.html.HTMLPag eLM.layout(HTMLPageLM.java:92) at org.eclipse.birt.report.engine.layout.html.HTMLRep ortLayoutEngine.layout(HTMLReportLayoutEngine.java :100) at org.eclipse.birt.report.engine.presentation.Report DocumentBuilder.build(ReportDocumentBuilder.java:2 58)

      at org.eclipse.birt.report.engine.api.impl.RunTask.doRun()
    2. org.eclipse.birt
      RunTask.run
      1. org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:272)
      2. org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:115)
      2 frames
    3. com.actuate.reportapi
      ThreadPool$ControlRunnable.run
      1. com.actuate.reportapi.engine.birt.ReportGenerationTask.runTask(ReportGenerationTask.java:1094)
      2. com.actuate.reportapi.engine.birt.ReportGenerationTask.generateReport(ReportGenerationTask.java:206)
      3. com.actuate.reportapi.engine.ReportGenerationTaskBase.doTask(ReportGenerationTaskBase.java:157)
      4. com.actuate.reportapi.engine.Task.execute(Task.java:318)
      5. com.actuate.reportapi.enginemanager.ThreadPool$ControlRunnable.run(ThreadPool.java:808)
      5 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame