"Cannot delete the ORDER_RELEASE_LINE record" Error When Updating an Order Release Via Integration Which is Attached to a Shipment (Doc ID 881669.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

Oracle Transportation Management - Version: 6.0 to 6.0.3 - Release: 6 to 6
Information in this document applies to any platform.
***Checked for relevance on 10-Jun-2011***

Symptoms

-- Problem Statement:


When updating an order via integration which is attached to a shipment and removing one of the line items, the agent/order transmission fails due to the following error:

IMessageText = CAUGHT THE FOLLOWING EXCEPTION WHILE PROCESSING TRANSACTION:
glog.util.exception.RemoveExceptionWrapper delete from order_release_line where
order_release_line_gid = ?; http://DOMAIN.SHIPMENT Cannot delete the ORDER_RELEASE_LINE record. A S_SHIP_UNIT_LINE record references it in its OR_LINE_GID column. java.sql.SQLException: ORA-02292: integrity constraint (GLOGOWNER.FK_SSUL_ORL_GID) violated - child record found
java.sql.SQLException: ORA-02292: integrity constraint (GLOGOWNER.FK_SSUL_ORL_GID) violated - child record found at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) at
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216) atoracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168) at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3316) at
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3400) at
weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:128) at
glog.util.jdbc.SqlUpdate.resetArguments(SqlUpdate.java:239) at
glog.util.jdbc.SqlUpdate.resetArguments(SqlUpdate.java:162) at
glog.util.jdbc.SqlUpdate.execute(SqlUpdate.java:91) at
glog.util.remote.BeanManagedEntityBean.executeUpdate(BeanManagedEntityBean.java:793) at
glog.util.remote.BeanManagedEntityBean$4.execute(BeanManagedEntityBean.java:301) at
glog.util.remote.BeanManagedEntityBean.dbModify(BeanManagedEntityBean.java:1066) at
glog.util.remote.BeanManagedEntityBean.doRemove(BeanManagedEntityBean.java:298) at
glog.util.remote.BaseEntityBean$4.doIt(BaseEntityBean.java:542) at
glog.util.remote.BaseEntityBean.ejb(BaseEntityBean.java:798) at
glog.util.remote.BaseEntityBean.ejbRemove(BaseEntityBean.java:538) at
glog.util.remote.BeanManagedEntityBean.ejbRemove(BeanManagedEntityBean.java:575) at
glog.ejb.order.ejb_OrderReleaseLine_pot7f8_Impl.ejbRemove(ejb_OrderReleaseLine_pot7f8_Impl.java:133)
at weblogic.ejb.container.manager.ExclusiveEntityManager.remove(ExclusiveEntityManager.java:988)
at weblogic.ejb.container.internal.EntityEJBObject.remove(EntityEJBObject.java:133) at
glog.ejb.order.ejb_OrderReleaseLine_pot7f8_EOImpl.remove(ejb_OrderReleaseLine_pot7f8_EOImpl.java:11711) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
java.lang.reflect.Method.invoke(Method.java:585) at
glog.util.remote.BeanBaseInvoker.invoke(BeanBaseInvoker.java:24) at
glog.util.remote.EntityBeanInvoker.remove(EntityBeanInvoker.java:60) at
glog.util.persistence.CascadeDelete.doRemoval(CascadeDelete.java:173) at
glog.util.persistence.CascadeDelete.persist(CascadeDelete.java:77) at
glog.util.persistence.InsertUpdate.doPersist(InsertUpdate.java:101) at
glog.util.persistence.InsertUpdate.persist(InsertUpdate.java:72) at
glog.util.persistence.PersistenceManager.execute(PersistenceManager.java:122) at
glog.server.compareengine.TopicPublisher.persist(TopicPublisher.java:161) at
glog.server.compareengine.TopicPublisher.publish(TopicPublisher.java:64) at
glog.server.compareengine.CompareEngine.compare(CompareEngine.java:110) at
glog.util.genericcontainer.GenericContainerUtilSessionBean.compare(GenericContainerUtilSessionBean.java:141) at
glog.util.genericcontainer.GenericContainerUtilSessionBean.compareAndStore(GenericContainerUtilSessionBean.java:90) at
glog.util.genericcontainer.GenericContainerUtilSessionServerSideEJBWrapper.compareAndStore(GenericContainerUtilSessionServerSideEJBWrapper.java:194) at
glog.util.genericcontainer.GenericContainerUtilSessionServerSideEJBWrapper_6hrtm7_EOImpl.compareAndStore(GenericContainerUtilSessionServerSideEJBWrapper_6hrtm7_EOImpl.java:213) at
glog.integration.xmlbasewrapper.XmlBaseWrapper.persist(XmlBaseWrapper.java:252) at
glog.integration.xmlbasewrapper.XmlBaseWrapper.persistViaContainer(XmlBaseWrapper.java:333) at
glog.integration.application.release.ReleaseInterface.persistIndivXML(ReleaseInterface.java:150)
at glog.integration.application.release.ReleaseInterface.persistXML(ReleaseInterface.java:137) at
glog.integration.application.BaseInterface.persistXMLBase(BaseInterface.java:185) at
glog.integration.application.TransactionProcessor.processTransaction(TransactionProcessor.java:217)
at
glog.integration.application.TransactionProcessor.processTransaction(TransactionProcessor.java:356)
at glog.server.workflow.transproc.TransProc.execute(TransProc.java:106) at
glog.server.workflow.SimpleWorkflow.execute(SimpleWorkflow.java:23) at
glog.server.workflow.WorkflowSessionBean.execute(WorkflowSessionBean.java:64) at
glog.server.workflow.WorkflowSessionNonTransServerSideEJBWrapper_t6tuwu_EOImpl.execute(WorkflowSessionNonTransServerSideEJBWrapper_t6tuwu_EOImpl.java:352) at
glog.server.workflow.WorkflowManager.execute(WorkflowManager.java:347) at
glog.server.workflow.Trigger.trigger(Trigger.java:122) at
glog.util.event.MemoryEventQueueRunnable.processEvent(MemoryEventQueueRunnable.java:141) at
glog.util.event.MemoryEventQueueRunnable.run(MemoryEventQueueRunnable.java:96) at
glog.util.event.EventThread.run(EventThread.java:82) at java.lang.Thread.run(Thread.java:595)

-- Steps To Reproduce:
1. Send in a new order via integration

2. Build a shipment on that order

3. Send in an update via integration for that same order via integration

4. Note the error

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms