Could not find child entity

0
I connected my application to mysql database and the connections were all made and the application was working fine. From yesterday I am facing this error, when I’m trying to deploy my application on cloud. Can anyone help me understand what I have done wrong.    An error occurred while initializing the Runtime: Could not find child entity with id 1a4fed71-85bd-4742-b7a3-e8b4c9737f04 for association DatabaseReplication.AdditionalJoins_TableMapping -------- com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: Could not find child entity with id 1a4fed71-85bd-4742-b7a3-e8b4c9737f04 for association DatabaseReplication.AdditionalJoins_TableMapping     at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:341) Caused by: com.mendix.connectionbus.ConnectionBusRuntimeException: Could not find child entity with id 1a4fed71-85bd-4742-b7a3-e8b4c9737f04 for association DatabaseReplication.AdditionalJoins_TableMapping     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader.handleAssociationResult$1(DatabaseMappingReader.scala:263)     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader.$anonfun$fillAssociations$5(DatabaseMappingReader.scala:301)     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader.$anonfun$fillAssociations$5$adapted(DatabaseMappingReader.scala:301)     at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563)     at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561)     at com.mendix.connectionbus.util.ResultSetIterator.foreach(ResultSetIterator.scala:5)     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader.$anonfun$fillAssociations$4(DatabaseMappingReader.scala:301)     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader.$anonfun$fillAssociations$4$adapted(DatabaseMappingReader.scala:301)     at scala.util.Using$.resource(Using.scala:261)     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader.fillAssociations(DatabaseMappingReader.scala:301)     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader.fillModel(DatabaseMappingReader.scala:64)     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader$.$anonfun$getDatabaseMappingModel$4(DatabaseMappingReader.scala:39)     at scala.util.Using$.resource(Using.scala:261)     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader$.$anonfun$getDatabaseMappingModel$3(DatabaseMappingReader.scala:39)     at scala.Option.map(Option.scala:242)     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader$.getDatabaseMappingModel(DatabaseMappingReader.scala:37)     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader$.$anonfun$getDatabaseMappingModel$1(DatabaseMappingReader.scala:24)     at scala.util.Using$.resource(Using.scala:261)     at com.mendix.connectionbus.modelsynchronization.analysis.mappingreaders.DatabaseMappingReader$.getDatabaseMappingModel(DatabaseMappingReader.scala:24)     at com.mendix.connectionbus.modelsynchronization.analysis.DatabaseAnalyzerBase.analyzeExistingDatabase(DatabaseAnalyzerBase.scala:93)     at com.mendix.connectionbus.modelsynchronization.analysis.DatabaseAnalyzerBase.$anonfun$analyzeAndFillMigrationCommands$1(DatabaseAnalyzerBase.scala:47)     at scala.Option.map(Option.scala:242)     at com.mendix.connectionbus.modelsynchronization.analysis.DatabaseAnalyzerBase.analyzeAndFillMigrationCommands(DatabaseAnalyzerBase.scala:47)     at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.analyzeAndFillMigrationCommands(ModelSynchronizationUpdater.java:153)     at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.analyzeAndRender(ModelSynchronizationUpdater.java:103)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeMappingModel(SynchronizationManager.scala:243)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeModel(SynchronizationManager.scala:232)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeCurrentDatabase(SynchronizationManager.scala:148)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.$anonfun$stateMachine$3(SynchronizationManager.scala:81)     at com.mendix.connectionbus.modelsynchronization.SimpleStateMachine$SimpleStateMachine.effect(SynchronizationManager.scala:55)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeCopying(SynchronizationManager.scala:189)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.$anonfun$stateMachine$2(SynchronizationManager.scala:80)     at com.mendix.connectionbus.modelsynchronization.SimpleStateMachine$SimpleStateMachine.effect(SynchronizationManager.scala:55)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeSourceStructureForCopy(SynchronizationManager.scala:157)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.$anonfun$stateMachine$1(SynchronizationManager.scala:79)     at com.mendix.connectionbus.modelsynchronization.SimpleStateMachine$SimpleStateMachine.effect(SynchronizationManager.scala:55)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyze(SynchronizationManager.scala:138)     at com.mendix.connectionbus.ConnectionBusImpl.collectDatabaseSynchronizationInformation(ConnectionBusImpl.java:341)     at com.mendix.basis.impl.MxRuntimeImplBase.initializeConnectionBusAnyway(MxRuntimeImplBase.java:427)     at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:318)     at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.java:48)     at com.mendix.m2ee.appcontainer.actions.StartAction.execute(StartAction.java:30)     at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandler.handle(HttpAdminHandler.java:134)     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)     at org.eclipse.jetty.server.Server.handle(Server.java:516)     at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)     at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)     at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)     at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)     at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)     at java.base/java.lang.Thread.run(Thread.java:834) Thanks in Advance 
asked
2 answers
0

Hello,

I think you might delete the associated child entity directly. If possible can you create a new DB and try to run the app again.

It will create new tables based on your domain model.

Hope it helps.

answered
0

We have the same error on another association after updating some dependency modules.

Did rebuilding DB schema resolve your issue?

answered