Hi there! I'm using the Calendar Widget. I can make an appointment, but when I click on this appointment in the agenda, the appointment doesn't open. Instead I get this error: It says Entity ID should not be zero. Has somebody any idea how to solve this? Kind regards, Alies Complete message: An error has occurred while handling the request. [User 'Vaccinatie Team' with session id 'dd0c7643-XXXX-XXXX-XXXX-XXXXXXXX3506' and roles 'VaccinatieTeam'] -------- com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"changes":"Map(Main.Afspraak_Aanvraag -> 0)","type":"ChangeAction"}', all database changes executed by this action were rolled back at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"changes":"Map(Main.Afspraak_Aanvraag -> 0)","type":"ChangeAction"}', all database changes executed by this action were rolled back at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"changes":"Map(Main.Afspraak_Aanvraag -> 0)","type":"ChangeAction"}', all database changes executed by this action were rolled back at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:151) Caused by: java.lang.IllegalArgumentException: Entity id should be not zero at com.mendix.basis.objectmanagement.SchemeManagerImplBase.getObjectType(SchemeManagerImplBase.java:391) at com.mendix.basis.objectmanagement.MendixIdentifier.getObjectType(MendixIdentifier.java:86) at com.mendix.basis.objectmanagement.member.MendixObjectReferenceImpl.setValue(MendixObjectReferenceImpl.scala:36) at com.mendix.basis.objectmanagement.member.MendixObjectReferenceImpl.setValue(MendixObjectReferenceImpl.scala:15) at com.mendix.basis.objectmanagement.MendixObjectMemberImpl.parseValueFromString(MendixObjectMemberImpl.java:258) at com.mendix.basis.action.user.Changer.setMemberValue(Changer.scala:88) at com.mendix.basis.action.user.Changer.setMemberValue$(Changer.scala:77) at com.mendix.basis.action.user.ChangeAction.setMemberValue(ChangeAction.scala:9) at com.mendix.basis.action.user.Changer.changeMember(Changer.scala:60) at com.mendix.basis.action.user.Changer.$anonfun$changeMembers$5(Changer.scala:34) at com.mendix.basis.action.user.Changer.$anonfun$changeMembers$5$adapted(Changer.scala:34) at scala.collection.immutable.List.foreach(List.scala:392) at com.mendix.basis.action.user.Changer.changeMembers(Changer.scala:34) at com.mendix.basis.action.user.Changer.changeMembers$(Changer.scala:28) at com.mendix.basis.action.user.ChangeAction.changeMembers(ChangeAction.scala:9) at com.mendix.basis.action.user.Changer.changeMembers(Changer.scala:26) at com.mendix.basis.action.user.Changer.changeMembers$(Changer.scala:25) at com.mendix.basis.action.user.ChangeAction.changeMembers(ChangeAction.scala:9) at com.mendix.basis.action.user.ChangeAction.executeAction(ChangeAction.scala:17) at com.mendix.basis.action.user.ChangeAction.executeAction(ChangeAction.scala:9) at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152) at com.mendix.basis.component.InternalCore.change(InternalCore.scala:192) at com.mendix.webui.requesthandling.helpers.StateHandling.$anonfun$addChangesToState$6(StateHandling.scala:132) at scala.runtime.java8.JFunction0$mcZ$sp.apply(JFunction0$mcZ$sp.java:23) at scala.util.Try$.apply(Try.scala:213) at com.mendix.webui.requesthandling.helpers.StateHandling.$anonfun$addChangesToState$2(StateHandling.scala:132) at com.mendix.webui.requesthandling.helpers.StateHandling.$anonfun$addChangesToState$2$adapted(StateHandling.scala:118) at scala.collection.immutable.List.foreach(List.scala:392) at com.mendix.webui.requesthandling.helpers.StateHandling.addChangesToState(StateHandling.scala:118) at com.mendix.webui.requesthandling.helpers.StateHandling.initializeState(StateHandling.scala:59) at com.mendix.webui.requesthandling.helpers.StateHandling.withState(StateHandling.scala:34) at com.mendix.webui.requesthandling.helpers.StateHandling.withState$(StateHandling.scala:32) at com.mendix.webui.requesthandling.ClientRequestHandler.withState(ClientRequestHandler.scala:28) at com.mendix.webui.requesthandling.helpers.StateHandling.withState(StateHandling.scala:29) at com.mendix.webui.requesthandling.helpers.StateHandling.withState$(StateHandling.scala:22) at com.mendix.webui.requesthandling.ClientRequestHandler.withState(ClientRequestHandler.scala:28) at com.mendix.webui.requesthandling.ClientRequestHandler.$anonfun$handleRequest$1(ClientRequestHandler.scala:164) at com.mendix.webui.requesthandling.ClientRequestHandler.$anonfun$handleRequest$1$adapted(ClientRequestHandler.scala:150) at com.mendix.webui.requesthandling.helpers.ContextHandling.$anonfun$inContext$5(ContextHandling.scala:47) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23) at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49) at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25) at com.mendix.webui.requesthandling.helpers.ContextHandling$ClientMonitoredAction.monitor(ContextHandling.scala:59) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:47) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:27) at com.mendix.webui.requesthandling.ClientRequestHandler.inContext(ClientRequestHandler.scala:28) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:24) at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:19) at com.mendix.webui.requesthandling.ClientRequestHandler.inContext(ClientRequestHandler.scala:28) at com.mendix.webui.requesthandling.ClientRequestHandler.handleRequest(ClientRequestHandler.scala:150) at com.mendix.webui.requesthandling.ClientRequestHandler.$anonfun$handleAction$1(ClientRequestHandler.scala:121) at com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest(ProfileHandling.scala:14) at com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest$(ProfileHandling.scala:10) at com.mendix.webui.requesthandling.ClientRequestHandler.profileRequest(ClientRequestHandler.scala:28) at com.mendix.webui.requesthandling.ClientRequestHandler.handleAction(ClientRequestHandler.scala:121) at com.mendix.webui.requesthandling.ClientRequestHandler.processRequest(ClientRequestHandler.scala:81) at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:40) at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:76) at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:73) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:79) at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:945) at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.service(RuntimeHandler.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:867) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:502) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) at java.base/java.lang.Thread.run(Thread.java:834)
asked
Alies Jagersma
2 answers
1
Hello Alies,
You probably have an on click microflow in the calendar widget. Did you try to set a breakpoint in this microflow to see the contents of Afspraak that is being passed as parameter? And what kind of reference is set between Afspraak and Aanvraag?
Regards,
Ronald
answered
Ronald Catersels
0
Hi Ronald,
Thank you for your reply :). There is an on click microflow indeed. But the error happens before that, so the microflow doesn't even get triggered yet. Association between Afspraak and Aanvraag is *-1 (starting from afspraak).