ORA-00907 is missing a closing parenthesis in the value

Hi all

I am writing code for a table, the value type, but is ORA-00907 missing right parenthesis at the opening of the LOV in the window to submit competing demand.
The internal code of the defined value is as follows:

Table:_ gl_ledgers_public_all_v gl, gl_ledgers lg, gl_ledger_configurations lc

Columns in the table:_
Value: gl.name
ID: gl.ledger_id

Où :_
WHERE gl.ledger_id = lg.ledger_id 
      AND lg.configuration_id = lc.configuration_id 
      AND :$FLEX$.FND_MO_REPORTING_LEVEL='1000'
UNION ALL
SELECT name, organization_id
   FROM hr_operating_units
   WHERE :$FLEX$.FND_MO_REPORTING_LEVEL='3000'
Where FND_MO_REPORTING_LEVEL is a value which returns Char and is used by a previous setting.

I looked around for the triggers of this error (misuse apostrophes, questions of subquery...) but nothing in my case. Can someone check to see what could be the cause of this error? Thanks in advance.

Oops!
It looks like we can't use UNION / GROUP BY / SEEN in value sets' where clause article, as it implecitly by adding parentheses.
Of http://docs.oracle.com/cd/A60725_05/pdf/flex.pdf

Special treatment for WHERE the Clauses
Behind the scenes, the flexfield adds one and... clause in the WHERE clause that you set for your table validated set of values.
If your WHERE clause contains a RC, then the seal in the annex AND clause may not apply to your WHERE clause integer (without the brackets).
and could not get the desired result.
Then, flexfields put implicitly parentheses around your WHERE clause.

http://docs.Oracle.com/CD/A60725_05/HTML/comnls/us/FND/fndffm03.htm

Of http://docs.oracle.com/cd/E18727_01/doc.121/e12892/T354897T361276.htm
You can create a view with the UNION and use it in the set of values.
(Or) you will need to have an internal selection in the field of the table itself.

By
VAMSi

Tags: Oracle Applications

