Syntax error [nQSError: 27002] Near NA : Syntax error [nQSError: 26012] .

All,
I would like to cache few dashboard SQL's manually. For that I am seeding this logical SQL to BI. I got this SQL from the Advanced tab of analytics.
Call SASeedQuery('SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, s_8, s_9, s_10, s_11, s_12 FROM (
SELECT
0 s_0,
"RProBIEE"."Date"."Calendar Month" s_1,
"RProBIEE"."Date"."Calendar Year" s_2,
"RProBIEE"."Stores"."Sbs Name" s_3,
"RProBIEE"."Vendors"."Vend Name" s_4,
DESCRIPTOR_IDOF("RProBIEE"."Stores"."Sbs Name") s_5,
"RProBIEE"."PO Amounts"."PO Quantity" s_6,
"RProBIEE"."PO Amounts"."PO Received Quantity" s_7,
"RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 s_8,
REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
Month","RProBIEE"."Vendors"."Vend Name") s_9,
REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
Year") s_10,
REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
Year","RProBIEE"."Date"."Calendar Month") s_11,
REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
Year",DESCRIPTOR_IDOF("RProBIEE"."Stores"."Sbs Name"),"RProBIEE"."Vendors"."Vend Name") s_12
FROM "RProBIEE"
WHERE
(Stores."Sbs Name" NOT IN ('NA', 'UNK'))
) djm ORDER BY 1, 5 ASC NULLS LAST, 2 ASC NULLS LAST');
and I get below error
te"."Calendar Month") s_11,
REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."P
O Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar Year",DESCRIPTOR_IDO
F("RProBIEE"."Stores"."Sbs Name"),"RProBIEE"."Vendors"."Vend Name") s_12
FROM "RProBIEE"
WHERE
(Stores."Sbs Name" NOT IN ('NA', 'UNK'))
) djm ORDER BY 1, 5 ASC NULLS LAST, 2 ASC NULLS LAST')
[10058][State: S1000] [NQODBC] [SQL_STATE: S1000] [nQSError: 10058] A general er
ror has occurred.
[nQSError: 43113] Message returned from OBIS.
[nQSError: 27002] Near <NA>: Syntax error [nQSError: 26012] .
Statement preparation failed
Processed: 1 queries
Encountered 1 errors

Hi,
When u press editing data target button in session variable a new popup window opens 'Session variable Initialization block variable target'
In that Just give one variable name in User
for example in EditDatasource i have given syntax as
SELECT
FND_GLOBAL.RESP_ID,
FND_GLOBAL.RESP_APPL_ID,
FND_GLOBAL.SECURITY_GROUP_ID,
FND_GLOBAL.RESP_NAME,
FND_GLOBAL.USER_ID,
FND_GLOBAL.EMPLOYEE_ID,
FND_GLOBAL.USER_NAME
FROM DUAL
in target give EBS_RESP_ID and select ok, again open datatarget and give in User as ' EBS_REPS_APPL_ID' like wise.......
I think you can understand it and go a head.........

