If you are unable to create a new account, please email support@bspsoftware.com

 

The secondary request failed. The requested session does not exist and the secon

Started by daniel, 25 Jan 2016 03:19:21 PM

Previous topic - Next topic

daniel

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 );

}

bdbits

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?