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

Unable to Open an assignment from a grid



A Data Transform used to set the assignment key only works the first time it is used.
After the first time, the data transform does not set the key and the assignment key has no value.

1. A grid is being used which displays the list of assignments available to the user.
2. On click of the Case id link in the row, the system opens the assignment (assignment key is set through a data transform)
3. The grid has an expandable details view which works through a flow action.
4. Once the detailed view is used at least once in the screen, the open assignment action stops working because the data transform does not set the assignment key.

Error Messages

"Empty Assignment Key" appears in a message popup on the browser window.

Steps to Reproduce

  1. Create a Report Definition at Work- level with a JOIN on Assign-Worklist
  2. Create a Repeating Grid using above Report as a source to display the list of assignments available to the user.
  3. Create a Data Transform to get the pyAssignmentKey

DataTransform is just getting the assignment Key at the top page level to be used on the next method
  1. Configure the Repeating Grid Actions to run the Data Transform and then open an assignment using the key value populated by the Data transform.

  1. Create any FlowAction to display the grid.
  2. At runtime expand any row from the Grid and click on any line after.
  3. Observe that the error “Empty Assignment Key” displayed in a popup.

Root Cause

For performance reasons, actions on the grid are synchronous. So it is impossible to be 100% certain that a Data Transform will be executed when calling the Open Assignment action. This is why sometimes you end up with the JavaScript error on the screen.


A few local changes are possible, but the best option is to avoid the DataTransform altogether and directly reference the Key with the following format: .pxPages(Assign).pzInsKey within the Open Assignment action area.

The above format will be working fine as long as the page is correctly defined on the "Pages & Classes" tab of the same SECTION:  
.pxPages(Assign) > Assign-Worklist

Example configuration for the local-change is as follows:

Published April 25, 2016 - Updated October 8, 2020

Was this useful?

100% 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