Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

pxTransferAssignment fails when calling OpenAndLockWork

SA-44046

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

Was this useful?

14% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us