Question 4 Replies 212 Views × Close popover Jagannath Rajagopalan (JagannathR8869) DXC Technology DXC Technology BE View Profile Send Message JagannathR8869 Member since 2016 43 posts DXC Technology Posted: May 11, 2018 Last activity: May 17, 2018 Posted: 11 May 2018 9:24 EDT Last activity: 17 May 2018 1:02 EDT Closed Obj-Open-By-Handle on a common class by two activities Dear, I am explaining the scenario based on my question. There are two activities which use a common class say A-B-C. Activity1 uses object open by handle on a data page called Page1 of A-B-C. This activity is triggered by an Agent1 which runs every 5 secs. Acitivity2 also uses object open by handle on a data page called Page2 of A-B-C. This activity is triggered by an Agent2 which runs every 60 secs. Both object open by handle use lock and ROC (release on commit) features. Though the data pages are named differently in both activities, will this cause a problem in activity2 if activity1 already is having a lock on pzinskey. I have a similar issue causing heap space and server crash. Investigating this and needs your precious inputs. thanks, Jagan Low-Code App Development System Administration × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 2 years ago Posted: 11 May 2018 14:00 EDT × Close popover Carissa Wenhardt (CarissaW_GCS) PEGA Principal Software Solutions Engineer Pegasystems Inc. US View Profile Send Message CarissaW_GCS PEGA replied to JagannathR8869 Only one requestor would be able to have a lock on the work object at a time. If Agent1 has the lock, then an error will occur when Agent2 attempts to obtain a lock. Posted: 2 years ago Posted: 12 May 2018 7:47 EDT × Close popover Anil Vanaparthi (vanaa) PEGA Tech Lead, Software Engineering - India Pegasystems Inc. IN View Profile Send Message vanaa PEGA replied to JagannathR8869 Yes, if it's the same inskey you will be having lock issues. What exactly is the requirement? Why 2 agents are referring same object? If you can share some more details, we can suggest,. Thanks. Posted: 2 years ago Posted: 16 May 2018 10:47 EDT × Close popover Jagannath Rajagopalan (JagannathR8869) DXC Technology DXC Technology BE View Profile Send Message JagannathR8869 DXC Technology replied to JagannathR8869 Activity1 which runs every 5 secs is doing following : Iterates on the pxResults of a pageX created with class A-B-C using Obj open by handle in a step of pageY of same class A-B-C to open the record Its sets a property value .Old = true Does an obj-save. After exiting the loop, sets property .Pro='No' goes on to do more steps, calls another Activity234 and returns Then does a Commit. Activity2 which runs every 60 secs does the following: Opens a new pageV of class A-B-C Does an obj-browse on pageV to filter the pzinskey with condition .Pro='No' & .Old=null Iterates on the result of pageV.pxResult Create a page-new of pageV2 of class A-B-C (no parameters set) Does obj-open-by-handle on pageV2 with instance handle as pzinskey. Lock and ROC selected. This is the place where the issue happened and logs show that it got stuck. --------------------- What is confusing for me is, in Activity1, the parameter .Old was set to true and .Pro was set to No. When Acitivity2 runs, it browses for .Old as null, but still some how got the same pzinskey. How is this possible. Hope the details are clear for you to answer. Let me know if any thing is not clear. Posted: 2 years ago Posted: 17 May 2018 1:02 EDT × Close popover Anil Vanaparthi (vanaa) PEGA Tech Lead, Software Engineering - India Pegasystems Inc. IN View Profile Send Message vanaa PEGA replied to JagannathR8869 Could you try obj-save with write now option enabled. So that the property change is committed immediately. After setting .Pro='No', is there an obj-save operation, if not .pro value wouldn't be persisted.