Restoring Cloud backup getting ERROR

1
Hi , I keep getting this error when restoring cloud backup DB locally. can you suggest me how to resolve this error?     com.mendix.m2ee.api.AdminException: Starting Mendix Runtime failed.               at com.mendix.core.impl.MxRuntimeImpl.fireZeeMissile(MxRuntimeImpl.java:486)   Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.Language","amount":-1,"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back               at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:176)   Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.Language","amount":-1,"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back               at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:40)   Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.Language","amount":-1,"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back               at com.mendix.core.actionmanagement.CoreAction.processErrorState(CoreAction.java:303)   Caused by: java.lang.IllegalArgumentException: The current id belongs to another object type than the given type to set. Type of this MendixObject is 'System.Language', the given id is of type 'Webservice.RemittanceInstructions_2'               at com.mendix.core.objectmanagement.MendixObjectImpl.setId(MendixObjectImpl.java:323)               at com.mendix.core.objectmanagement.SchemeManagerImpl.getInstance(SchemeManagerImpl.java:936)               at com.mendix.core.action.user.RetrieveXPathAction.executeAction(RetrieveXPathAction.java:53)               at com.mendix.core.action.user.RetrieveXPathAction.executeAction(RetrieveXPathAction.java:17)               at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)               at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)               at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)               at com.mendix.core.actionmanagement.CustomActionMonitorImpl$$anonfun$run$1.apply(CustomMonitoredAction.scala:14)               at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:161)               at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)               at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:163)               at scala.util.Try$.apply(Try.scala:192)               at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:157)               at akka.actor.Actor$class.aroundReceive(Actor.scala:502)               at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:153)               at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)               at akka.actor.ActorCell.invoke(ActorCell.scala:495)               at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)               at akka.dispatch.Mailbox.run(Mailbox.scala:224)               at akka.dispatch.Mailbox.exec(Mailbox.scala:234)               at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)               at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)               at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)               at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)       Thanks, - Sk
asked
1 answers
2

Did you restore the db in a clean environment or was the database that you are restoring to not empty.

Have a look at the resttore options in pgAdmin:

Restore dialog queries section

and set clean before restore to true. for more details see: https://www.pgadmin.org/docs/pgadmin4/5.0/restore_dialog.html

answered