To display a session timeout pop up dialog, I added pxSessionTimer.
Create a section AdvisorWrapper which is referenced in Harness pyCaseWorker of type Data-Portal.
In section AdvisorWrapper added an embedded section pxSessionTimer.
Launch Portal → Case Worker
Multiple errors are generated in the logs:
Section ‘pxSessionTimer’ execution error on page ‘pyTmpDisplayHarness’ of class ‘Data-Portal’.
Problem appending stream null
To solve this issue, I did some Google search, it saying pxSessionTimer should be added to portal header instead of portal main content.
Then I created a section pyPortalHeader and embedded pxSessionTimer in pyPortalHeader.
Reference pyPortalHeader in AdvisorWrapper.
The error is still in the log.
I have removed your solution from your reply. Could you share your Support Case ticket # with us so that we may track this for you and then we can update this thread with the resolution and mark that reply as the solution?
While reviewing the associated Support Case, the resolution was found as follows:
Ideally it is recommended to add pxSessionTimer to the portal header (pxSessionTimer error in log file | Pega). Since this is only happening in case we use head less portal and has no functionality impact, suggested client to use defer load on the concerned section that embeds the pxSessionTimer.
If you have the same or similar question and the above does not solve this for you, please Ask a Question.