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

PegaUnit test case for flow that creates child case fails

SA-65673

Summary



PegaUnit test case created for a flow that creates child cases, fails.


Error Messages



On screen:

This is a singleton exception object and the stack trace below does NOT reflect the actual point of failure.  To see the actual trace, set Initialization/UniqueActivityTerminateExceptions = true



PRRuntimeError is displays when the Dynamic System Settings (DSS) Initialization or UniqueActivityTerminateExceptions is set to true.











Tracer Error:

** Violation of PRIMARY KEY constraint 'XX_XX_XXXXX_WORK_PK'. Cannot insert duplicate key in object 'PegaDATA.pc_XX_XXXXX_Work'. The duplicate key value is (XX-XXXXX-WORK ID-48).


Steps to Reproduce



Run a test case for a flow which creates child case.


Root Cause



A defect in Pegasystems’ code or rules.


Resolution



Apply HFix-47344.


 

Published October 13, 2018 - Updated October 8, 2020

Was this useful?

0% 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