+1 vote
434 views

Hi,

Running a simple system, exporting to Excel yields an error:

20:11:51ERRORorg.openlca.io.xls.results.system.ResultExportError exporting results
java.lang.ArrayIndexOutOfBoundsException: Index -13020 out of bounds for length 51437
    at gnu.trove.map.hash.TIntObjectHashMap.rehash(TIntObjectHashMap.java:165)
    at gnu.trove.impl.hash.THash.postInsertHook(THash.java:388)
    at gnu.trove.map.hash.TIntObjectHashMap.doPut(TIntObjectHashMap.java:248)
    at gnu.trove.map.hash.TIntObjectHashMap.put(TIntObjectHashMap.java:222)
    at org.openlca.core.results.providers.FactorizationSolver.totalFlowsOfOne(FactorizationSolver.java:215)
    at org.openlca.core.results.providers.ResultProvider.totalFlowOfOne(ResultProvider.java:331)
    at org.openlca.core.results.providers.ResultProvider.totalFlowOf(ResultProvider.java:360)
    at org.openlca.core.results.LcaResult.lambda$getTotalFlowOf$14(LcaResult.java:231)
    at org.openlca.core.results.LcaResult.enviViewOf(LcaResult.java:537)
    at org.openlca.core.results.LcaResult.getTotalFlowOf(LcaResult.java:230)
    at org.openlca.io.xls.results.system.ProcessFlowUpstreamSheet.getValue(ProcessFlowUpstreamSheet.java:38)
    at org.openlca.io.xls.results.system.ProcessFlowUpstreamSheet.getValue(ProcessFlowUpstreamSheet.java:11)
    at org.openlca.io.xls.results.system.ContributionSheet.data(ContributionSheet.java:45)
    at org.openlca.io.xls.results.system.ProcessFlowUpstreamSheet.write(ProcessFlowUpstreamSheet.java:33)
    at org.openlca.io.xls.results.system.ProcessFlowUpstreamSheet.write(ProcessFlowUpstreamSheet.java:19)
    at org.openlca.io.xls.results.system.ResultExport.writeUpstreamSheets(ResultExport.java:98)
    at org.openlca.io.xls.results.system.ResultExport.run(ResultExport.java:77)
    at org.openlca.app.WrappedJob.run(WrappedJob.java:30)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

The Out of bounds Exceptions seems to be the culprit, but google didn't help me solve the issue.

Similarily I'd like to just export this to a .csv or something without the bounds of Excel.

Do some of you know a workaround?

in openLCA by (790 points)
by (790 points)
Hi msrocka, how can I share my database with you?

Please log in or register to answer this question.

...