Инструмент бизнес-аналитики от компании Stimulsoft. Программное обеспечение для создания дашбордов и отчетов. Инструменты отчетности для любой платформы.
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.
at java.math.BigDecimal.divide(BigDecimal.java:1616)
at com.stimulsoft.report.engine.parser.StiParser.op_Div(StiParser.java:1240)
at com.stimulsoft.report.engine.parser.StiParser.executeAsm(StiParser.java:1592)
at com.stimulsoft.report.engine.parser.StiParser.ParseTextValue(StiParser.java:2229)
at com.stimulsoft.report.components.simplecomponents.StiSimpleText.InvokeGetValue(StiSimpleText.java:1392)
at com.stimulsoft.report.engine.engineV2.builders.StiSimpleTextV2Builder.InternalRender(StiSimpleTextV2Builder.java:103)
at com.stimulsoft.report.components.StiComponent.InternalRender(StiComponent.java:4064)
at com.stimulsoft.report.engine.engineV2.builders.StiComponentV2Builder.Render(StiComponentV2Builder.java:120)
at com.stimulsoft.report.components.StiComponent.render(StiComponent.java:4069)
at com.stimulsoft.report.engine.engineV2.builders.StiContainerV2Builder.InternalRender(StiContainerV2Builder.java:164)
at com.stimulsoft.report.engine.engineV2.builders.StiBandV2Builder.InternalRender(StiBandV2Builder.java:105)
at com.stimulsoft.report.components.StiComponent.InternalRender(StiComponent.java:4064)
at com.stimulsoft.report.engine.engineV2.StiEngine.InternalRenderBand(StiEngine.java:2235)
at com.stimulsoft.report.engine.engineV2.StiEngine.RenderBand(StiEngine.java:2099)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderBand(StiDataBandV2Builder.java:1426)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderBand(StiDataBandV2Builder.java:1402)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderGroupFooters(StiDataBandV2Builder.java:814)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderMaster(StiDataBandV2Builder.java:1663)
at com.stimulsoft.report.components.bands.StiDataBand.renderMaster(StiDataBand.java:1287)
at com.stimulsoft.report.engine.engineV2.StiPageHelper.RenderPage(StiPageHelper.java:405)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.RenderReport(StiRenderProviderV2.java:865)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.Render(StiRenderProviderV2.java:247)
at com.stimulsoft.report.engine.engineV2.builders.StiReportV2Builder.RenderSingleReport(StiReportV2Builder.java:64)
at com.stimulsoft.report.StiReport.RenderReport(StiReport.java:1976)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1876)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1807)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1797)
IIF() -- это фуекция, а для любой функции перед её выполнением производится вычисление ВСЕХ аргументов. Поэтому вы и получаете ошибку деления на нуль.
Попробуйте использовать тернарный оператор.
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.
at java.math.BigDecimal.divide(BigDecimal.java:1616)
at com.stimulsoft.report.engine.parser.StiParser.op_Div(StiParser.java:1240)
at com.stimulsoft.report.engine.parser.StiParser.executeAsm(StiParser.java:1592)
at com.stimulsoft.report.engine.parser.StiParser.ParseTextValue(StiParser.java:2229)
at com.stimulsoft.report.components.simplecomponents.StiSimpleText.InvokeGetValue(StiSimpleText.java:1392)
at com.stimulsoft.report.engine.engineV2.builders.StiSimpleTextV2Builder.InternalRender(StiSimpleTextV2Builder.java:103)
at com.stimulsoft.report.components.StiComponent.InternalRender(StiComponent.java:4064)
at com.stimulsoft.report.engine.engineV2.builders.StiComponentV2Builder.Render(StiComponentV2Builder.java:120)
at com.stimulsoft.report.components.StiComponent.render(StiComponent.java:4069)
at com.stimulsoft.report.engine.engineV2.builders.StiContainerV2Builder.InternalRender(StiContainerV2Builder.java:164)
at com.stimulsoft.report.engine.engineV2.builders.StiBandV2Builder.InternalRender(StiBandV2Builder.java:105)
at com.stimulsoft.report.components.StiComponent.InternalRender(StiComponent.java:4064)
at com.stimulsoft.report.engine.engineV2.StiEngine.InternalRenderBand(StiEngine.java:2235)
at com.stimulsoft.report.engine.engineV2.StiEngine.RenderBand(StiEngine.java:2099)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderBand(StiDataBandV2Builder.java:1426)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderBand(StiDataBandV2Builder.java:1402)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderGroupFooters(StiDataBandV2Builder.java:814)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderMaster(StiDataBandV2Builder.java:1663)
at com.stimulsoft.report.components.bands.StiDataBand.renderMaster(StiDataBand.java:1287)
at com.stimulsoft.report.engine.engineV2.StiPageHelper.RenderPage(StiPageHelper.java:405)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.RenderReport(StiRenderProviderV2.java:865)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.Render(StiRenderProviderV2.java:247)
at com.stimulsoft.report.engine.engineV2.builders.StiReportV2Builder.RenderSingleReport(StiReportV2Builder.java:64)
at com.stimulsoft.report.StiReport.RenderReport(StiReport.java:1976)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1876)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1807)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1797)
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.
at java.math.BigDecimal.divide(BigDecimal.java:1616)
at com.stimulsoft.report.engine.parser.StiParser.op_Div(StiParser.java:1240)
at com.stimulsoft.report.engine.parser.StiParser.executeAsm(StiParser.java:1592)
at com.stimulsoft.report.engine.parser.StiParser.ParseTextValue(StiParser.java:2229)
at com.stimulsoft.report.components.simplecomponents.StiSimpleText.InvokeGetValue(StiSimpleText.java:1392)
at com.stimulsoft.report.engine.engineV2.builders.StiSimpleTextV2Builder.InternalRender(StiSimpleTextV2Builder.java:103)
at com.stimulsoft.report.components.StiComponent.InternalRender(StiComponent.java:4064)
at com.stimulsoft.report.engine.engineV2.builders.StiComponentV2Builder.Render(StiComponentV2Builder.java:120)
at com.stimulsoft.report.components.StiComponent.render(StiComponent.java:4069)
at com.stimulsoft.report.engine.engineV2.builders.StiContainerV2Builder.InternalRender(StiContainerV2Builder.java:164)
at com.stimulsoft.report.engine.engineV2.builders.StiBandV2Builder.InternalRender(StiBandV2Builder.java:105)
at com.stimulsoft.report.components.StiComponent.InternalRender(StiComponent.java:4064)
at com.stimulsoft.report.engine.engineV2.StiEngine.InternalRenderBand(StiEngine.java:2235)
at com.stimulsoft.report.engine.engineV2.StiEngine.RenderBand(StiEngine.java:2099)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderBand(StiDataBandV2Builder.java:1426)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderBand(StiDataBandV2Builder.java:1402)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderGroupFooters(StiDataBandV2Builder.java:814)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderMaster(StiDataBandV2Builder.java:1663)
at com.stimulsoft.report.components.bands.StiDataBand.renderMaster(StiDataBand.java:1287)
at com.stimulsoft.report.engine.engineV2.StiPageHelper.RenderPage(StiPageHelper.java:405)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.RenderReport(StiRenderProviderV2.java:865)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.Render(StiRenderProviderV2.java:247)
at com.stimulsoft.report.engine.engineV2.builders.StiReportV2Builder.RenderSingleReport(StiReportV2Builder.java:64)
at com.stimulsoft.report.StiReport.RenderReport(StiReport.java:1976)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1876)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1807)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1797)
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.
at java.math.BigDecimal.divide(BigDecimal.java:1616)
at com.stimulsoft.report.engine.parser.StiParser.op_Div(StiParser.java:1240)
at com.stimulsoft.report.engine.parser.StiParser.executeAsm(StiParser.java:1592)
at com.stimulsoft.report.engine.parser.StiParser.ParseTextValue(StiParser.java:2229)
at com.stimulsoft.report.components.simplecomponents.StiSimpleText.InvokeGetValue(StiSimpleText.java:1392)
at com.stimulsoft.report.engine.engineV2.builders.StiSimpleTextV2Builder.InternalRender(StiSimpleTextV2Builder.java:103)
at com.stimulsoft.report.components.StiComponent.InternalRender(StiComponent.java:4064)
at com.stimulsoft.report.engine.engineV2.builders.StiComponentV2Builder.Render(StiComponentV2Builder.java:120)
at com.stimulsoft.report.components.StiComponent.render(StiComponent.java:4069)
at com.stimulsoft.report.engine.engineV2.builders.StiContainerV2Builder.InternalRender(StiContainerV2Builder.java:164)
at com.stimulsoft.report.engine.engineV2.builders.StiBandV2Builder.InternalRender(StiBandV2Builder.java:105)
at com.stimulsoft.report.components.StiComponent.InternalRender(StiComponent.java:4064)
at com.stimulsoft.report.engine.engineV2.StiEngine.InternalRenderBand(StiEngine.java:2235)
at com.stimulsoft.report.engine.engineV2.StiEngine.RenderBand(StiEngine.java:2099)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderBand(StiDataBandV2Builder.java:1426)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderBand(StiDataBandV2Builder.java:1402)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderGroupFooters(StiDataBandV2Builder.java:814)
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderMaster(StiDataBandV2Builder.java:1663)
at com.stimulsoft.report.components.bands.StiDataBand.renderMaster(StiDataBand.java:1287)
at com.stimulsoft.report.engine.engineV2.StiPageHelper.RenderPage(StiPageHelper.java:405)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.RenderReport(StiRenderProviderV2.java:865)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.Render(StiRenderProviderV2.java:247)
at com.stimulsoft.report.engine.engineV2.builders.StiReportV2Builder.RenderSingleReport(StiReportV2Builder.java:64)
at com.stimulsoft.report.StiReport.RenderReport(StiReport.java:1976)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1876)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1807)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1797)