Attempting to Delete an Order Release with Child Data "ORS_STATUS_HISTORY_SU" Results in Error: "Cannot delete the SHIP_UNIT record. A ORS_STATUS_HISTORY_SU record references it in its [SHIP_UNIT_GID] column." (Doc ID 2125134.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Transportation Management - Version 6.0 to 6.4.2 [Release 6 to 6.4]
Information in this document applies to any platform.

Symptoms

An Order Release is created that includes data in the Child Table: ORS_STATUS_HISTORY_SU. When the Order Release is attempted to be deleted, the following error occurs as this child data is not being removed first:

Cannot delete the SHIP_UNIT record. A ORS_STATUS_HISTORY_SU record references it in its [SHIP_UNIT_GID] column.
  java.sql.BatchUpdateException: ORA-02292: integrity constraint (GLOGOWNER.FK_OSHS_SHIP_UNIT_GID) violated - child record found

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