Support Article
pxTransferAssignment fails when calling OpenAndLockWork
Summary
The activity pxTransferAssignment fails at the step that calls the activity OPENANDLOCKWORK.
Error Messages
Failed to find a 'RULE-OBJ-ACTIVITY' with the name 'OPENANDLOCKWORK' that applies to 'MyCo-MyOrg-Work-MyCase'.
Steps to Reproduce
Run pxTransferAssignment and pass the required parameters.
Root Cause
An issue in the custom application code or rules whereby the AssignmentID parameter being passed into the pxTransferAssignment activity is actually the Work object's pzInsKey instead of the Assignment's pzInsKey.
Tracer output revealed this flaw in the application. Because of this flaw, when OpenAndLockWork is called, the newAssignPage is actually populated with the Work object's data instead of with the Assignment's data, causing the system to look for that activity in the Work class, rather than in an Assignment class.
Resolution
Perform the following local-change:Modify the rule that calls pxTransferAssignment to ensure that the Assignment's pzInsKey, rather than the Work object's pzInsKey, is passed as the AssignmentID parameter.
Published February 15, 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.