After migrating my project from 5.1 to 5.2, exporting data from a datagrid to excel/csv fails with the default buttons. Exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at com.mendix.jy.a(SourceFile:115) at com.mendix.jy.a(SourceFile:153) at com.mendix.jy.a(SourceFile:73) at com.mendix.jx.a(SourceFile:303) at com.mendix.jx.a(SourceFile:254) at com.mendix.jx.a(SourceFile:112) at com.mendix.jx.a(SourceFile:60) at com.mendix.jx$a.a(SourceFile:401) at com.mendix.jx$a.execute(SourceFile:378) at com.mendix.core.actionmanagement.AsyncAction.execute(SourceFile:27) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:271) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) java.util.concurrent.ExecutionException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{}', all database changes executed by this action were rolled back at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at com.mendix.jH.a(SourceFile:56) at com.mendix.jH.a(SourceFile:30) at com.mendix.pI.a(SourceFile:296) at com.mendix.pI$a.apply$mcI$sp(SourceFile:195) at com.mendix.pI$i.a(SourceFile:211) at com.mendix.pI$i.execute(SourceFile:208) at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(SourceFile:132) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498) at akka.actor.ActorCell.invoke(ActorCell.scala:456) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237) at akka.dispatch.Mailbox.run(Mailbox.scala:219) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{}', all database changes executed by this action were rolled back at com.mendix.core.actionmanagement.CoreAction.processErrorState(SourceFile:322) Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at com.mendix.jy.a(SourceFile:115) at com.mendix.jy.a(SourceFile:153) at com.mendix.jy.a(SourceFile:73) at com.mendix.jx.a(SourceFile:303) at com.mendix.jx.a(SourceFile:254) at com.mendix.jx.a(SourceFile:112) at com.mendix.jx.a(SourceFile:60) at com.mendix.jx$a.a(SourceFile:401) at com.mendix.jx$a.execute(SourceFile:378) at com.mendix.core.actionmanagement.AsyncAction.execute(SourceFile:27) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:271) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Edit after finding cause: After removing some calculated attributes the exception vanished.
asked
Samet Kaya
1 answers
0
Samet,
This issue seems to be resolved in 5.4.1 at least that's what I tested this with.
So you could try upgrading to this version?