Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tech Mahindra
US
Last activity: 12 Feb 2021 2:13 EST
Force Save for backend synchronous case creation
Hi All,
Use case: User action on parent case, creates a child case in a synchronous call. However some times during the middle of child case flow, page messages are getting set which is causing the Parent and child case to not save in DB. We need to force DB save of the child case so that if anything fails, the case data will be available as exception handling to debug this issue in PROD.
For force saving the data first time (when pzinskey is blank). I added a Data Transform in the start shape connector in first flow of the first stage of the child case type and tried below options.
- Calling Obj save with write now (gives commit error on submit of parent case)
- Calling persist case (does not save the data in DB)
- Calling Commit with acquireWorkObject (gives commit error on submit of parent case)
Is there any way to force save child case in DB without getting lock or commit errors.
Kind Regards,
Ankush