Support Article
Connection Failed error observed during log off
SA-10399
Summary
'Connection Failed' error generated during log off. This occurs intermittently.
Error Messages
Connection Failed
Steps to Reproduce
Log off to observe the error.
Root Cause
The root cause of this problem is a defect in customer application code/rules.
The logoff link is an old URL gadget calling the activity Code-Security.Logoff directly. This allows the pyDeleteDocumentPG activity to run between the Code-Security.Logoff and Code-Security.EndSession activities resulting in the error.
Resolution
This issue is resolved through the following Local-change.
In Pega 7.1.7 exists a code that suppresses the pyDeleteDocumentPG activity if/when logoff from the UI level has been called.
Rule-File-Text: webwb.pega_ui_doc_lifecycle.js
harnessOnBeforeUnload : function (event)
....
/* BUG-109795 - Added by Delta Touch*/
var parentWindow = pega.desktop.support.getDesktopWindow();
if (parentWindow != null && parentWindow.logout == true) {
return;
}
...
Update "Logoff" to use a UI Link gadget with a onClick action of "Logoff". This properly calls "application.Logoff()" and sets the parentWindow.logout = true. The above code then runs and exists the harnessOnBeforeUnload method before the pyDeleteDocumentPG call.
Published June 12, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.