Support Article
Defer commit issue occurs while using Create Case smart shape
SA-90819
Summary
Defer commit issue occurs while using the Create Case smart shape after a Persist case. A temporary case persists during the case processing. A Parallel case type is created using the Create Case smart shape. However, rollback happens instead of commit while saving the actual case and the parallel case is not created.
Error Messages
java.lang.RuntimeException: pub.PRRuntimeException: Encountered database exception when committing operation <insert instance XYZ not only if new>
at(DatabaseImpl.java:2158) ~[prprivate.jar:?]
Caused by: pub.clipboard.WrongModeException: WrongMode pyWorkPage.ABC Page List data.internal.clipboard.ClipboardPropertyImpl.getStringValue()
String
Steps to Reproduce
1. Create a temporary case
2. Persist the temporary case during a case processing
3. Create a parallel case using the Create Case smart shape
Root Cause
An issue in the custom application code or rules. A screen displays to capture the data where a dropdown is configured for one of the fields before a parallel case is created using the Create Case smart shape. The Clipboard page value is passed as '.ABC' (PageList property) for the dropdown. A Page type property must be passed as a value for the Clipboard page. The issue is not with the Create Case smart shape. The issue is due to the incorrect dropdown configuration.
Resolution
Perform the following local-change:
- Create a property of type Page
- Pass the property as a value for the Clipboard page through the dropdown
Published October 17, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.