After a loop, commit method lost data in activity
hi all,
i have an issue about commit method in activity.
in activity, i called page-new then used obj-save in loop.(using same page name as step page when i use page-new)
after the loop, the commit method is called. but only the last one in page list is saved to database.
does anyone know the reason why? and a way to commit all data into database in the situation ?
Thanks, and the pega version is 7.1.9
Hi,
The steps you performed are correct. They should be in the deferred save list and the commit will save all of them.
My guess is you may be overriding the same primary key's each time. May be you can try logging the Primary key each time you do a obj-save. Most cases primary key may be pxInsKey or else check the key's present in the Class.