Support Article

Favorite items appear twice



To Favorites and Remove favorites are configured using out-of-the-box activities. A case is added twice when To favorite is selected, and when removed from favorites using Remove favorite, two instances of the same case in the favorites are removed.

Error Messages

Not Applicable

Steps to Reproduce

  1. Log into Pega Application.
  2. Launch Outage Dashboard portal.
  3. Select Outage Search present in the header.
  4. Select any case.
  5. Select To Favorites from Actions menu to the right top in the header.
  6. Open the favorites. Observe that the same case is added twice.
  7. Select Remove from favorites from Actions menu, and observe that two instances are removed from favorites.

Root Cause

An issue in the custom application code or rules:
D_pxFavorites is a requestor level datapage. This fetches the data correctly from database. However, this DP has a post processing activity (pyFollowedCases, which is out of the box) configured. This activity is in OutManFW:01-01-01, which is not out of the box. However, as it is an available activity, it is overridden.
A nested loop is defined at step 1 of this activity, which executes Page-Copy method. This caused the issue.


Perform the following local-change:
Add a step to pyFollowedCases activity to remove duplicate entries from D_pxFavorites based on the pyID.

Published September 28, 2016 - Updated January 16, 2017

Have a question? Get answers now.

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