Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

OBIEE 12c, session variable error "[nqsError: 23006] The session variable, NQ_SESSION."variable nam

Closed
1029
Views
11
Comments
User_INLWQ
User_INLWQ Rank 5 - Community Champion

Hi All,

Here is the scenario.

I created a non-system session variable in the RPD and a request variable in answers dashboard prompt (both with same name, including case). In the RPD, i defined a default value as well for the session variable and the connection also established (when i hit "test" shows the variable and its default value)

In the front end, i created a simple report and one of the column is being filtered using the prompt created with request variable.

But once i run the report i see below error:

pastedImage_1.png

        State: HY000: Code: 23006: [nQSError: 23006] The session variable, NQ_SESSION.("my variable name") has no value definition.

i did some online search and read suggestions like assign a default value for session variable in RPD (which i already did), still see this error.

Please suggest what might be causing this.

Thanks in advance.

«1

Answers

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    The object is called an "analysis". Not a "report". Two different objects. Two different technologies.

    An "analysis" and a "report" are not the same thing just because both display data. Same as a liver is not a heart becauset both are organs. It's probably best if a surgeon doesnt use these terms as interchangeable....

  • User_INLWQ
    User_INLWQ Rank 5 - Community Champion

    Agree, my mistake

  • What exact version of 12c?

    Did you refresh metadata if you were changing the RPD online?

    Did you logout - login in between the changed?

    Did you try to just display the value of your variable in a dashboard page using a text block? Do you see it?

  • User_INLWQ
    User_INLWQ Rank 5 - Community Champion

    Hi Gianni,

    Version is 12.2.1.4.0.

    1. i did not made any online changes

    2. yes, i logged out after deploying RPD, and logged in.

    3. yes, i can see the default variable value in the dashboard text block.

    Thanks.

  • So you maybe have a wrong syntax to reference it ...

    What is the exact formula / code / expression using it?

  • User_INLWQ
    User_INLWQ Rank 5 - Community Champion

    It is a simple column which i have added to an existing MS SQL Server stored procedure.

    FYI the original stored proc definition's select statement do not contain this column but one of the tables in the same database has this column. I added this column in the RPD physical layer.

    ----------------------------------------------------------------------

    create procedure [xyz].[procedure name] @variable-name char()

    as

    select

    col A,

    col B,

    col C   from table d join table e

    where

    d."variable-name" = @variable-name

    -------------------------------------------------------------

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    Gianni meant what's the statement you got in our init block.

  • I actually meant any kind of real code where it's used.

    The error is about an analysis being filtered on a prompt, the prompt uses the variable. It's highly confusing also because every time it's hand-written pieces of error message or pseudo code.

    And I stopped counting the number of times it was a syntax mistake when using variables, also because there are few ways to reference the same thing.

    There isn't much confidential thing in a variable name...

    @2711084 if privacy is a concern a SR is what you look for as it's between you and Oracle.

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    Ok

  • asim cholas
    asim cholas Rank 6 - Analytics Lead

    Usually variable names shouldn't have any space in between its name

    ..although not tried yet..can you try myvariable instead of my variable.

    Also you cannot use a request variable with @ .it should be referenced with nqsession.variable name

This discussion has been closed.