SIM.PROMOTION_PRICE_CHANGE failed with ORA-00001: unique constraint error
Hello,
The job SIM.PROMOTION_PRICE_CHANGE aborted in PRD nightly batch with the below error.
Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (SIM132.PK_RK_BPP_PRM_DETAIL) violated
ORA-06512: at "SIM132.BULK_PRICE_PROCESSING", line 4068
The data generated in the PUB file(PRMPC_20140827034432.pub) has got duplicate records.
We could see duplicates for almost all the item/loc combinations from this file. In order to process this file, we need to remove the duplicate records which is really complicate process.
We need to understand why duplicates are included in the pricing file. Due to this issue the price changes are not update to the SIM, which is causing price mismatch between RPM and SIM.