Syntax Error in obiee 10g

I am getting syntax error [nQSError: 27002] Near <)>: Syntax error [nQSError: 26012] . Please help me to identify for below code
CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year" <> 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = cast(concat(cast(day(current_date) as char) ||’-’|| month(current_date) ||’-’|| cast(year(Core."Dim - Date"."Year") as char)) as date)) Else 0 End
Many thanks.

WHEN Core."Dim - Date"."Year" 'year(current_date)' THEN You are missed condtion
try to use as WHEN Core."Dim - Date"."Year" ='year(current_date)'
or
CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year"= 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = cast(concat(cast(day(current_date) as char) ||’-’|| month(current_date) ||’-’|| cast(year(Core."Dim - Date"."Year") as char)) as date)) Else 0 End
Mark as correct
Edited by: Srini VEERAVALLI on May 3, 2013 6:02 AM
Based on given OP what was said is correct. when you are getting cast issues then you need to share values too.
Thanks
Edited by: Srini VEERAVALLI on May 3, 2013 2:03 PM

Similar Messages

  • Syntax error in OBIEE generated Physical query - Advance filter concept

    I encountered a syntax error when running a report with the help of advanced filter concept.
    I am getting syntax error at the physical query generated by the OBIEE for main report.
    I used a sub report with the help of advanced filter concept in main report.
    I am posting the physical query for the convenience.
    select D1.c2 as c1,
    D1.c1 as c2
    from
    (select sum(T600347.sales_usd) as c1,
    T601002.currency as c2
    from
    (Select distinct currency from pfact) T601002,
    pfact T600347
    where ( T600347.currency = T601002.currency and T600347.pdate between ( select distinct min(D1.c1) as c1* from
    (select D1.c1 as c1
    from
    (select D1.c1 as c1
    from
    *(select max(T600425.pdate) as c1*
    from
    *(select distinct pdate from pdates where pdate is not null) T600425*
    where  ( T600425.pdate < 11/22/2010 )
    *) D1*
    ) D1
    ) D1 ) and '11/25/2010')
    group by T601002.currency
    ) D1
    I executed the query against my database(sybase) in query tool. It showed error.
    I took out the column alias generated by the OBIEE ("as c1" as underlined). Then the query is working fine.
    How to disable OBIEE from generating the alias.
    Is there any way to do it.
    If obiee is generating the physical query, i am suprised to see a syntax error.
    The bold part is the query from Intermediate report
    I underlined the problematic part.
    Please help me. This is an urgent reuirement,
    Thanks in advance for the help.

    HI,
    When I execute the query on query tool ( my database is sybase)
    I am geting error at "as c1" part, as underlined in the query.
    when I remove that and execute the query, It is generating the output.
    here is the better view of query and error:
    http://img255.imageshack.us/img255/4719/25187227.jpg

  • Governor limit exceeded in cube generation error in OBIEE 10g

    Hi Gurus,
    one of my OBIEE Report is throwing the error called *"Governor limit exceeded in cube generation(Maximum data records exceeded.)"*
    I am using OBIEE 10g.Could you please suggest me here and report also runnig for long time like to get one day data it is running for 30 min to pick 9000 rows.
    Regards,
    SK

    Hello,
    Try to alter the values in the instanceconfig.xml. ( Under \OracleBIData\web\config )
    <CubeMaxRecords>200000</CubeMaxRecords>
    <CubeMaxPopulatedCells>200000</CubeMaxPopulatedCells>
    Also refer to :     OBIEE 10g: Error: "Governor Limit Exceeded In Cube Generate. Error Codes: QBVC92JY" or "Maximum number of allowed pages in Pivot Table exceeded...Error Detail" When Displaying a Pivot View or Chart [ID 1092854.1] if it did not solve the issue.
    Hope this helps. Pls mark if it does.
    Thanks,
    SVS

  • Socket communication error in OBIEE 10g.

    Hi
    I have below error in nqserver log by which i am unable to connect admin tool and presentation service. I am using OBIEE 10g.
    [nQSError: 12002] Socket communication error at call=recv: (Number=10004) A blocking operation was interrupted by a call to WSACancelBlockingCall
    Please Suggest.

    Hi ,
    Its not about the no. of connection pools u have in ur RPD .Its the maximum number of connections allowed for this connection pool. The default is 10. This value should be determined by the database make and model
    and the configuration of the hardware box on which the database runs as well as the number of concurrent users who require access.
    Ref :
    http://siebel.ittoolbox.com/groups/technical-functional/siebel-analytics-l/oracle-bi-server-stops-automatically-after-some-time-3645235
    Just give it try .

  • SQL Expression in Filter conditon Error in OBIEE 10g

    Hi
    I am getting an error while giving the sql in the sql expression in filter conditon.
    The sql expression I am giving is:SELECT MAX("Task Runs"."Start Time") saw_4 FROM "Analysis"'
    Error:
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <SELECT>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: {call NQSGetLevelDrillability('set variable disable_cache_hit=1; SELECT "Task"."Task Name" saw_0, "Task Runs"."Time in Seconds" saw_1, TOPN("Task Runs"."Time in Seconds", 10) saw_2, "Task Runs"."Start Time" saw_3 FROM "Analysis" WHERE "Task Runs"."Start Time" >= SELECT MAX("Task Runs"."Start Time") saw_4 FROM "Analysis"')}
    But when I individualy select start time column and check max of it the data comes fine, but if I am giving in sql expression it errors out.
    Please suggest.

    Hi Sini,
    I have tried taking the second suggestion but I get no result for that
    "Task Runs"."Start Time" -->Filter->Advanced button->Convert this in SQL->
    WHERE "Task Runs"."Start Time" >= MAX("Task Runs"."Start Time" by "Task"."Task Name")
    Here I did not understand the code Task Runs"."Start Time" by "Task"."Task Name". If possible elaborate.
    And 1st suggestion the query formed just looks the query u suggested.
    Unable to figure out what exactly is the problem.
    Try something as in with 2 queries
    http://www.cool-bi.com/Tweaks/JoinsinAnswers.php
    or else
    "Task Runs"."Start Time" -->Filter->Advanced button->Convert this in SQL->
    WHERE "Task Runs"."Start Time" >= MAX("Task Runs"."Start Time" by "Task"."Task Name")
    not sure how it works but this is other way of your sql in BI

  • WriteBack Error in OBIEE 10g

    Hi Friends,
    I got an error while executing the writeback Template.I am using simple SH schema.
    Please Help me to fix the error.
    The Template I have given is below..
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="write">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert> </insert>
    <update>UPDATE SALES SET PK=@4 WHERE TIMES.CALENDAR_YEAR='@1' PRODUCTS.PROD_NAME='@2' SALES.AMOUNT_SOLD=@3</update>
         </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    The Updated Colomn here is "PK" present in SALES Table.
    The Error I got is ....
    An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists, contact your system administrator.
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement. [nQSError: 16001] ODBC error state: S1000 code: 933 message: [Oracle][ODBC][Ora]ORA-00933: SQL command not properly ended. [nQSError: 16015] SQL statement execution failed. (HY000)
    SQL Issued: EXECUTE PHYSICAL CONNECTION POOL "Connection Pool" UPDATE SALES SET PK=123 WHERE TIMES.CALENDAR_YEAR='1998' PRODUCTS.PROD_NAME='1.44MB External 3.5" Diskette' SALES.AMOUNT_SOLD=64464.83
    Please Help me to fix the Error.
    Thanks in Advance....
    Regards,
    Pamidi.

    Hi JD,
    Thank you for your good Reply.
    I already recognized the Error with Update Command.No need to end ';' to Update Commad.
    I know the Simple Update command like <update>UPDATE SALES SET PK=@2 WHERE PROD_ID='@1'</update> . this command will be worked.
    But in this case(This Error with previous Update Command) , I am not able to write correct Update Command.
    If you know please let me know.Thanks in Advance.
    Regards,
    Pamidi.

  • Consistency check error in OBIEE 10g

    Hi
    I have the below error while doing consistency check.
    I was trying to join two fact tables by complex join, but getting below error
    NQSError:15009 Could not load navigate space for subject area
    NQSError: 15009 Multiple paths exist to table Plans.Circular joins schemas not supported
    Please suggest

    If you have to join fact tables in physical, make sure your logical layer remains a star.
    Either add both fact tables to one logical fact table source , or create two logical stars, where both facts are joined to all conformed dimensions.
    Note: if both facts are not at exactly same granularity, your reports will show incorrect results most definitely. So avoid fact to fact joins.

  • GROUPBY error in OBIEE 10g

    I had a requirment where I need to calculate the duration of the etl runs on daily basis
    So I have calculated the duration using the below formula.
    by grouping the run_wid and using the column in criteria and hiding it(in order to avoid the error 'column in GROUPBY clause not in the projection list.')..
    the reason for grouping the run_wid is when the etl fails it is run multiple times and multiple entries on same run_wid are generated so I have captured them by
    grouping them based on run_wid.
    Everything works here fine.
    But when I want to analyze on the whole year average etl runs using the above process.
    So in order to achieve this by taking the year and duration and grouping by run_wid. I again get the error 'column in GROUPBY clause not in the projection list.').
    I can't use the run_wid in the criteria because it not showing at year level. Please suggest a way/idea on achieving this.
    Edited by: 949675 on May 30, 2013 10:17 PM

    Hi Yadav,
    Thanks for suggesting the idea it worked little bit by not making me to pull the run_wid in both
    criteria and adding in GROUP by in advanced tab.
    The problem what I am facing now is the value is not average values and its only showing the sum
    of all the values
    The formula for calculating Average is Avg(round(sum(TimestampDiff(SQL_TSI_SECOND,Audit."Start Time",Audit."End Time"))/60,2)/60 by run_wid)
    The columns in my criteria are
    Year|Average
    Ex:
    In year 2011 the ETL has run 50 times, I am seeing 50 etls total run time in Average.

  • Java heap space error in obiee 10g

    Dear All,
    We are unable to generate the reports. We observed the following error in OC4J
    12/06/06 17:43:28 java.lang.OutOfMemoryError: Java heap space
    12/06/06 17:43:36 Exception in thread "Timer-8" Exception in thread "Timer-0" j
    va.lang. OutOfMemoryError: Java heap space
    12/06/06 17:44:45 java.lang.OutOfMemoryError: Java heap space
    12/06/06 17:45:18 java.lang.OutOfMemoryError: Java heap space
    12/06/06 17:45:19 java.lang.OutOfMemoryError: Java heap space
    12/06/06 17:45:26 java.lang.OutOfMemoryError: Java heap space
    How to resolve this.
    Thanks.

    Hi,
    Increase the heap size by setting -Xmx to the desired amount of memory in the <java-option> element in opmn.xml:
    <module-data> <category id="start-parameters">
    <data id="java-options" value="-Xmx256M" />
    </category>
    </module-data>
    Alternatively, you can set a system property at OC4J startup:
    java -Xmx256M -jar oc4j.jar
    Refer : http://docs.oracle.com/cd/B14099_15/web.1012/b14011/diagnosis.htm
    Regards,
    Srikanth

  • Case stmt with Like giving me syntax errors

    Hi, The following stmt is giving me syntax error. Please help. Thank you.
    SUM(CASE WHEN (GL_CODE_A.ACCNT = '12300100' AND GL_JE_HEADERS.SOURCE = 'Temp Transaction' AND GL_JE_HEADERS.JE_CATEGORY = 'PENDING') OR (GL_CODE_A.ACCNT = '45600100' AND GL_JE_HEADERS.SOURCE = 'Temp Transaction' AND GL_JE_HEADERS.JE_CATEGORY = 'PENDING' AND GL_CODE_A.GOALS LIKE (‘%R’)) THEN IFNULL(GL_JE_LINES.ENTERED_CR, 0) - IFNULL(GL_JE_LINES.ENTERED_DR, 0)ELSE 0 END)
    -- how to debug this stmt, the error message is too long, and how do you all debug a syntax error in OBIEE?
    -- Can you please let me know where the error is?
    [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near : Syntax error [nQSError: 26012] . (HY000)

    ssk1974 wrote:
    Hi, The following stmt is giving me syntax error. Please help. Thank you.
    SUM(CASE WHEN (GL_CODE_A.ACCNT = '12300100' AND GL_JE_HEADERS.SOURCE = 'Temp Transaction' AND GL_JE_HEADERS.JE_CATEGORY = 'PENDING') OR (GL_CODE_A.ACCNT = '45600100' AND GL_JE_HEADERS.SOURCE = 'Temp Transaction' AND GL_JE_HEADERS.JE_CATEGORY = 'PENDING' AND GL_CODE_A.GOALS LIKE (‘%R’)) THEN IFNULL(GL_JE_LINES.ENTERED_CR, 0) - IFNULL(GL_JE_LINES.ENTERED_DR, 0)ELSE 0 END)
    -- how to debug this stmt, the error message is too long, and how do you all debug a syntax error in OBIEE?
    -- Can you please let me know where the error is?
    [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near : Syntax error [nQSError: 26012] . (HY000)You debug your statement like you debug everything. Take it apart and rebuild it slowly until you find the piece that causes the error. One thing I see right off is that you have smart quotes around your %R.
    Don't add anything from Word, because smart quotes don't work. Change the single quotes to straight quotes and your query should work.

  • Error  in reports after upgrade from OBIEE 10g to 11g :  [nQSError: 14025]

    Hi All, We upgraded RPD and web catalog from OBIEE 10g to 11.1.1.5. I see the following error while running few reports.
    Error: State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A
    general error has occurred. [nQSError: 43113] Message returned from OBIS.
    [nQSError: 14025] No fact table exists at the requested level of detail:
    When I add an user under BIAdministrator Application role and login, all the reports work correctly.
    I verified Oracle BUG fix (11850704) document and tried to make changes as suggested.
    Please suggest me if this issue is related to 10g to 11g RPD upgrade or are we missing any privileges?
    Also should I add every user to BIAdministrator role to avoid this issue?
    Thanks in Advance

    Hi,
    First of all i am not familiar on linux box.
    I tried in windows environment the rpd is deployed with out any errors.
    But i ran the ua.bat file in the following path
    \MWHOME\Oracle_BI1\bin\ua.bat.
    while i am running in oracle_common\bin\ua.bat is not responding in my local system.
    Please Mark if it helpful.
    Thanks

  • Oracle bi error codes u9kp7q94 OBIEE 10g

    Hi All,
    I have created new user in RPD(Online Mode).
    Then i have loged into Answer.It throws error
    "oracle bi error codes u9kp7q94 OBIEE 10g"
    How to fix.
    Thanks
    Gram

    Raj wrote:
    Hi All,
    I have created new user in RPD(Online Mode).
    Then i have loged into Answer.It throws error
    "oracle bi error codes u9kp7q94 OBIEE 10g"
    How to fix.
    Thanks
    GramAre you getting this error on the login screen? or when you are opening a report?

  • Localization in OBIEE 10g(Error "start row is set higher than the row count

    Hi All,
    I m Working on Localization.
    I have used exteranize string and saved excel file and added language column and inserted data en and fr and loaded the file into the database.
    then i have created 2 variables
    one is for weblanguage SELECT 'VALUEOF(NQ_SESSION.WEBLANGUAGE)' FROM DUAL
    second is SELECT SESSION_VARIABLE, TRANSLATION FROM TAB_EXTERNAL WHERE LANGUAGE = 'VALUEOF(NQ_SESSION.LOCALE)' when i click on Test for the second variable it showing error
    "start row is set higher than the row count"
    i have seleted start row =10 and show some 10.then also it is showing same error.
    Please send me the solution ASAP.
    Thanks and Regards
    Kiran Kumar

    Hi Kiran,
    I am working in OBIEE localization. I created two variables and when press test i am getting vaules successfully. But in OBIEE application i am getting columns in english only. It seems there is some problem with values in DUAL table. It contains only 1 column called 'DUMMY' and value as 'X'.
    Please give me complete configuration steps to setup localization OBIEE 10g. Please drop me a mail to [email protected] if u have steps. I will call u if u provide contact number.

  • Forms 10g compile : syntax error near unexpected token `in

    Hi,
    I am writing a code to compile FORMS 10g(10.1.2.0.2) in HP_UX one by one.
    this is the code---frm10g.sh
    *#!/bin/ksh*
    *# . ~oracle/forms/server/default.env*
    *# . sid icache*
    TERM=vt220
    *if [ $# != 2 ]*
    then
    echo Usage : $0 module_name module_type
    exit 1
    fi
    case $2 in
    FORM|form|F|f) ext1='fmb' ;ext='fmx' ; modtyp='FORM' ;;
    PLL|pll|p|lib|LIB) ext1='pll' ;ext='plx' ; modtyp='LIBRARY' ;;
    MENU|menu|M|m) ext1='mmb' ;ext='mmx' ; modtyp='MENU' ;;
    **) echo invalid parameter ; exit 1 ;*
    esac
    echo Generating $1.$ext
    frmcmp module=$1.$ext1 userid=abc/abc@abc output_file=../$1.$ext module_type=$modtyp batch=NO compile_all=special > ./log/$1.log
    when I try to excute above file frm10g.sh in command line i get following error. Please let me know how to fix it.
    [abc]u01/app/oracle/product/10.1.2/forms/forms/Forms10g:. frm10g.sh INV FORM
    : command not found
    : command not found
    'bash: ./frm10g.sh: line 13: syntax error near unexpected token `in
    'bash: ./frm10g.sh: line 13: `case $2 in
    I really aapreciate your help.
    Thanks
    Sandy

    Sandy,
    I must apologize. The Compile.sh does not come with the Oracle Dev Suite installation. However, the following is the contents of the compile.sh script we use. This script compiles a single form.
    #!/usr/bin/ksh
    ORACLE_HOME=/d01/oracle/ias1012;export ORACLE_HOME
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32:$ORACLE_HOME/ctx/lib:/usr/java1.2/jre/lib/sparc:$ORACLE_HOME/jdk/jre/lib/sparc:/usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/ucblib:usr/ccs/lib; export LD_LIBRARY_PATH
    MODULE_NAME=`echo $1|cut -d. -f1`
    MODULE_SUFFIX=`echo $1|cut -d. -f2`
    MODULE_MESG=${2:-"Compiling $1"}
    OK_MESG=${3:-"  Compiled sucessfully"}
    . .setpass_cir
    APP_PW='cir/'`eimauth -g cir`'@database'
    echo "************************************************************************* "
    echo ${MODULE_MESG}
    frmcmp.sh module=/d01/oracle/forms/${MODULE_NAME}.fmb userid=${APP_PW} compile_all=yes batch=yes
    RC=$?
    case "$RC" in
      0)
        echo ${OK_MESG}
        echo "Compile errors, return code: $RC "
        cat ${MODULE_NAME}.err
        echo "Compile errors in $1, press [enter] to continue.\c"
        read x
    esac
    eval exit $RCYou should be able to modify this to suit your needs.
    Craig...

  • EPMMaster.rpd Fusion Pack migration from OBIEE 10g to 11g

    We have successfully installed OBIEE 10g and 11g on Windows 2008 32bit servers. On the 10g Installation, we have applied the Fusion Pack EPMMaster RPD file and it connects successfully to our EPM warehouse. We want to migrate the Fusion pack to 11g which is also setup on the same platform. Per the instructions in the documentation, we have copied the files (RPD file and Webcat folder) to the 11g server. We run the UA.bat file and it proceeds to start copying the files over fom the RPD and WebCatalog to the new system. It completes this process, but then hangs on starting the Oracle BI server - it never gets beyond that.
    We will be purchasing the EPMMaster RPD and know it is not available yet for 11g – however we’re trying to get ahead of the curve a bit and manually fix the items in the presentation layer that will not render correctly in 11g
    upgrade exception occurred
    Unable to start process: instance1: coreapplication_obis1
    One thing that I noticed – Since the UA tool does not completely finish --
    RPD size on 10g – 42,675KB; 11g – 6,375KB
    I manually change the webcat in Enterprise Manager to the EPMMaster catalog -this actually caused additional errors on restart.
    Has anyone attempted upgrading a delivered RPD to 11g?
    Thanks in advance -

    This is a known issue that we have worked through with Oracle tech support. The Dimension Deduction.Deduction Sid causes an error that prevents the UA tool from completing the upgrade process. There are a couple of ways around this, but the fastest is to simply delete the Dimension, the two related hierarchies and the fact table that is joined to this dimension. Physical table do not need to be touched however. There are still issues once it’s moved to 11g, but those can be addressed post migration. Thanks much to the Oracle support team for helping us out with this issue!

Maybe you are looking for