Support Article

Open Assignment gives empty assignment key error

SA-41440

Summary



User has configured a section with a link which on click creates a child object for that particular case.

This use case is running fine in the previous version Pega 7.2.1 and behaves incorrectly in Pega 7.2.2, on click of the link and empty assignment key is passed while opening the assignment(but the child case is properly created), but the next time when link is clicked to create another child case, this time "Open Assignment" is taking the previous pzInskey and opens that case.


Error Messages



First time "Empty assignment key" issue will come up and next time onward issue will not come up but it will open the previous work-item.


Steps to Reproduce



Configure a link with sequence of actions of creating child work object and setting the key for "Open assignment" in a data transform.


Root Cause



The issue was because of defer load that has been configured in the grid for which the server interaction is unpredictable. Because of which the data transform execution happened before the complete grid load and thereby the key didn't pass while execution. It is not a reliable configuration of having defer load and the action dependant on that defer load results as we do not really know when the server interaction starts and ends for a defer load.

Resolution



To ensure that the assignment keys are properly passed while execution(which means proper and intact server interactions). Instead of having a defer load on the grid and the action on click of link to depend on that defer load results which is unpredictable, perform the changes as below -

1. Remove the defer load contents option on the grid dynamic layout.
2. Add an action prior to the action "Refresh-this section" & "Data transform" call( which sets the value for "Open Assignment") on click of link as "Run Activity" of the defer load activity you have which ensures that server interactions are intact and action execution is in sequence.

Suggest Edit

Published November 9, 2017 - Updated October 8, 2020


33% found this useful

Have a question? Get answers now.

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