Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

unique constraint (RULES.PR_DATA _PRODUCTS_PK) violated error



System throws unique constraint (RULES.PR_DATA _PRODUCTS_PK) violated error while re-installing the existing hotfix with updated version.

Error Messages

[java] Exception caught processing DL file: Could not save rollback information for an installed hotfix: ORA-00001: unique constraint (RULES.PR_DATA _PRODUCTS_PK) violated

Steps to Reproduce

Apply the old version of HFix-27918 followed by its updated version.

Root Cause

pyLastReservedID is not updated properly while installing the hotfix.


Perform the following local-change:
  1. Take the backup of the table pc_data_uniqueid;
  2. Check pyLastReservedID for the table for entry HOTFIXORDER- by running the following query: select pyLastReservedID from dbo.pc_data_uniqueid where pxInsName='!HOTFIXORDER-'
  3. Note the pyLastReservedID.
  4. Take a note of highest hotfix order number from dbo.pr_data_products table by running the following query: select pyUniqueID from dbo.pr_data_products;
  5. For example, if it is HOTFIXORDER-8, update the table with pc_data_uniqueid as given below, and try installing the DL:
UPDATE dbo.pc_data_uniqueid
SET pyLastReservedID='10' // (increase the no. by 2)

Published January 12, 2017 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us