COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: daniel on 25 Jan 2016 03:19:21 PM

Title: The secondary request failed. The requested session does not exist and the secon
Post by: daniel on 25 Jan 2016 03:19:21 PM
I am getting the following issue with cognos 10.2
The secondary request failed. The requested session does not exist and the secondary request does not contain enough information to recreate the session. Contact your Administrator.
below my script.. can someone please help me what is wrong in this..

function gprcPromptBtn( lsAction_IN )
{

// Initialize an empty 'prefix' variable.
// note: the prefix is not needed when the report is run in a background
// poccess such as via the scheduler.
var lsPrefix = '';

/* Check for the type of 'Cognos Viewer Prefix' that the current window is using.
     -  'RS'   : Report Studio
     -  '_NS_" : Cognos Connection */
if ( fW.elements["cv.id"] )
{
    lsPrefix = fW.elements["cv.id"].value;
}

setTimeout( 'oCV' + lsPrefix + '.promptAction(\'' + lsAction_IN + '\')', 100 );

}
Title: Re: The secondary request failed. The requested session does not exist and the secon
Post by: bdbits on 26 Jan 2016 05:26:15 PM
Kind of sounds like it could be a timing issue. I have often found when using setTimeout() that you have to wait longer than you might expect or want to wait. 100ms is not much time on a busy report page, I would try a much larger value to see if that is the issue, maybe try 1000.

What are you trying to accomplish that the built-in prompt buttons cannot do? Or is this just a code fragment and there is other stuff going on?