Defect HC-4975

Duplicate Key Exception when importing Items/Products using Dataload

Software

Customer case Applies to Corrected in
CS0137573 V9.0.1.0 9.0.1.14

Observed behavior

A DuplicateKeyException can be thrown when "AddInventoryPolicyForCatalogEntryCmdImpl" is invoked for any existing ItemBean as is done with Dataload.

Expected behavior

The duplicate key situation in the ITEMSPC table should handled within the code, and not surfaced.

Resolution

The Exception handling logic was fixed to replace the EJB exception model and use the JPA PersistenceException model instead.