Presentation variable is not supported in "SQL Issued"

hi, there is a presentation variable called @{ps_var} from a prompt
and I have written a custom sql and typed in "SQL Issued"
!http://img31.imageshack.us/img31/8673/customsql.jpg!
I found that the presentation variable is not supported in "SQL Issued" (exception flows when I clicked the "Set SQL" button.)
(in the captured screen, it is hardcoded as 'REPLACED_BY_PRESENTATION_VARIABLE', no error occurs when I clicked the "Set SQL" button. the result is correct.
however, when 'REPLACED_BY_PRESENTATION_VARIABLE' is replaced by @{ps_var}, exception flows when I clicked the "Set SQL" button.
is there an alternatives to avoid the error ? or any ways to assign the selected value from the prompt to this sql ?
thank you very much!

Just set your presentation variable with an other method.
Check here you will find how you can set a presentation variable for a filter
http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_presentation_variable_area

Similar Messages

  • What are all the features not supported in SQL Server 2012 trial version?

    What are all the features not supported in SQL Server 2012 trial version?

    The evaluation edition supports all features and expires after 180 days.
    https://msdn.microsoft.com/en-us/library/cc645993.aspx?f=255&MSPPError=-2147217396

  • System.Data.SqlClient.SqlException: The locale identifier (LCID) 16393 is not supported by SQL Server

    I have SQL Server 2005 Developer Edition. And my operating system is Windows Vista.
    I have written a procedure in C# and deployed it on SQL Server. However when i try to run it i get the following error.
    System.Data.SqlClient.SqlException: The locale identifier (LCID) 16393 is not supported by SQL Server
    Also I tried using same procedure in Windows XP machine and it workd fine. Can anyone help me what could be the problem?

    Hi Jonathan
    I tried posting the error box here but it is not allowing me.
    Here is the error coming up:
    A .NET framework error occured during execution of user-defined routine or aggregate.
    System.Data.SqlClient.Sqlexception:The locale identifier (LCID)1153 is not supported by SQL Server.
    System.Data.SqlClient.Sqlexception:atSystem.Data.SqlClient.SqlConnection.OnError(SqlExceptionexception, Boolean breakConnection)                            atSystem.Data.SqlClient.SqlInternalConnection.OnError(SqlExceptionexception, BoleanbreakConnection)                     atSystem.data.SqlCleitn.SqlInternalConnectionSmi.EventSink.ProcessMessagesandThrow(Boolean ignoreNonFatalMessages)             atMicrosoft.SqlServer.Server.SmiEventSink_Default.ProcessMessagesandThrow(Boolean ignoreNonFatalMessages) atSystem.Data.SqlClient.SqlCommand.RunExecuteNonQuerySmi.(BooleansendTo Pipe)                                           atSystem.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResultresult,StringmethodName,BooleansendToPipe)
                                                       atSystem.Data.SqlClient.SqlCommand.ExecuteNonQuery()
    I hope this will shed some light.
    Cheers

  • Presentation Variable Value not passing when used in Column Formula.

    Hello Gurus:
    Please help me with my requirement.
    We are trying to show a data backout in report, for example.
    For a Product Group Code of 2435 which belongs to Report Line C059 has a Sales Amount of $4,266.90 and in report we want the same Sales Amount of $4,266.90 to be shown as -$4,266.90 (Negative) under a Report Line C080.
    So in a report there should be same Sales Dollars as Positive for C059 (from Source) and Negative Sales Amount for C080 (Condition to be applied in Report).
    Solution I Tried
    I tried to create a Presentation Variable (SQL- Which would fetch me Sales Dollars for Product Group Code 2453) which returns with $4266.90 and then applied it in Answers in Logic (Case when Report Line = C080 then @{Presentation Variable}*-1 Else Sales Dollars END).
    Issue I am facing:
    Presentation Variable is coming as 0 and if i give any Format (Default Value) it shows the same default value in report. I checked the SQL i used and even when I Preview the Variable its showing me $4,266.90, but not in report.
    Please let me know a way to get this Presentation Variable value into my reports.
    Also please let me know if i can achieve this requirement in any other way.

    Thanks for your reply Paul. But there is no Invoiced Amount for Report Line - 'C080' from source. Invoiced amount of C059 should show as -ve Invoiced amount for CO80.
    In a report C059 should show +ve Sales Dollars and C080 should show same amount as -Ve Sales Dollars.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Using Presentation variables in Prompt Default using SQL Results.

    I have set a presentation variable in a prompt(say 1st prompt). In the 2nd prompt, using default option, when I try to reference this variable in SQL Results, I get this error.
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <@>: Syntax error [nQSError: 26012] . (HY000)
    The syntax used for SQL is:
    SELECT <tab>.<col1> FROM <subject area> WHERE <tab>.<col2> = @{variables.myvar}
    Note: However the same SQL works fine in SHOW option.
    Thanks in advance..
    Edited by: user457687 on Feb 27, 2009 3:13 PM
    Edited by: user457687 on Feb 27, 2009 4:49 PM

    - OK. In the second prompt, instead of setting Default to SQL Results, set it to Specific Value.
    - Then insert '{pres_var}' in the window. I got it to work this way.
    - It supplied the PV as the default in the second prompt after hitting "Go" on the first prompt.
    Hi, thanks for your suggestion but I don't need to have the value of the presentation variable itself as the prompt default. The variable is a filter for a specific SQL clause and the default is the result of this SQL.
    Cheers
    DrPlexi

  • SQL Server Business Intelligence Development Studio query designer not supported in SQL SERVER 2008 R2

    Hello I am using the SQL Business Inteligence Development studio that comes with SQL 2008 R2. However whenever i try using the graphical query builder It throws an error stating that the server i am connected is not supported. Only SQL servers from
    2005 downwards are supported. dunno whats going on

    Hi ,
    It should not be . Did you create the data source for that server ? Test the connection . In design view add the data source which will be reference to share data source .I am not sure you were able to create data set perfectly ..
    Let me know the specific error . I will help you out.
    Thanks

  • Variable value not showing in sql developer  tool

    HI,
    I am using sql developer tool. when i take mouse in variable name at debugging its not showing variable value and instead showing variable name data type and owner. but in past i have used sql developer tool where when i take mouse on variable at debugging mode it shows the varable value.  please tell me is there any issue in sql develper tool currently i am using.
    sql developer version 2.1.0.63

    Sorry - but I doubt if you will get much help for that ANCIENT version of Sql Developer.
    My best suggestion is to download the current version and see if you still have the problem. There have been HUNDREDS of bug fixes since that version you are using.
    Oracle SQL Developer Downloads
    Take note that the current version REQUIRES a much higher JDK version than what you may be using. And do NOT try to install the new version on top of the old one.
    Install the new version into a totally new folder. You will be ask if you want to import your settings from your current version.

  • Thai characters not supported in SQL window

    Hi,
    The version of my PL/SQL Developer is 7.0.1.1066.
    We have created a database with UTF-8 format to support multi languages.
    When we used Chinese language we are able to query..
    TABLE 1
    Name RollNo Class
    chinese name 12 10
    When we put the query table using the chinese name,we are able to get the chinese name on the SQL window as well as command window...
    we used NVARCHAR2 as the storage for the chinese name as well as thai name
    TABLE 2
    Name RollNo Class
    Thai name 1 11
    If we try to put the thai name on the SQL window,the format will not come...
    Can anyone tell me what the problem is and how to rectify it?
    I am not able to perform the query condition
    select * from table2 where name=Thai Name
    ORA-01403 :DATA NOT FOUND will be thrown since its not able to take the Thai name...
    If we put chinese name then its coming correctly...

    Hi ,
    It should not be . Did you create the data source for that server ? Test the connection . In design view add the data source which will be reference to share data source .I am not sure you were able to create data set perfectly ..
    Let me know the specific error . I will help you out.
    Thanks

  • Window 7 is not supported (screen brightness issue)?

    I called Lenovo tech support to find out if they had a solution for the inability to dim the screen in Windows 7.  The suport person told me to load the latest drivers.  I did, then called back with my case number.  I told them that the suggestion didn't work (I knew it wouldn't). 
    The guy then asked me if I had received the Win 7 update from Lenovo, and I told him "No, I bought Windows 7 and installed that version".
    Eventually, when he realized he couldn't help me, he told me that they couldn't give me any more help because I had loaded "unsupported software".  Apparently, they consider Windows 7 (if not received from Lenovo) "Unsupported Software"!
    Solved!
    Go to Solution.

    Thank you!  That worked.  Someone please tell Lenovo tech support about this.

  • HR SCHEMA FILES PRESENT BUT TABLES NOT SHOWN IN SQL DEVELOPER - PLS HELP

    Dear DBA's,
    I am studying towards the OCA and working through the SQL Fundamentals I Exam guide text book by John Watson and Roopesh Ramklass. I have a problem with accessing the HR Schema tables in SQL Developer. I can get connected to the HR schema but no information is available when i click on the + sign next to the "Tables (filtered)" link in SQL Developer under Human Resources - BTW (I've downloaded Oracle 11G)
    Please help, I've tried the following already;
    1. Downloaded the HR Schema sample scripts again
    2. Resetting the Sample schema with this syntax in SQL PLUS - @?/demo/schema/mksample systempwd syspwd hrpwd oepwd pmpwd ixpwd shpwd bipwd default_tablespace temp_tablespace log_file_directory/
    3. I have no Master script file so I cant recreate the sample scripts
    I've been reading forums and trying to Google but I am too new at this and just can't get the HR schema to display all the information in SQL Developer. Please help as I really badly need to practice the exercises in the text book.
    Any help to resolve this will be greatly appreciated.
    Ali
    Edited by: 942730 on Jun 26, 2012 1:15 AM

    942730 wrote:
    Dear DBA's,
    I am studying towards the OCA and working through the SQL Fundamentals I Exam guide text book by John Watson and Roopesh Ramklass. I have a problem with accessing the HR Schema tables in SQL Developer. I can get connected to the HR schema but no information is available when i click on the + sign next to the "Tables (filtered)" link in SQL Developer under Human Resources - BTW (I've downloaded Oracle 11G)
    Please help, I've tried the following already;
    1. Downloaded the HR Schema sample scripts again
    2. Resetting the Sample schema with this syntax in SQL PLUS - @?/demo/schema/mksample systempwd syspwd hrpwd oepwd pmpwd ixpwd shpwd bipwd default_tablespace temp_tablespace log_file_directory/
    3. I have no Master script file so I cant recreate the sample scripts
    I've been reading forums and trying to Google but I am too new at this and just can't get the HR schema to display all the information in SQL Developer. Please help as I really badly need to practice the exercises in the text book.
    Any help to resolve this will be greatly appreciated.
    Alisqlplus
    / as sysdba
    alter user HR identified by hr account unlock;
    connect hr/hr
    select table_name from user_tables;
    exit

  • Set filter (with presentation variables) for requests using "SQL Issued"

    if I have a "SQL issued":
    SELECT saw_0 saw_0, saw_1 saw_1, saw_2 saw_2, saw_3 saw_3, saw_4 saw_4 FROM (
    SELECT saw_0 saw_0, saw_1 saw_1, SUM(saw_2) saw_2, SUM(saw_3) saw_3, SUM(saw_4) saw_4
    FROM
    SELECT "Period"."YearMonth" saw_0, "Customer"."CustomerName" saw_1, COUNT("Sales"."SalesDate") saw_2, "Sales"."No.OfConsumer" saw_3, 0 saw_4
    FROM CRM
    WHERE ("Period"."YearMonth" >= 200904) AND ("Period"."YearMonth" <= 200910)
    UNION ALL
    SELECT "Period"."YearMonth" saw_0, "Customer"."CustomerName" saw_1, 0 saw_2, 0 saw_3, Count("SuperSales"."SuperSalesDate") saw_4
    FROM CRM
    WHERE ("Period"."YearMonth" >= 200904) AND ("Period"."YearMonth" <= 200910)
    ) t1
    GROUP BY saw_0, saw_1
    ORDER BY saw_0, saw_1
    ) t2 ORDER BY saw_0
    actually, in this request, I would like to set a filter for "Period"."YearMonth" using presentation variable.
    is it possible to do this ?
    Thanks !!

    Hi Forreging,
    You can use presentation variables, but not if you are directly setting the SQL via the Advanced tab.
    Instead, build up the first report just like the first part of the UNION statement. Then use the "Combine with Similar request" to build up the logic for the second part of the query.
    When you approach it this way, you have the ability to set filters on each "Sub-Request" via the Criteria tab. Otherwise, OBIEE only lets you add a filter at the outer level of the query when you go the route of setting the SQL in the Advanced tab.
    Good luck and if you find this post useful, please award points!
    Best regards,
    -Joe

  • Error using presentation variable in SQL Expression

    Hi all,
    I'm receiving an error - '...Error getting drill information...' due to a presentation variable being used in a SQL Expression. It probably has something to do with a data type issue. I've narrowed the error to the use of the presentation variable.
    I'm setting a presentation variable, pres_mth_nme_to, from a dashboard prompt. The prompt contains a month name.
    I'm using the presentation variable as part of a SQL Expression in a filter. The gist of the SQL Expression is to use the
    presentation variable in a CASE and set a value accordingly. For example:
    Column: Month Sort Value
    Operator: Between
    Value: *10*
    SQL Expression: *Case  @{pres_mth_nme_to}{some default} WHEN 'NOV' THEN '10' WHEN 'DEC' THEN '11' WHEN 'JAN' THEN '12' WHEN 'FEB' THEN '13' WHEN...END*
    The month name is character. If I were to hard code this, I don't recieve the error. For example:
    CASE 'SEP' WHEN 'NOV' THEN '10' WHEN 'DEC' ...END
    There something going on with the data type from the prompt and it being used in the comparison. If I use a CAST, the problem still exists.
    CASE CAST(@{pres_mth_nme_to} as char(3)) WHEN 'NOV' THEN ... END
    If I'm in Answers, the problem doesn't exist, I'm assuming because of the default values. If I'm on the dashboard, it does exist, I'm assuming because of recieving the prompt value.
    I don't know what I'm missing. Any suggestions?
    Thanks.

    DJ,
    if the formula presented by you is exactly true, i mean it was not fabricated to present as an example in the forum, you should include the presentation variable in single quotes.
    i.e. your formula must look somthing like
    Case '@{pres_mth_nme_to}{some default}' WHEN 'NOV' THEN '10' WHEN 'DEC' THEN '11' WHEN 'JAN' THEN '12' WHEN 'FEB' THEN '13' WHEN...END
    let me know if it did solve the issue...
    -bifacts
    http://www.obinotes.com
    Edited by: bifacts on Oct 25, 2010 1:50 PM

  • Data types in Sql Server 2012 not supported by replication

    Hi All,
    I am planning to configure replication on SQL  server 2012.I need to know what data types are not supported in replication and if there are any other boundations. kindly suggest.
    Regards
    Rahul

    What type of replication are you looking to implement?
    Have you had a look at this thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/bbec1a86-14cd-4d90-8b62-c875de4cf9a0/data-type-not-supported-in-sql-server-2008-merge-replication?forum=sqlreplication

  • Hosting company does not support SQL query with OUTFILE clause

    From my mysql database, I want to allow the user to run a query and produce a csv / text file of our membership database.   Unfortunately,  I just found out my hosting company does not support the SQL query with OUTFILE clause for MySQL database.
    Are there any other options available to produce a file besides me running the query in phpadmin and making the file available to users.
    Thanks.  George

    Maybe this external Export Mysql data to CSV - PHP tutorial will be of help
    Cheers,
    Günter

  • Presentation Variable value to Drill report OBIEE 11g

    Hi ,
    We have a requirement to use Parent report prompt value in the drill report. So we have used presentation variable to pass the value.
    Issue is when we go to drill report its not showing actual presentation variable value, its giving some other value( eg: we have two values to be passed to presentation variable 'Yes' and 'No' , even though we have selected 'Yes' in the prompt the drill report is showing results for 'No' but when we refresh the drill report its showing exactly as prompt selection.)
    And we are using Advanced Sql filter to filter the records .
    In 10g it has worked fine but in 11g we are having the issue.
    Thanks in advance.
    Regards,
    Raju

    Fyi.. We are using action links for drill down.

Maybe you are looking for