I ran a delete statement and it said zero rows updated. Which was misleading, there were no rows deleted because a trigger on the table had an error. The error needs to be displayed rather than just saying how many rows were deleted. FYI here is an excerpt from the trigger that failed: CREATE OR REPLACE TRIGGER WMS_ADMIN.CREATE_AUDIT_SUP_ITEM_BARCODE AFTER INSERT OR UPDATE OR DELETE ON wms_admin.supplier_item_barcode FOR EACH ROW DECLARE item_barcode_rec wms_admin.item_barcode%ROWTYPE; s_trans_type VARCHAR2 (1) := NULL; BEGIN ... IF (:NEW.last_update_user_id <> 'BARCODE_REFRESH' AND s_trans_type in ('I', 'U')) THEN SELECT * INTO item_barcode_rec FROM wms_admin.item_barcode WHERE barcode_nbr = :NEW.barcode_nbr AND item_group_id = :NEW.item_group_id AND (item_code = :NEW.item_code OR :NEW.item_code is null) ; ... The problem was I was deleting from supplier_item_barcode but the select from item_barcode resulted in a no data found exception.
↧