Data pages with blank interaction ID created with End Call click
SummaryPages are created with an empty interaction ID (D_CPMPortalContext.pyID). Sometimes pages are not created at all when finishing one call and opening a new call. This causes the portal to behave incorrectly.
Error MessagesUnable to load Data Page D_XXXX. Required Parameters : InteractionID. cannot be blank.
Steps to Reproduce
- Launch a new account (interaction call).
- Launch a new intent task.
- Launch a second call by clicking “New” and just type the account number.
- Switch to first account (interaction call), click on “Finished with Account” (End Call).
- Immediately switch to second account (interaction call), perform a search using previously entered account number.
Root CauseA defect in Pegasystems’ code or rules. This problem is due to the fact that users are clicking on the tabs very quickly. As a result, the first interaction is trying to wrap-up and clean up the clipboard, while the second interaction tab is requesting focus. Since these requests are coming from separate documents in the browser, they are going at the same time. This causes a problem where multiple threads are trying to update the PortalContext, which is a problem since this is a requestor scoped data page.
ResolutionA local change was provided that disables the click action on the non-focused tab while the first interaction is wrapping up. With this change, we are able to prevent this issue. As soon as the first interaction is closed, the Portal Recents are reloaded from the server and click actions are restored. Here are the changes. The link is in the CPMPortalRecent section as shown below:
Here is the change to the script:
/* Disable on-click of each links in CPMPortalRecent */
var iframes1 = $(window.parent.document).find("iframe");
if($(iframes1[i].parentNode).attr("pegathread") == interactionThreadName)
var wrapupHiddenTextField = iframes1[i].contentWindow.document.getElementById("QuickWrapupHiddenField");
delete iframes1; /* Cleaning object */
Published September 26, 2016 - Updated October 12, 2016