Similar Messages

  • A general error has occurred. [nQSError: 27002] Near local : Syntax error

    Hi
    I am using oracle BI Dashboard.
    i had configured my physical , business and presentation layers.
    when i click on the answers in the dashboard it also show me my
    new create presentation layer.
    even i can directly query my database using OBI but when i start using OBI Answers.
    i got this error
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <local>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "amount total".INVOICE_AMOUNT, STOREMAIN.STOREID FROM local')}
    SQL Issued: SELECT "amount total".INVOICE_AMOUNT, STOREMAIN.STOREID FROM locallocal is name of my presentation layer.
    while if i Issue SQL Directly it give me result.
    like
    select * from storemain
    storemain is name of table.
    Thanks
    umesh
    Message was edited by:
    Umesh Sharma
    Message was edited by:
    Umesh Sharma

    My understanding is Dim01 is taking values from the column - *"Company"."Company Name"*
    this being the case, try replacing the column name with one of the values from the column
    like @{Dim01}{value1}
    value1 being a value from the column *"Company"."Company Name"*..only then it will act as a default value
    Hope this helps...

  • Error[nQSError: 27002] Near " : Syntax error [nQSError: 26012] why?

    Hi to All
    when i try to create a RPD variable equivalent to OBIEE. It is showing the error as [nQSError: 27002] Near <"BusinessModel"."L_AP.AP_CHECKS_ALL"."CHECK_NUMBER" )In "BusinessModel"."Variables"."Var-PO Number Detail"
    Why i am getting this error. Anyybody pls shed light on this issue. My project is struck without a solution..
    Thanks in advance
    Thenmozhi

    looks like your SQL of init block is not right... can you paste the sql

  • 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

  • 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.

  • Syntax Error in 11g

    Hi Gurus,
    I am new to 11g, i am trying to display data for the year choosen in the Prompt and the year before that..the below code works in Prod but when i put the same in UAT it throws me an error:
    *"Time"."Year" BETWEEN (@{PYear}{VALUEOF(CURRENT_YEAR)}-1) AND @{PYear}{VALUEOF(CURRENT_YEAR)}*
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 59001] Subtract operation is not permitted on INTEGER, VARBINARY operand(s). (HY000)
    SQL Issued: SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7 FROM ( SELECT 0 s_0, "Human Resources - Workforce Profile"."Performance Band"."Performance Band" s_1, "Human Resources - Workforce Profile"."Time"."Year" s_2, SORTKEY("Human Resources - Workforce Profile"."Performance Band"."Performance Band") s_3, "Human Resources - Workforce Profile"."HR Event Facts"."YTD Annualized Voluntary Turnover Rate %" s_4, "Human Resources - Workforce Profile"."HR Event Facts"."YTD Employee Voluntary Termination Count" s_5, REPORT_AGGREGATE("Human Resources - Workforce Profile"."HR Event Facts"."YTD Annualized Voluntary Turnover Rate %" BY "Human Resources - Workforce Profile"."Time"."Year") s_6, REPORT_AGGREGATE("Human Resources - Workforce Profile"."HR Event Facts"."YTD Employee Voluntary Termination Count" BY "Human Resources - Workforce Profile"."Time"."Year") s_7 FROM "Human Resources - Workforce Profile" WHERE ((("Time"."Year" BETWEEN (VALUEOF(CURRENT_YEAR)-1) AND VALUEOF(CURRENT_YEAR)) AND ("Time"."Quarter" <= 'VALUEOF(CURRENT_QTR)') AND ("Time"."Month" <= 'VALUEOF(CURRENT_MONTH)'))) ) djm
    Also tried this code
    "Time"."Year" BETWEEN TIMESTAMPADD(SQL_TSI_YEAR,-1,VALUEOF(CURRENT_YEAR)@{PYear}) AND VALUEOF(CURRENT_YEAR)@{PYear}
    Throwing me an error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <@>: Syntax error [nQSError: 26012] . (HY000)
    Thanks,
    Amit

    I think in 11g things are different, none of the below query worked. I had written a query which does not throw any errors but only displays the year selected in the prompt
    *"Time"."Year" BETWEEN ('@{PYear}{VALUEOF(CURRENT_YEAR)-1}')AND '@{PYear}{VALUEOF(CURRENT_YEAR)}'* so was not able to understand what is wrong in this query.
    "Time"."Year" BETWEEN CAST('@{PYear}{VALUEOF(CURRENT_YEAR)}' AS INT)-1 AND CAST('@{PYear}{VALUEOF(CURRENT_YEAR)}' AS INT)
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)*
    "Time"."Year" BETWEEN CAST('@{PYear}{2013}' AS INT)-1 AND CAST('@{PYear}{2013}' AS INT)
    d
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)*
    "Time"."Year" BETWEEN CAST('@{PYear}{year(CURRENT_date)}' AS INT)-1 AND CAST('@{PYear}{year(CURRENT_date)}' AS INT)
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)*

  • Syntax error  in Dashboard Dimension

    Hi there,
    In BI Presentation dashboard I got an error with a column which has a Dimension, when I click on it should get me two more columns but instead I got this:
    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 error is obvious in the error details, but when I go back to my BI Answer Request my <(> looks fine...
    Please asses me.
    Regards

    Hi Mat
    this is from Error details:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Access Measures"."Early Leaver", "Attendances"."Date", "Attendances"."Employee Email", "Attendances"."Region", "Attendances"."Working Hours", "Employee Specifications"."Department", "Employee Specifications".Department, Attendances."Employee Email", Attendances.Date, CAST (MINUTE(Dim_Attendances."Working Hours")+HOUR(Attendances."Working Hours") * 60 AS DOUBLE) / 60, Dim_Attendances.Region, Fact_Access.Absent, Fact_Access.Late, HOUR(Attendances."Working Hours") * 60, MINUTE(Dim_Attendances."Working Hours"), MINUTE(Dim_Attendances."Working Hours")+HOUR(Attendances."Working Hours") * 60, cast((extract(hour from "Attendances"."Working Hours")) * 60 + (extract(minute from "Attendances"."Working Hours")) as DOUBLE PRECISION ) / nullif( 60, 0) FROM Ain_Access')}
    SQL Issued: SELECT "Access Measures"."Early Leaver", "Attendances"."Date", "Attendances"."Employee Email", "Attendances"."Region", "Attendances"."Working Hours", "Employee Specifications"."Department", "Employee Specifications".Department, Attendances."Employee Email", Attendances.Date, CAST (MINUTE(Dim_Attendances."Working Hours")+HOUR(Attendances."Working Hours") * 60 AS DOUBLE) / 60, Dim_Attendances.Region, Fact_Access.Absent, Fact_Access.Late, HOUR(Attendances."Working Hours") * 60, MINUTE(Dim_Attendances."Working Hours"), MINUTE(Dim_Attendances."Working Hours")+HOUR(Attendances."Working Hours") * 60, cast((extract(hour from "Attendances"."Working Hours")) * 60 + (extract(minute from "Attendances"."Working Hours")) as DOUBLE PRECISION ) / nullif( 60, 0) FROM Ain_Access
    And this from Session Management/ Statment
    SELECT Dim_Attendances.Region saw_0, "Employee Specifications".Department saw_1, Attendances."Employee Email" saw_2, Attendances.Date saw_3, Fact_Access.Late saw_4, "Access Measures"."Early Leaver" saw_5, Fact_Access.Absent saw_6, MINUTE(Dim_Attendances."Working Hours") saw_7, HOUR(Attendances."Working Hours") * 60 saw_8, MINUTE(Dim_Attendances."Working Hours")+HOUR(Attendances."Working Hours") * 60 saw_9, CAST (MINUTE(Dim_Attendances."Working Hours")+HOUR(Attendances."Working Hours") * 60 AS DOUBLE) / 60 saw_10, REPORT_SUM(saw_4 BY saw_0), REPORT_SUM(saw_5 BY saw_0), REPORT_SUM(saw_6 BY saw_0), REPORT_AVG(saw_10 BY saw_0), REPORT_SUM(saw_4 BY saw_0, saw_2), REPORT_SUM(saw_5 BY saw_0, saw_2), REPORT_SUM(saw_6 BY saw_0, saw_2), REPORT_AVG(saw_10 BY saw_0, saw_2), REPORT_SUM(saw_4 BY ), REPORT_SUM(saw_5 BY ), REPORT_SUM(saw_6 BY ), REPORT_AVG(saw_10 BY ) FROM Ain_Access ORDER BY saw_0, saw_2, saw_3 DESC
    hope this what u requested,
    Regards
    MS

  • Syntax Error in Filter with USING

    I have an expenditure and I need to select it for a particular group value. To display it in the OBIEE analysis, I am using a Pivot table and Summary Group is the measure label.
    My issue is I have a condition that the Expenditure for a particular summary group <> 0. Below is what I had and then received the error.
    My Filter is:
    Column = "Fact - Snapshot Aggregate"."Fye Dc Expenditure" USING ("Summary Group"."Summary Group" IN ('Agency Fees', 'IDC'))
    Operator = is not equal
    Value = 0
    When doing so i receive the following error:
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near : Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT "Fact - Aggregate"."Expenditure" USING ("Summary Group"."Summary Group" IN ('IDC')) FROM "Grants Snapshot"
    I don't see what is wrong with the syntax. Any help is appreciated

    Srini,
    Thank you for replying.
    I have tried that as well. I have FILTER("Fact - Aggregate"."Expenditure" USING ("Summary Group"."Summary Group" IN ('IDC'))). The same error occurs:
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 26002] Near <'>: End of input has been reached. Illegal syntax. (HY000)
    SQL Issued: SELECT FILTER("Fact - Snapshot Aggregate"."Expenditure" USING ("Summary Group"."Summary Group" IN ('IDC'))) FROM "Grants Snapshot"
    I have to do it again with a two word value "A B". I am finding the error is mainly happening on that one. Before I had them ("A B", "IDC") but removed "A B" and it worked. Not with just "A B" it doesn't work.

  • Error while using between operator with sql stmts in obiee 11g analytics

    Hi All,
    when I try to use between operator with two select queries in OBIEE 11g analytics, I'm getting the below error:
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <select>: Syntax error [nQSError: 26012] . (HY000)
    can anyone help me out in resolving this issue.

    Hi All,
    Thank u all for ur replies, but I dint the exact solution for what I'm searching for.
    If I use the condition as
    "WHERE "Workforce Budget"."Used Budget Amount" BETWEEN MAX("Workforce Budget"."Total Eligible Salaries") AND MAX("Workforce Budget"."Published Worksheet Budget Amount"",
    all the data will be grouped with the two columns which I'm considering in the condition.
    my actual requirement with this query is to get the required date from a table to generate the report either as daily or weekly or monthly report. If I use repository variables, variables are not getting refreshed until I regenerate the server(which I should not do in my project). Hence I have created a table to hold weekly start and end dates and monthly start and end dates to pass the value to the actual report using between operator.
    please could anyone help me on this, my release date is fast approaching.

  • Drill down Error in Report Generation

    Hi,
    I've a problem with a Report generation.
    The ERROR Message is the following one:
    Odbc driver returned an error (SQLExecDirectW).
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] Generic error. [nQSError: 27002] near <(>: syntax error [nQSError: 26012] . (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Pivot xTD"."ID Report", "Pivot xTD"."Ordine Raggruppamento 1", "Pivot xTD"."Ordine Raggruppamento 2", "Pivot xTD"."Raggruppamento 1", "Pivot xTD".Valore, "Territorio"."Coda", "Territorio"."UT", DBO.FN_GET_PIVOT_LABEL_BI("Pivot xTD"."Label",TIMESTAMP ''2011-03-28 00:00:00.000'',TIMESTAMP ''2011-03-28 00:00:00.000'',"Calendario"."Max Giorno Pivot (formato data)",''Giornaliero''), EVALUATE(''DBO.FNC_GET_DATE_LABEL_BI(%1,%2,%3,%4)'' AS CHAR(500), TIMESTAMP''2011-03-28 00:00:00'', TIMESTAMP''2011-03-28 00:00:00'', Calendario."Max Giorno Pivot (formato data)", ''Giornaliero''), EVALUATE(''DBO.FN_GET_PIVOT_LABEL_BI(%1,%2,%3,%4,%5)'' AS CHAR(500), "Pivot xTD".Label, TIMESTAMP''2011-03-28 00:00:00'', TIMESTAMP''2011-03-28 00:00:00'', Calendario."Max Giorno Pivot (formato data)", ''Giornaliero''), Territorio.Coda, case "Pivot xTD"."ID KPI" when ''LAVORATO_BO_TOTALE'' THEN ''Totale'' when ''LAVORATO_BO_RECLAMI'' THEN ''di cui Reclami'' when ''LAVORATO_BO_AC'' THEN ''Di cui AC'' when ''LAVORATO_BO_CARTACEO'' THEN ''di cui Cartaceo'' when ''LAVORATO_BO_TELEFONICO'' THEN ''di cui Telefonico'' end FROM "Reportistica Predefinita"')}
    SQL Issued: SELECT "Pivot xTD"."ID Report", "Pivot xTD"."Ordine Raggruppamento 1", "Pivot xTD"."Ordine Raggruppamento 2", "Pivot xTD"."Raggruppamento 1", "Pivot xTD".Valore, "Territorio"."Coda", "Territorio"."UT", DBO.FN_GET_PIVOT_LABEL_BI("Pivot xTD"."Label",TIMESTAMP '2011-03-28 00:00:00.000',TIMESTAMP '2011-03-28 00:00:00.000',"Calendario"."Max Giorno Pivot (formato data)",'Giornaliero'), EVALUATE('DBO.FNC_GET_DATE_LABEL_BI(%1,%2,%3,%4)' AS CHAR(500), TIMESTAMP'2011-03-28 00:00:00', TIMESTAMP'2011-03-28 00:00:00', Calendario."Max Giorno Pivot (formato data)", 'Giornaliero'), EVALUATE('DBO.FN_GET_PIVOT_LABEL_BI(%1,%2,%3,%4,%5)' AS CHAR(500), "Pivot xTD".Label, TIMESTAMP'2011-03-28 00:00:00', TIMESTAMP'2011-03-28 00:00:00', Calendario."Max Giorno Pivot (formato data)", 'Giornaliero'), Territorio.Coda, case "Pivot xTD"."ID KPI" when 'LAVORATO_BO_TOTALE' THEN 'Totale' when 'LAVORATO_BO_RECLAMI' THEN 'di cui Reclami' when 'LAVORATO_BO_AC' THEN 'Di cui AC' when 'LAVORATO_BO_CARTACEO' THEN 'di cui Cartaceo' when 'LAVORATO_BO_TELEFONICO' THEN 'di cui Telefonico' end FROM "Reportistica Predefinita"
    Can someone help me?
    Thanks a lot.
    Edited by: user13313458 on 20-mag-2011 2.58
    Edited by: user13313458 on 20-mag-2011 3.01
    Edited by: user13313458 on 20-mag-2011 3.02
    Edited by: user13313458 on 20-mag-2011 3.02
    Edited by: user13313458 on 20-mag-2011 3.03
    Edited by: user13313458 on 20-mag-2011 3.05

    Thanks a lot for your answer.
    I tried to run the query in a SQL editor, and i've noticed that there's a function that lost its own parameters:
    EVALUATE('DBO.FNC_GET_DATE_LABEL_BI(%1,%2,%3,%4)' AS CHAR(500),
         TIMESTAMP'',
         TIMESTAMP'',
         Calendario."Max Giorno Pivot (formato data)",
    So i've tried to rune the function in this way:
    EVALUATE('DBO.FNC_GET_DATE_LABEL_BI(%1,%2,%3,%4)' AS CHAR(500),
         TIMESTAMP '2011-01-01 00:00:00.000',
         TIMESTAMP '2011-01-01 00:00:00.000',
         TIMESTAMP '2011-01-01 00:00:00.000',
         'string')
    but the error is the same.
    What can i do?
    Edited by: user13313458 on 23-mag-2011 3.02

  • Error getting drill information in OBIEE 11.1.1.5

    Guru's,
    in OBIEE 11.1.1.5 I created a simple report with 3 columns: the year column from a time dimension table, a measure from a fact table and column from another dimension table. The report shows the results as expected. But when I try to drill down on a year I get the following error:
    Error getting drill information: SELECT "Time"."Cal Year" saw_0, "Requests"."Time"."Cal Half Name" saw_1, "Facts"."Requests" saw_2, "Merchant"."Merchantname" saw_3, DESCRIPTOR_IDOF("Requests"."Merchant"."Merchantname") saw_4 FROM "Requests" WHERE "Requests"."Time"."Cal Year" = 2010 =
    Error Details
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    Odbc driver returned an error (SQLExecDirectW).
    +State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <=>: Syntax error [nQSError: 26012] . (HY000)+
    +SQL Issued: {call NQSGetLevelDrillability('SELECT "Time"."Cal Year" saw_0, "Requests"."Time"."Cal Half Name" saw_1, "Facts"."Requests" saw_2, "Merchant"."Merchantname" saw_3, DESCRIPTOR_IDOF("Requests"."Merchant"."Merchantname") saw_4 FROM "Requests" WHERE "Requests"."Time"."Cal Year" = 2010 = ')}+
    It also creates an empty filter condition when drilling down: *sawx:exprsawx:comparisonequal is equal to / is in  [missing value]      [Edit Filter]*
    Also notice the extra equal sign in the generated query which is causing the problem.
    The time hierarchy is set up correctly in the repository (with keys on the levels, etc.) and no preferred drillpath or anything special.
    If you have any hint or solution for this problem please let me know.
    Kind regards,
    Quinten

    I found out this occurs when you have 'double column' columns (columns with a Descriptor ID set in the repository) in your report. When you try to drill down on any dimension you will get this error. I reproduced this on the Sample App installation. This seems like a bug.

  • Error in generating LOVs

    I have a report and I have defined few parameters and I used one parameter to generate an LOV for the report.
    But it is giving me an error?..
    Paramter name: pName java.io.IOException: prepare query failed[nQSError: 27002] Near : Syntax error [nQSError: 26012] .
    it works SQL Developer when I hard code the parameter.

    I have under LOV Tab
    1.Names
    2.Departments
    Parameters as:
    pName - (parameter type-Menu , List of values -Names, ticked on- Refresh Other parameters on Change)
    pDept -(parameter type -menu, List of values -Departments, ticked on -Multiselect)
    and I used pName in the query for 'Departments' and addressed it as :pName in the query.
    Hope I gave a clear picture.
    I didnot understand the problem. is it with hardcoding?..because, this query qorked fine when I hardcoded

  • Error while doing bursting in BI publisher 11g

    Hello Experts
    I am trying to achieve the bursting option in BI Publisher11g but it fails for teh following error while submitting through scheduler. Even though it runs ok from the BI publisher GUI.
    Any guidance.
    Job processor caused exception
    [INSTANCE_ID=sctsad20.1355774333187] [INSTANCE_JOB_ID=1006]::::ERROR_GETTING_REPORT_DATA::[INSTANCE_ID=sctsad20.1355774333187] INSTANCE_JOB_ID=[1006] oracle.xdo.XDOException: java.sql.SQLException: java.io.IOException: prepare query failed[nQSError: 43113] Message returned from OBIS.
    [nQSError: 27002] Near <d>: Syntax error [nQSError: 26012] .
    oracle.xdo.XDOException: oracle.xdo.XDOException: java.sql.SQLException: java.io.IOException: prepare query failed[nQSError:
    Close                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    Post in BIP forums for quick response
    BI Publisher
    thanks,
    Saichand

  • Column Formula with Error in OBIEE 11g

    Hello,
    On Oracle Business Intelligence Enterprise Edition 11g, I am trying to create an analysis. The database is MySQL. In the database, there is a field of type varchar(10). This
    field shows a date. In OBIEE 11g, when creating the analysis, in the Criteria tab, I choose this column (varchar) and edit the formula of it. The operation that I want to do is:
    YEAR(CURRENT_DATE) - SUBSTRING("TableName"."ColumnName" FROM 1 FOR 4) where the ColumnName is the name of the column of type varchar(10)
    but I get an error: +[nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <->: Syntax error [nQSError: 26012]+
    If I execute the same query directly on the MySQL database, I get the desired result without any error.
    Also, if I use the following formula, I also get an error:
    CAST((SUBSTRING("TableName"."ColumnName" FROM 1 FOR 4)) AS INTEGER)
    So, I am asking why the first query throws an error in OBIEE 11g but not when it runs directly on the MySQL database. Also, how can I convert in OBIEE 11g a string to integer?
    Thank you in advance,
    Griselda

    Business Intelligence Foundation wrote:
    Hi
    Im getting below error in Bi11g. core application services is down.
    Error:
    [nQSError: 46066] Operation cancelled.
    [nQSError: 46067] Queue has been shut down. No more operations will be accepted.
    If anyone Know tell me.
    Thanks and Regards
    sathyaHi sathya,
    It could mean several different things. Do you know if the administrator have shut down the services? If you have access to the server, check to see if all the services are up and running.
    Thanks,
    -Amith.

  • Error in Column Formula

    Hi All,
    I have to change the market value to a specific base currency. But i need to take the values from the FX_Rate table where we are storing current forex rates.
    I have edited the column formula of Market_value as:
    CASE "Currency".INSTRUMENT_CCY
    WHEN 'INR' THEN ("Currency".MARKET_VALUE*0.025471) ELSE "Currency".MARKET_VALUE END
    Then it works.
    But when i am trying to provide the formula that is retrieving the value from the Fx_Rate then it throws error.
    I have written a formula like this:
    CASE "Currency".INSTRUMENT_CCY WHEN 'INR' THEN ("Currency".MARKET_VALUE*(SELECT "FX_RATE".RATE FROM "FX_RATE" WHERE "FX_RATE".CCY='INR' AND "FX_RATE".CCY2='USD' ))
    ELSE "Currency".MARKET_VALUE END
    ERROR:
    \nQSError: 10058] A general error has occurred. \nQSError: 27002] Near <SELECT>: Syntax error \nQSError: 26012] . (HY000)
    SQL Issued: SELECT CASE "Currency".INSTRUMENT_CCY WHEN 'INR' THEN ("Currency".MARKET_VALUE*(SELECT "FX_RATE".RATE FROM "FX_RATE" WHERE "FX_RATE".CCY='INR' AND "FX_RATE".CCY2='USD' )) ELSE "Currency".MARKET_VALUE END, Currency.INSTRUMENT_CCY, Currency.INSTRUMENT_ID, Currency.INSTRUMENT_TYP, Currency.MARKET_VALUE FROM CurrencyPL
    Pls help me solve this problem. How can we use select statement in the column formula?
    Thanks

    First option (OBIEE 10.1.3.3).
    With EVALUATE funciton you can call user-defined functions directly from the database.
    EVALUATE('MarketValueByBase(%1,%2)',Instrument_CCY, CCY2)
    Check this thread by Venka:
    http://oraclebizint.wordpress.com/2007/09/10/oracle-bi-ee-10133-support-for-native-database-functions-and-aggregates/
    Another option (i think better !!!).
    Add FX_RATE table to repository (physical and business model)

Maybe you are looking for

  • Vista 64bit and iTunes 8.2.0.23 - interface problems

    I've had these strange iTunes interface issues ever since I moved to Vista 64bit a while ago. I can't adjust the volume using the volume slider at the top of the iTunes window (to the right of the Play buttons) The volume slider won't respond to my m

  • Spool creation for each vendor/ payment document in program RFFOUS_C

    Hi experts, Requirement is to create spool for each vendor/payment document in RFFOUS_C. What is presently happening is only one spool is created for all the payment document numbers. I need to create separate spool for each cheque and remittance adv

  • Oracle iStore 11i

    Looking for any information about the major differences between iStore 3i and iStore 11i. How hard is an upgrade? What are the major differences between integration of iStore 3i to Financials and OE and integration of iStore 11i to Financials and OM?

  • Transport table entries

    Hi, this one should be easy to solve. We have a user-defined customizing table with maintenance view. In maintenance view we defined no, or user, recording routine so that users can do adjustments without transport. For the initial distribution to a

  • [URGENT] : ERP11i Using SSO (OID)

    Greetings, I'm using ERP 11i Suite and Oracle AS 10.1.2.0.2 with ID Management 10.1.2 1. does ERP11i users roles and responcibilities can be maintained in OID, so the user from OID be authenticated and then can use the ERP modules according to his ac