System owner related error in listview with microflow data source
1
This error occurs in Mx 7.21.0, which I cannot select from the Modeler version dropdown. We have a page that displays several tabs with lists/grid and all that jazz. One particular list however, fed by a datasource microflow generates a very annoying and hard to trace error. The error complains that System.owner is not a valid association. However, this association is not used in the given context. Not in security/retrieve actions nor visibility constraints. Below the stacktrace. I could find two other posts about this issue which didn't give a solution yet and I begin to think that this is a Mendix bug. com.mendix.webui.WebUIException: Exception while retrieving data for list widget 'XYZ.XYZDetails_Step__6.listView4' on page 'XYZ.XYZ_Edit' at com.mendix.webui.actions.client.RetrieveByMicroflowAction.$anonfun$apply$2(RetrieveByMicroflowAction.scala:60) Caused by: java.lang.IllegalArgumentException: requirement failed: path 'System.owner' does not refer to a valid association at scala.Predef$.require(Predef.scala:277) at com.mendix.basis.action.user.RetrieveByPathAction.<init>(RetrieveByPathAction.scala:21) at com.mendix.basis.action.ActionFactory.createRetrieveByPathAction(ActionFactory.scala:322) at com.mendix.basis.component.InternalCoreBase.retrieveByPath(InternalCoreBase.java:955) at com.mendix.webui.schemas.FullObjectSchema.$anonfun$apply$1(FullObjectSchema.scala:31) at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:240) at scala.collection.Iterator.foreach(Iterator.scala:937) at scala.collection.Iterator.foreach$(Iterator.scala:937) at scala.collection.AbstractIterator.foreach(Iterator.scala:1425) at scala.collection.IterableLike.foreach(IterableLike.scala:70) at scala.collection.IterableLike.foreach$(IterableLike.scala:69) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at scala.collection.TraversableLike.flatMap(TraversableLike.scala:240) at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:237) at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104) at com.mendix.webui.schemas.FullObjectSchema.withAssociated$1(FullObjectSchema.scala:30) at com.mendix.webui.schemas.FullObjectSchema.$anonfun$apply$2(FullObjectSchema.scala:32) at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:240) at scala.collection.Iterator.foreach(Iterator.scala:937) at scala.collection.Iterator.foreach$(Iterator.scala:937) at scala.collection.AbstractIterator.foreach(Iterator.scala:1425) at scala.collection.IterableLike.foreach(IterableLike.scala:70) at scala.collection.IterableLike.foreach$(IterableLike.scala:69) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at scala.collection.TraversableLike.flatMap(TraversableLike.scala:240) at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:237) at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104) at com.mendix.webui.schemas.FullObjectSchema.$anonfun$apply$1(FullObjectSchema.scala:31) at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:240) at scala.collection.Iterator.foreach(Iterator.scala:937) at scala.collection.Iterator.foreach$(Iterator.scala:937) at scala.collection.AbstractIterator.foreach(Iterator.scala:1425) at scala.collection.IterableLike.foreach(IterableLike.scala:70) at scala.collection.IterableLike.foreach$(IterableLike.scala:69) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at scala.collection.TraversableLike.flatMap(TraversableLike.scala:240) at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:237) at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104) at com.mendix.webui.schemas.FullObjectSchema.withAssociated$1(FullObjectSchema.scala:30) at com.mendix.webui.schemas.FullObjectSchema.apply(FullObjectSchema.scala:36) at com.mendix.webui.actions.client.RetrieveByMicroflowAction.$anonfun$apply$9
asked
Jos Verbeek
1 answers
0
Found it. A rogue, unused template parameter in a snippet referring to an unreachable system.owner attribute.