Similar Questions

  • Missing a closing parenthesis in the creation of these paintings

    Hi, I'm trying to create two tables below 10, those are the two that I can't understand what's wrong with.

    Thanks for any help in advance

    CREATE TABLE (BIKES

    KEY ELEMENTARY SCHOOL/BIKE_ID NUMBER (4)

    BIKE_MODEL VARCHAR2 (20).

    BIKE_CLASS VARCHAR2 (20).

    BIKE_SIZE varchar2 (4).

    BIKE_TYPE VARCHAR2 (10),

    DATE OF BIKE_PURCHASE_DATE,

    BIKE_PURCHASE_PRICE VARCHAR2 (6).

    DATE OF BIKE_SALE_DATE,

    NUMBER OF DEALER_ID (4),

    BIKE_SALE_PRICE VARCHAR2 (6).

    MANU_ID NUMBER 4,

    CONSTRAINT FK_DEALER_ID FOREIGN KEY (DEALER_ID) REFERS TO DEALER (DEALER_ID)

    CONSTRAINT FK_MANU_ID_2 FOREIGN KEY (MANU_ID) REFERS TO MANUFACTURER (MANU_ID)

    );

    also

    create table RENTALS)

    KEY ELEMENTARY/RENTAL_ID NUMBER (4)

    CUSTOMER_ID NUMBER 4,

    NUMBER OF BIKE_ID (4),

    RENTAL_TIMEOUT VARCHAR2 (5).

    RENTAL_TIMEIN VARCHAR2 (5).

    RENTAL_TIMEACTUAL VARCHAR2 (5).

    RENTAL_COST VARCHAR2 (7).

    EMPLOYEE_ID NUMBER 4,

    CONSTRAINT FK_CUSTOMER_ID FOREIGN KEY (CUSTOMER_ID) REFERS TO CUSTOMER (CUSTOMER_ID),

    CONSTRAINT FK_BIKE_ID FOREIGN KEY (BIKE_ID) REFERS TO BIKES (BIKE_ID),

    CONSTRAINT FK_EMPLOYEE_ID_3 FOREIGN KEY (EMPLOYE_ID) REFERS TO EMPLOYEE (EMPLOYEE_ID)

    );

    On the first missing a comma after '... REFERENCES DEALER (DEALER_ID).

    The second is because one has failed.

  • is missing a closing parenthesis in create materialized view statement

    Hi, I am using oracle 10g R2 and try to create a view of materalized with the following statement:
    CREATE MATERIALIZED VIEW MVT_DEC_TAB USING INDEX REFRESH FAST ON COMMIT AS 
    select i.rowid as ind_rowid,c.rowid as indc_rowid,r.rowid as r_rowid,b.rowid as b_rowid,brk.rowid as brk_rowid,
    i.name,i.sname,i.address,i.tel,i.fax,i.email,
    DECODE(c.BRKNO,null,0,1) AS DEC_BRK,
    TO_TIMESTAMP(NVL(VEKDOV,'2001/01/01')||' 12:00:00','YYYY/MM/DD HH:MI:SS'),
    DECODE(c.brkno,null,DECODE(c.ncmpcode,null,c.vekdov,b.bcarddov),brk.validitydov)
    from indiv i,indivcoding c
    LEFT OUTER JOIN BROKER brk ON brk.brkno = c.brkno
    LEFT OUTER JOIN CORPORAT r
    ON c.ncmpcode=r.cmpcode INNER JOIN BCARD b ON b.bcardno=r.bcardno
    where c.typeact=2  
    and c.natcode=i.natcode
    and c.brkno is not null or c.ncmpcode is not null or c.nnatcode is not null
    but I get an error message:
    where c.typeact = 2
    ERROR on line 11:
    ORA-00907: lack of right parenthesis

    which makes no sense because if I run the sql code of the materialized view, it runs normally.
    I need to know what the causing this can someone help?

    Do not use the "LEFT OUTER JOIN" ANSI syntax in your CREATE MATERIALIZED VIEW definition.
    Specify

    FROM indiv i,indivcoding c, broker brk, corporat r
    WHERE brk.brkno(+) = c.brkno
    AND c.ncmpcode(+) = r.cmpcode
    

    OR

    FROM indiv i,indivcoding c, broker brk, corporat r
    WHERE c.brkno = brk.brkno(+)
    AND r.ncmpcode = c.cmpcode(+)
    

    (I find it more readable).

    Hemant K Collette

  • Node Firmula is missing a closing parenthesis

    The code following the formula node

    If (Res == 'Full')
    {
    MS1 = 0;
    MS2 = 0;
    McStep = 1;
    }

    Generates this error.

    Error on line 1 is marked by a character ' # ': "if (Res == # 'Full') {MS1 = 0;".   M '.

    RES is a digital Cntrol with the properties of the Enum.

    It is not obvious to me why this code produces a right parenthesis miiising error. What does take to eliminate this error?

    Howard

    Is not to complain about this parenthesis, it is complaing to "Full".  You need to compare the number.  Of course, you could code in LabVIEW instead of a node thus forumla.

  • Firefox restore closed tabs when the value "show my home page".

    I put the option when Firefox starts: "show my home page". I expect to get a tab open, showing my home page. Instead, I get a bunch of tabs that were open when I closed Firefox during reconfiguration. This includes my home page under the first tab - but maybe it's because that's how things were when you saved the info. I was reconfiguration because I just updated Zone Alarm and, as usual, he fiddled with my settings. (Grrr!)

    Found the answer. About: config, browser.startup.homepage had all the tabs that I was getting, not only the page I requested. I put it by clicking on 'current use' from the relevant Panel. Fixed by changing the string for browser.startup.homepage, he likely could be fixed by closing unwanted and then put tabs in homepage again.

  • ORA-00907: lack of right parenthesis

    Hi all

    on 11.2.0.4 on Win 2008

    When executing:

    Select creele, TRUNC ((creele, 'DD')) of loans;

    I get:

    ORA-00907: missing a closing parenthesis (on column 28).

    Any idea?

    Let's see creele format:

    Select creele loans;

    CREELE

    --------

    10/11/14

    21/10/14

    Thank you.

    Can you tell me please why column A and B have different results:

    Select trunc (AVG (trunc(rendule,'DD')-trunc(creele+1,'DD')), 2) A.

    TRUNC (AVG (trunc(rendule,'DD')-trunc(creele,'DD') + 1), (2) B

    details, loans

    WHERE details.emprunt = emprunts.numero

    and borrowing. NUMBER = dΘtails. LOAN

    AND details.rendule is not null

    GROUP Member;

    Because you say to do different things. Suppose that there is just a line in your table, with a rendule of 30/04/2015 and a creele from 20/04/2015.

    A = 30/04/2015 - (20/04/2015 + 1) = 30/04/2015 - 21/04/2015 = 9

    B = 30/04/2015-4/20/2015 + 1 = 10 + 1 = 11

    If you want to arithmetic operations to be performed in a particular order, it is best to use parentheses to make the order without ambiguity. This would return the same value as the A (if that's what you want):

    TRUNC (AVG (trunc(rendule,'DD') - (TRUNC(creele,'DD') + 1)), 2).

  • GREP style - apply character style to the opening and closing parentheses surrounding a 0 (but not 0)

    Hello

    I'm relatively new to GREP style and will have to put in shape about 600 postcards containing various data (via the merger of data), including phone numbers. Consider the following data set:

    1. + 44 (0) 123467800

    2 (©) copyright

    3. (name of the program)

    I want to tell Indesign to stagger the opening and the closing parenthesis of the baseline (with a character style), but only the bracket that include a 0 and, possibly, without affecting the 0 value between them.

    Seems like an easy task, but it is impossible to find a solution. Could someone help?

    Thank you very much

    Antonio

  • Escape the open and closed parenthesis characters

    I'm close to finishing a script that could find - at the end of a graf - text in brackets and throw on top of the graf.

    However, when there is text between parenthesis in the middle of the graf, I have problems with a negative lookahead.   I can't get GREP jump spent "(example of text between brackets)" in the middle of the graf. "

    Example of problem:

    Here is the text of example of what I want to accomplish.  Notice that it has (example of text in brackets) in the middle of the graf.  It also has the text at the end of the graf in parens I want to capture. (xxxxx/xxxxx xxxxxx)

    Example of Solution:

    XXXXX/xxxxx xxxxxx

    Here is the text of example of what I want to accomplish.  Notice that it has (example of text in brackets) in the middle of the graf.  It also has the text at the end of the graf in parens I want to capture.

    If the closing parenthesis is the last thing in your paragraph, you can use (------([^ ()] +?-)) $

  • ORA-00907 MISSING RIGHT PARENTHESIS

    Hi all

    The query

    FLASHBACK TABLE schema.table_name to TIMESTAMP (January 18, 2008 18:55:58 ',' MON-DD-YYYY HH24:MI:SS');


    gives me error

    ORA-00907 MISSING RIGHT PARENTHESIS

    WHAT AM I MISSING HERE?


    kAI

    WHAT AM I MISSING HERE?

    Try

    flashback table schema.table_name to timestamp( to_timestamp('18-JAN-2008 18:55:58','DD-MON-YYYY HH24:MI:SS'));
    
  • Using DBMS_METADATA. GET_DDL get error: ORA-00907: lack the right parenthesis

    Hello

    I try to extract the schema DDL to a base (10.2.0.4.0 - 64-bit Enterprise Edition on Solaris 10). I ran the query below and get an ORA-00907: parenthesis right absent error.

    SELECT DBMS_METADATA. GET_DDL (REPLACE(object_type,' ','_') AS object_type, object_name) FROM user_objects WHERE object_type NOT IN ('TABLE_PARTITION', "INDEX_PARTITION", "LOB");

    This is the output when executing the above in the sqlplus worksheet

    Select DBMS_METADATA. GET_DDL (REPLACE (object_type, ", '_') as object_type, object_name) FROM user_objects if object_type in ('TABLE_PARTITION',"INDEX_PARTITION","LOB")
    *
    ERROR on line 1:
    ORA-00907: lack of right parenthesis

    remove the where the clause gives the following:

    Select DBMS_METADATA. GET_DDL (REPLACE (object_type, ", '_') as object_type, object_name) FROM user_objects
    *
    ERROR on line 1:
    ORA-00907: lack of right parenthesis

    Pointers would be welcome. I know I could get the DDL using exp/imp, but I'd like to understand why I get the error of missing parenthesis.

    see you soon,

    Ewan

    SELECT DBMS_METADATA. GET_DDL (REPLACE(object_type,' ','_') AS object_type, object_name) FROM user_objects WHERE object_type NOT IN

    You don't need an alias here. Getting rid of the "as long as object_type' and it should work.

  • ERROR: in the first line ORA-00907 missing paréntesis

    He comes to the table I was trying to create:

    create table (Department)
    dept_id integer not null,
    dept_name varchar2 (20) not null,
    key constraint primary pk_departement (dept_id));

    The response was:

    ERROR at the forefront
    ORA-00907 closing missing paréntesis

    Does someone of you can give me a help?

    Thank you very much

    Nicolò

    Using the exact code to Sean:

    SQL> create table department (
      2  dept_id integer not null,
      3  dept_name varchar2(20) not null,
      4  constraint pk_departement primary key (dept_id));
    
    Table created.
    

    What tool do you use? You can paste the session?

  • ORA-00907 - "lack the right parenthesis.

    Hello

    I am trying to create a procedure to add table scores each month. This is my code:

    create or replace procedure add_partitions

    as

    v_partition all_tab_partitions.partition_name%type;

    v_limit varchar2 (50);

    LONG v_sql;

    Start

    Select to_char (trunc (add_months(sysdate,1), 'MM'), 'Mon_YYYY')

    in v_partition

    Double; -napr. 072014

    Select to_char (trunc (add_months(sysdate,2), 'MM'), 'DD-MM-YYYY')

    in v_limit

    Double; -napr. 08/01/2014

    v_sql: = ' ALTER TABLE CENTRUMADMIN. AUD$ _BACKUP ADD PARTITION '. v_partition | «VALUES LESS THAN (' |)» v_limit | ') tablespace BACKUP_AUDIT';

    immediately run v_sql;

    end;

    /

    The procedure is compiled without errors, but when I run it I get this error:

    ORA-00907 - "lack the right parenthesis.

    After some tests, I am sure that this problem is here: VALUES LESS THAN (' | v_limit |) (')... but I'cant understand whats wrong

    Any ideas? Thanks in advance

    Honza

    Hi Mika,

    Try

    VALUES LESS THAN ("' | v_limit |) (') - three times - 2 gives you a ' in your statement - the 3rd chain delimited

    concerning
    Kay

  • missing closing parenthesis when creating foreign key

    Schema1.Table1 ALTER TABLE ADD (CONSTRAINT test_FK

    FOREIGN KEY (test)

    REFERENCES schema1.table2 (test)

    USING INDEX TABLESPACE indextb);

    With the HELP of INDEX TABLESPACE indextb)

    *

    ERROR on line 4:

    ORA-00907: lack of right parenthesis

    Please help, I tried several times. But I still get the same error

    Delete the TABLESPACE of INDEX clause to HELP.  It is not valid here.

    Create a foreign key does not implicitly create an index.  Since there is no index, there is no tablespace to worry.  As a general rule, you don't want to create an index to support the how foreign key constraint there a sense perhaps specify a tablespace.

    Justin

  • FrameMaker 10 - is there a way to search for missing, either open or closed parentheses?

    Is there a way to FrameMaker 10 seeking a missing opening or a closing parenthesis?

    Should I do a search for each opening parenthesis and see if there is a closing parenthesis?

    Then repeat the search for a closing parenthesis see if there is an open parenthesis?

    Is this the only way?

    Cut using intelligent quote of the spell checker:

    If the document does not double quotes...
    Edition > find/replace:
    Change all (to"
    (Change All) to.

    Those are typing quotes.
    Edition > check spelling:
    In all cases with the 'chain', click on [OK]
    On all instances with 'string, type (string) and click [OK].
    Edition > find/replace:
    Change all-')
    Change all------' to)

    Those are on the left and right of the double quotes.

    Yes, you have to hit every instance, but it will be click-to-continue except incompatibility.

  • ORA-00907: lack the right parenthesis when using Group by clause with xmlagg

    I have the following query and I am getting ORA-00907 error when I use the clause with the xmlagg function group.
    select xmlelement("Mitigation",
                    xmlelement("m_szMethodName",tm.DisplayName),
                    xmlelement("SubstanceInterferenceProtocolList",
                                (select xmlagg(xmlelement("MitigationProtocol",
                                        xmlelement("m_szMethodName",tm.DisplayName),
                                        xmlelement("m_szInterferenceProtocolName",tmp.protocol_name),
                                        xmlelement("m_szInterferenceSubstance",tmp.intf_mtrl_prod_code),
                                        xmlelement("m_ProtocolParameters",
                                            xmlelement("m_szProtocolName",tmp.protocol_name),
                                                xmlelement("m_Consumables",
                                                    xmlelement("Consumable",
                                                        xmlelement("m_szConsumId", xrl.rgnt_pack_name),
                                                        xmlelement("m_szProductCode",xrl.pack_prod_code),
                                                        xmlelement("m_nVolume",tmp.fluid_vol),
                                                        xmlelement("m_szProtocolStep",xps.protocol_step_name))),
                                                    xmlelement("m_ProtParamList",
                                                        xmlagg(
                                                        xmlelement("ParameterValues",
                                                            xmlelement("m_szProtocolName",tmp.protocol_name),
                                                            xmlelement("m_Time",xpsd.parameter_ntime_value))
                                                        group by tmp.ccd_test_id,tmp.intf_mtrl_prod_code)
                    )))
                    order by tmp.ccd_test_id, tmp.intf_mtrl_prod_code, xps.protocol_step_intprotocolstep )
                    from XPR_tdef_mitigation_protocol tmp, xp_reagentlist xrl,
                    xpr_protocol_settings xps, xpr_protocol_settings_default xpsd
                    where tmp.ccd_test_id = tm.ccd_test_id
                    and tmp.ccd_test_id = xrl.ccd_test_id
                    and tmp.pack_prod_code = xrl.pack_prod_code
                    and tmp.intf_type = 1
                    and xps.protocol_name = xpsd.protocol_name
                    and xps.protocol_step_name = xpsd.protocol_step_name
                    and xps.ps_action_parameterlist = xpsd.ps_action_parameterlist
                    and xps.protocol_name =  tmp.PROTOCOL_NAME
                    )))
    from XPtoXPRTdef_defn_mapping tm
    where tm.DisplayName = 'SYPH'
    If I remove the clause xmlagg and the group by clause, the query works well and not give me the result.
    But in this code XML, the output format is incorrect for my application.

    Could someone help out here?

    Now my problem is that this unique coating is more than 32767 characters and utl_file can write 32767 bytes per line.
    Someone deal with this?

    Serialize the output as CLOB and DBMS_XSLPROCESSOR.clob2file procedure used to write to a file:

    DECLARE
      xml_output CLOB;
    BEGIN
      SELECT XMLElement("Department",
               XMLAgg(
                 XMLElement("Employee",e.job_id||' '||e.last_name)
                 ORDER BY e.last_name
               )
             ).getClobVal() AS "Dept_list"
      INTO xml_output
      FROM hr.employees e
      WHERE e.department_id = 30 OR e.department_id = 40;
    
      DBMS_XSLPROCESSOR.clob2file(xml_output, 'XML_DIR', 'test.xml');
    END;
    /
    

Maybe you are looking for