Support Article
pzPreGetChildKeys function behavior incorrect
Summary
HFix-30094 invokes the pzPreGetChildKeys function when the pxCheckFlowDependencies activity is invoked. However, the function builds SQL i.e queries tables which are not relevant to parent or child case tables.
For example,
select pxObjClass as "pxObjClass", pxCoverInsKey as "pxCoverInsKey", pzInsKey as "pzInsKey", pyStatusWork as "pyStatusWork" from PEGA72DATA.pc_Work_ProcessEmail where pxCoverInsKey = ?
UNION ALL select pxObjClass as "pxObjClass", pxCoverInsKey as "pxCoverInsKey", pzInsKey as "pzInsKey", pyStatusWork as "pyStatusWork" from PEGA72DATA.pc_work where pxCoverInsKey = ?
UNION ALL select pxObjClass as "pxObjClass", pxCoverInsKey as "pxCoverInsKey", pzInsKey as "pzInsKey", pyStatusWork as "pyStatusWork" from PEGA72DATA.pc_pegatask where pxCoverInsKey = ?
UNION ALL select pxObjClass as "pxObjClass", pxCoverInsKey as "pxCoverInsKey", pzInsKey as "pzInsKey", pyStatusWork as "pyStatusWork" from PEGA72DATA.pc_Bran_CoverTest_Work where pxCoverInsKey = ?
UNION ALL select pxObjClass as "pxObjClass", pxCoverInsKey as "pxCoverInsKey", pzInsKey as "pzInsKey", pyStatusWork as "pyStatusWork" from PEGA72DATA.pc_work_accel where pxCoverInsKey = ?
This degrades the performance and the execution takes longer than the required time.
Error Messages
Not Applicable
Steps to Reproduce
- Create a new property
- Add a Declare trigger to invoke pxCheckFlowDependencies on saving the property created
- Run a case
- Set a value to the property
- Click Save
Root Cause
Inefficiency of the underlying rules.
Resolution
Apply HFix-57250.
Published October 17, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.