When trying to open the previous version of an object modified through the REST API an error is displayed in AWI.
The following POST operation with the overwrite option activated is used:
POST https://my.res.endpoint.com/ae/api/v1/100/objects?overwrite_existing_objects=true
{body}
When subsequently opening the previous version in Version Management in AWI, the following error is displayed in a pop up:
Inconsistency in database: 'OVD' for 'OH' not found. Key: '<OH_Idnr>''
Message box received: 9910 of type E with inserts OVD|OH|1003011' shown, message 'Inconsistency in database: 'OVD' for 'OH' not found. Key: '1003011'''.com.uc4.webui.util.MessageBoxException
com.uc4.webui.util.MessageBoxException.provokeGet(MessageBoxException.java:48)
com.uc4.ecc.backends.impl.dataservice.object.ObjectService.tryOpenInternal(ObjectService.java:922)
com.uc4.ecc.backends.impl.dataservice.object.ObjectService.tryOpen(ObjectService.java:877)
com.uc4.ecc.backends.dataservice.object.IObjectService$pbryglu.tryOpen(Unknown Source)
com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectLoader.load(UC4ObjectLoader.java:115)
com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectPresenter.load(UC4ObjectPresenter.java:954)
com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectPresenter.access$100(UC4ObjectPresenter.java:106)
com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectPresenter$3.loadWithNullAsDefault(UC4ObjectPresenter.java:824)
com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectPresenter$3.loadWithNullAsDefault(UC4ObjectPresenter.java:820)
com.uc4.webui.common.async.NullAsDefaultLoader.load(NullAsDefaultLoader.java:10)
com.uc4.webui.common.async.NullAsDefaultLoader.load(NullAsDefaultLoader.java:6)
com.uc4.ecc.framework.core.async.BaseRequestCoordinator$1$1.call(BaseRequestCoordinator.java:231)
com.uc4.ecc.framework.core.pool.ContextAwareExecutorService$CallableImplementation.call(ContextAwareExecutorService.java:72)
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
java.base/java.lang.Thread.run(Thread.java:834)
This is a bug
Release : 12.3
Component : AUTOMATION ENGINE
Solution:
Update to a fix version listed below or a newer version if available.
Fix version:
Component(s): Automation Engine
Automation.Engine 12.3.7 HF1 - Available
Automation.Engine 12.3.8 - Planned release February 2022
Automation.Engine 21.0.2 - Planned release February 2022