KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE

제품 : FIN_AP
작성날짜 : 2002-12-02
KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
===================================================================
PURPOSE
Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
Problem Description
Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
ORA-20000: APP-00001: Unable to find message:
AR_NO_ROW_IN_SYSTEM_PARAMETERS
ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
ORA-06512: "APPS.ARP_UTIL", 줄 29에서
ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
ORA-06512: 줄 1에서
Workaround
Solution Description
1) fnd_client_info.set_org_context(<org_id>);
or
2) v_org_id varchar2(10);
v_org_id := fnd_profile.value('ORG_ID');
fnd_client_info.set_org_context(v_org_id);
.rdf 의 경우 : Before Report Trigger 에 추가
.sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
Reference Documents
-------------------

제품 : FIN_AP
작성날짜 : 2002-12-02
KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
===================================================================
PURPOSE
Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
Problem Description
Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
ORA-20000: APP-00001: Unable to find message:
AR_NO_ROW_IN_SYSTEM_PARAMETERS
ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
ORA-06512: "APPS.ARP_UTIL", 줄 29에서
ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
ORA-06512: 줄 1에서
Workaround
Solution Description
1) fnd_client_info.set_org_context(<org_id>);
or
2) v_org_id varchar2(10);
v_org_id := fnd_profile.value('ORG_ID');
fnd_client_info.set_org_context(v_org_id);
.rdf 의 경우 : Before Report Trigger 에 추가
.sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
Reference Documents
-------------------

Similar Messages

  • ERROR at line 1: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-10700: preference does not exist: global_lexer ORA-06512: at "CTXSYS.DRUE", line 160 ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    database version 11.2.0.4
    rac two node
    CREATE INDEX MAXIMO.ACTCI_NDX3 ON MAXIMO.ACTCI
    (DESCRIPTION)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('lexer global_lexer language column LANGCODE')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    Like the error message says, you don't have a global_lexer.  So, you need to create a global_lexer and that lexer must have at least a default sub_lexer, then you can use that global_lexer in your index parameters.  Please see the demonstration below, including reproduction of the error and solution.
    SCOTT@orcl12c> -- reproduction of problem:
    SCOTT@orcl12c> CREATE TABLE actci
      2    (description  VARCHAR2(60),
      3      langcode     VARCHAR2(30))
      4  /
    Table created.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366
    SCOTT@orcl12c> -- solution:
    SCOTT@orcl12c> DROP INDEX actci_ndx3
      2  /
    Index dropped.
    SCOTT@orcl12c> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('global_lexer', 'multi_lexer');
      3    CTX_DDL.CREATE_PREFERENCE ('english_lexer', 'basic_lexer');
      4    CTX_DDL.ADD_SUB_LEXER ('global_lexer', 'default', 'english_lexer');
      5  END;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    Index created.

  • Desktop apps: Report Builder 3.0 (x86) that does not let me allow query result which I created Customers Report. Here is the error message returns.:

    Desktop apps: Report Builder 3.0 (x86) that does not let me allow query result which I created Customers Report. Here is the error message returns as following.
    Database query from: AdventureWorks2014
    System.Web.Services.Protocols.SoapException: The permissions granted to user 'SQLServer2014\Mubs' are insufficient for performing this operation. ---> Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to
    user 'mujb-HP\mujb' are insufficient for performing this operation.
       at Microsoft.ReportingServices.Library.ReportingService2010Impl.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
       at Microsoft.ReportingServices.WebServer.ReportingService2010.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
    The permissions granted to user 'mujb-HP\mujb' are insufficient for performing this operation.
    Is there anybody help me out, pl
    My MSSQL Server express 2014 edition x64  and My desktop "Report Builder (RB) 3.0' is 32bit (x86).
    Does Report Builder x64 exist? I didn't see anywhere so I downloaded x86 RB

    Hi mujb,
    Per my understanding you are using the report builder 3.0 to design the report and when you click the query designer button to execute the query you got the error message above, right?
    I have tested on my local envornment and your issue can be caused by the user "SQLServer2014\Mubs"  and "mujb-HP\mujb"  haven't grant permission to the report server or the shared dataeource/dataset if you have used this.
    I would like to confirm if you have assigned both the Item-Level and System-Level role of the user above to sucessfully access the report server, If you haven't grant any access to the above user and when you connect to the report server in the report builder,
    you may got the error message:
    More details information below for your reference:
    Please execute the query in the microsoft SQL Server Management Studio to see if you have permission to execute the query.
    If the query works fine in step1, please run the report builder as Administrator and if you are using the shared datasource/dataset the issue can be cause by the you haven't grant access the share datasource, Double click to open the Datasource
    and click the "Test Connection" as below to test if it can connect successfully:
    If the "Test Connection" failed, please click the shared datasource/dataset on Report Server to check if you have grant correct permission.
    Related information about the grant permission to report server for your reference:
    https://msdn.microsoft.com/en-us/library/ms156034.aspx
    http://www.allenkinsel.com/archive/2013/01/adventures-in-ssrs/
    If your issue still exists, please try to provide more details information.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Procedure Problem ORA-20000 / ORA-20001

    Hello,
    I have problems with the following procedure - in both cases the problem seems to be in line 115 (RAISE;):
    CREATE OR REPLACE PROCEDURE EFWP."P_BUILD_VOP_ENVELOPE"(
    paramPlanungId LONG,
    paramEnvelopeWKTPolygon VARCHAR)
    AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    -- bereits bestehende alte Daten löschen
    DELETE
    FROM EFWP.TEFWP_VOP_PL T0
    WHERE T0.PLANUNG_ID = paramPlanungId;
    -- neue Daten erstellen
    INSERT
    INTO EFWP.TEFWP_VOP_PL
    WID_ID,
    OBJEKT,
    GEMOESTAT,
    WIDMUNG,
    STAND,
    EMASST,
    BESCHTXT,
    BEZEICHNG,
    FESTLEGUNG,
    FESTLEG02,
    ZAEHLER,
    ANZ_FRZTWS,
    ANZ_BETTEN,
    ANZ_RAEUME,
    FL_KUNDEN,
    FL_KUNDLM,
    BETRIEBTYP,
    SV_EBENE,
    SV_EBENENR,
    SV_KENN,
    BEFRISTUNG,
    CREATEUSER,
    CREATETIMESTAMP,
    UPDATEUSER,
    UPDATETIMESTAMP,
    EFWP_ID,
    STATUS,
    PLANUNG_ID,
    SHAPE,
    OBJECTID
    SELECT FW.WID_ID,
    FW.OBJEKT,
    FW.GEMOESTAT,
    FW.WIDMUNG,
    FW.STAND,
    FW.EMASST,
    FW.BESCHTXT,
    FW.BEZEICHNG,
    FW.FESTLEGUNG,
    FW.FESTLEG02,
    FW.ZAEHLER,
    FW.ANZ_FRZTWS,
    FW.ANZ_BETTEN,
    FW.ANZ_RAEUME,
    FW.FL_KUNDEN,
    FW.FL_KUNDLM,
    FW.BETRIEBTYP,
    FW.SV_EBENE,
    FW.SV_EBENENR,
    FW.SV_KENN,
    FW.BEFRISTUNG,
    FW.CREATEUSER,
    FW.CREATETIMESTAMP,
    FW.UPDATEUSER,
    FW.UPDATETIMESTAMP,
    FW.EFWP_ID,
    FW.STATUS,
    paramPlanungId,
    SDE.ST_DIFFERENCE (FW.SHAPE, PB.SHAPE),
    DBATOOLS.F_GET_NEXT_OBJECTID('EFWP', 'TEFWP_VOP_PL')
    FROM
    (SELECT T0.WID_ID,
    T0.OBJEKT,
    T0.GEMOESTAT,
    T0.WIDMUNG,
    T0.STAND,
    T0.EMASST,
    T0.BESCHTXT,
    T0.BEZEICHNG,
    T0.FESTLEGUNG,
    T0.FESTLEG02,
    T0.ZAEHLER,
    T0.ANZ_FRZTWS,
    T0.ANZ_BETTEN,
    T0.ANZ_RAEUME,
    T0.FL_KUNDEN,
    T0.FL_KUNDLM,
    T0.BETRIEBTYP,
    T0.SV_EBENE,
    T0.SV_EBENENR,
    T0.SV_KENN,
    T0.BEFRISTUNG,
    T0.CREATEUSER,
    T0.CREATETIMESTAMP,
    T0.UPDATEUSER,
    T0.UPDATETIMESTAMP,
    T0.EFWP_ID,
    T0.STATUS,
    SDE.ST_INTERSECTION(SDE.ST_POLYGON( paramEnvelopeWKTPolygon , DBATOOLS.F_GET_SRID('EFWP', 'TEFWP_PL')), T0.SHAPE) AS SHAPE
    FROM EFWP.TEFWP_PL T0
    WHERE T0.STATUS = '1'
    AND SDE.ST_INTERSECTS(T0.SHAPE, SDE.ST_POLYGON( paramEnvelopeWKTPolygon , DBATOOLS.F_GET_SRID('EFWP', 'TEFWP_PL'))) = 1
    ) FW,
    EFWP.TEFPBER_PL PB
    WHERE PB.PLANUNG_ID = paramPlanungId ;
    COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
    -- log_error( .... );
    RAISE;
    /* this is crucial, you MUST re-raise the exception */
    END;
    The problems:
    1. CALL EFWP.P_BUILD_VOP_ENVELOPE(629,'POLYGON ((84162.4 238985.685, 84162.4 239479.37, 84616.79999999999 239479.37, 84616.79999999999 238985.685, 84162.4 238985.685))'); ==>
    sqldeveloper: no problems
    toad:
    CALL EFWP.P_BUILD_VOP_ENVELOPE(629,'POLYGON ((84162.4 238985.685, 84162.4 239479.37, 84616.79999999999 239479.37, 84616.79999999999 238985.685, 84162.4 238985.685))')
    Error at line 1
    ORA-29903: Fehler bei der Ausführung von Routine ODCIIndexFetch()
    ORA-20001: OCI-21500: Interner Fehlercode, Argumente: [17112], [0x001DEF178], [], [], [], [], [], []
    ORA-06512: in "EFWP.P_BUILD_VOP_ENVELOPE", Zeile 115
    2. call efwp.p_build_vop_envelope (1006, 'POLYGON ((84890.215 238977.38, 84890.215 239301.585, 85119.685 239301.585, 85119.685 238977.38, 84890.215 238977.38))' ); ==>
    sqldeveloper:
    call efwp.p_build_vop_envelope (1006, 'POLYGON ((84890.215 238977.38, 84890.215 239301.585, 85119.685 239301.585, 85119.685 238977.38, 84890.215 238977.38))' )
    Fehlerbericht:
    SQL-Fehler: ORA-29902: Fehler bei der Ausführung von Routine ODCIIndexStart()
    ORA-20000: Failed to get OCI Memory
    ORA-06512: in "EFWP.P_BUILD_VOP_ENVELOPE", Zeile 115
    29902. 00000 - "error in executing ODCIIndexStart() routine"
    *Cause:    The execution of ODCIIndexStart routine caused an error.
    *Action:   Examine the error messages produced by the indextype code and
    take appropriate action.
    Any ideas? Thanks for your help!
    Roland
    toad: no problems ("Method called.")

    The problems are likely related to using the LONG data type.
    Your code defines:
    paramPlanungId Long;.. and then uses it as a bind variable:
    WHERE T0.PLANUNG_ID = paramPlanungId;The LONG data type dates back to Oracle 7. Since Oracle 8, Oracle has specifically recommend NOT using it. In Oracle 11g, there is no relevant reasons to use it. Even legacy issues should have been addressed through versions 8 to 10g.
    As TOAD and SQL-Developer do not support LONGs as bind variables, and as you are supplying the value as a number, implicit number to long conversion is likely happening. This could be part of the issue that triggers the exception.
    Simple and recommended solution - remove the LONG data type from your tables and your code.

  • 'ORA-01722: Invalid number' error message in BeX

    Hi Gurus,
    We have a new report built on top of a DSO. When I run this report, I get the message  'ORA-01722: invalid number'. On furthur testing, I found that when I move two objects 'Date Changed' & 'Time Changed' [both are 'Z' objects we created] from the 'Rows' to 'Free Characteristics', the report runs as expected. So the issue seems that it is with these two objects. One of them is of type 'DATS' & the other of type 'TIMS'. These two are mapped to respective 'Date' & 'Time' fields in SAP R3.
    SID's exists in the Master Data tables for both these objects. The data for both the fields contains the normal 'Date' & 'Time' values.Running the query using RSRT shows the same error message. The RSRV check on this report says that 'Query execution not possible as the variables contain invalid values'.
    I have seen a couple of other posts in SDN with similar issues but none of them have a solution identified so far. Just wanted to check if anyone who has experienced this issue have been successfully able to resolve it?
    Thanks
    Arvind

    Hi Ravi,
    Thanks for your prompt reply. Yes, the 'Date' & 'Time' objects have 0DATE & 0TIME as reference objects.
    I couldn't find any invalid vallues for these date and time fields. If invalid values were present, wouldn't the DSO activation have failed?
    Thanks
    Arvind.

  • How to open report.pdf file? getting error message file cannot be previewed pdf preview handler

    how can I open a report.pdf file that shows error: file cannot be previewed because of an error w/ pdf preview handler

    Hi pfmercerville,
    If you are running the 64-bit version of Windows 7 (or Vista), you will find that your PDF files do not preview in Windows Explorer as they do in the 32-bit versions. Instead, all you see is a message stating that This file can’t be previewed. To enable this functionality on your 64-bit operating system, follow these steps.
    1. Click the Orb (Start Button).
    2. Go to the Search programs and files textbox and input regedit.
    3. Select regedit.exe from the results.
    4. When the UAC prompt appears, click the Yes button.
    5. In the left pane of the Registry Editor, go to (and select):&#8232;
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{DC6EFB56-9CFA-464D-8880-44885D7DC193}
    6. In the right pane, locate AppID.
    7. Change AppID value to {534A1E02-D58F-44f0-B58B-36CBED287C7C}.
    8. Restart your computer for the change to take affect.
    Regards,
    Rave

  • Need ABAP table/Report for getting trace of error messages

    Hi experts,
    My requirement is to display Detailed Error trace text of the error message, on my screen.
    Now i need to know, which tables in XI it is stored or is there any abap report available that can provide thsi information.
    any function module ??
    thanks in advance for your help.
    Regards,
    Priyanka

    Hi,
    Check these out.
    http://wiki.sdn.sap.com/wiki/display/XI/XI+Tables
    Cheers,
    Earlence

  • Custom reports do not run with error message: Routine FDPREP cannot read ..

    Hi
    Can anybody help me with this issue pls?
    The dev system is cloned from production a few days ago. After running the post clone procedure, the dev is working fine except when we are trying to run custom reports, it errorred out with error message - Routine FDPREP cannot read the file /fmis/11.5.0/reports/US/POXPRPO1.rep. I have checked the env files, and they seem ok. $CUSTOM_TOP is set to the correct value. Other standard Oracle reports are running properly. The custom report file extension is in low case (.rdf). I've even tried to compile the report manually by using rwcon60.sh, the rep file was created under that folder but concurrent manager is still giving the same error message. So I am suspecting whther it is the path issue, as from the error message we can see up there, it is not showing the absolute path. Can anyone pls shed some lights on this for me?
    Thanks!
    Liang

    Hi hsawwan,
    Echo $FMIS_TOP(Custom Top) returns /global/app/fdev/home/fdevapp/findevappl/fmis/11.5.0, which is the correct path.
    Interesting thing is I checked the custom forms and they are working properly , our current configuration is form server and web server are sitting on one node, and CM, admin and database are sitting on the other node. So it seems it is the CM node settings caused the problem. However, I've just compared the APPSORA.env, customfindev_XXXXXX.env $FMIS_TOP (Custom Top) on the two nodes, and nothing seems out of ordinary.
    Thanks,
    Liang

  • IDVD reports strange insufficent disk space error message

    I want to create a slide show DVD. When I open the project "Project Information" shows DVD capacitiy 0.6GB of 4.2 GB used. That seems ok, but when I try to save as Image I get an "insufficent disk space" error message (On the disk there are 28 GB free). After trying to save the Image "Project Information" says
    5084435456,8 GB used - what's going on?
    MacBook   Mac OS X (10.4.7)  

    Are you doing the Save as Disk Image... correctly? This seem really odd.
    File/Save as Disc Image...
    http://docs.info.apple.com/article.html?artnum=164927
    This will isolate any encoding/burning issues you may encounter. Once the disc image is created, double-click the .img and burn the virtual disc that should appear on your desktop, using Toast to burn the DVD. Disk Utility to burn the .img file. Usually, you can select a burning speed in Disk Utility.
    There are variations to this process based on which OS X you are using...
    Open Disk Utility (in Utilities folder in Applications folder), click on the virtual disc (maybe the .img) in the left-hand window. Click the Burn icon. A new window should drop down and your SuperDrive tray will open after clicking the Burn icon. Insert a recordable DVD. (Verbatim DVD-R preferred by me.) Click the Close button. Wait. Select a burn speed. If you hold your mouse cursor over the pop-up it says: "Select a slower speed to work around burn failures," so select 4x or slower for best results. Then click the Burn button.
    -->If the virtual disk selection won't allow you to click the Burn icon, use the .img file instead. This may have changed in 10.3.9 and did change in Tiger.
    Also, you can use DVD Player to play the virtual disk to check your iDVD project before burning to DVD. Launch DVD Player. File/Open VIDEO_TS (Open DVD Media... in Player 4.6). Find the VIDEO_TS folder and open that. (The audio folder is for DVD-Audio disks.)
    http://docs.info.apple.com/article.html?artnum=93006

  • Err while creating Index - ORA-29855: ,ORA-20000

    Got err while creating index. We moved the Table to new tablespace and drop the index. While creating index got this err. Col1 is clob datatype.
    SQL> CREATE INDEX kc_ctx_RAWTEXT ON RAWTEXT
    2 (col1)
    3 INDEXTYPE IS CTXSYS.CONTEXT
    4 PARALLEL ;
    CREATE INDEX KC_CTX_RAWTEXT ON RAWTEXT
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drvddl.ParallelIndexPopulate
    ORA-12801: error signaled in parallel query server P020
    ORA-20000: Oracle Text error:
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.DRVPARX", line 36
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364

    remove parallel clause and try again

  • Cannot create ctxsys.context type index : ORA-29855 ORA-20000 DRG-11206 ...

    Hello everybody,
    I have from time to time to create Intermedia or Oracle text indexes in Oracle databes, most 10g ones.
    Today I did it in a Oracle 10g under Linux RHEL 5, with this few usual commands:
    1) connect SYS/**** as SYSDBA;
    2) CREATE TABLESPACE "DRSYS" LOGGING DATAFILE '/path_to_index_files/drsys.ora' SIZE 25M REUSE AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO;
    3) @$ORACLE_HOME/ctx/admin/catctx.sql ctxsys DRSYS TEMP NOLOCK
    4) connect ctxsys/ctxsys;
    5) @$ORACLE_HOME/ctx/admin/defaults/drdeff.sql;
    6) connect sa/*****;
    7) CREATE INDEX pj_index ON sa.tpiecejointe(pjcontenu) INDEXTYPE IS ctxsys.context parameters ('sync (every "SYSDATE+12/24")');
    My issue occured at the 7th step:
    CREATE INDEX pj_index ON sa.tpiecejointe(pjcontenu) INDEXTYPE IS ctxsys.context parameters ('sync (every "SYSDATE+12/24")')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-11206: user filter command /dk2/app/oracle/ctx/bin/ctxhx could not be
    executed
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
    /dk2/app/oracle/ctx/bin/ctxhx is ok and may be executed by anyone.
    I found no reason for this problem on the Web.
    If somebody can help, thanks a lot...
    Thomas

    Hi,
    for using the sync parameter, the user needs to be granted to execute a job. Oracle makes a job to do the sync. So issue:
    GRANT CREATE JOB TO SMADMIN;
    from SYS/SYSTEM.
    Herald ten Dam
    superconsult.nl

  • ORA-00936:missing expression Error

    I have what I would think was a simple SQL for Excel; but for some reason I keep getting the ORA-00936 missing expression error message.
    The SELECT AND FROM of the SQL are no problem. It's the Where portion of the SQL statement where it messes up. I have many user input required parameters. But I tested out the same SQL statement in Toad for Oracle and it worked fine.
    I'm wondering at this point if it's just too much for Excel.
    Here's the code from the "Where" portion of the SQL that worked in Toad for Oracle. I believe I have to change some of the syntax to get it to work in Excel; and I'm wondering if anyone knows the true correct way to do this. Because I'm also wondering if that's where I'm going wrong.
    Anyway, here's the code:
    WHERE (    (a_compl_summary.product_division = 'CP')
            AND (    a_compl_summary.entry_date >= :date1
                 AND a_compl_summary.entry_date <= :date2
            AND (   a_compl_summary.product_family LIKE :pf1
                 OR a_compl_summary.product_family LIKE :pf2
                 OR a_compl_summary.product_family LIKE :pf3
                 OR a_compl_summary.product_family LIKE :pf4
                 OR a_compl_summary.product_family LIKE :pf5
            AND (a_compl_summary.region = :r1)
            AND (   a_compl_summary.NAME = :c1
                 OR a_compl_summary.NAME = :c2
                 OR a_compl_summary.NAME = :c3
                 OR a_compl_summary.NAME = :c4
                 OR a_compl_summary.NAME = :c5
            AND (a_compl_summary.complaint = :yorn)
            AND (   rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl1
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl2
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl3
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl4
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl5
            AND (rp_qa_reported_device_codes.reported_dev_clarification NOT LIKE
                                                                              :dc1
            AND (a_compl_summary.incident_number =
                                               rp_qa_patient_codes.incident_number
            AND (a_compl_summary.case_number = rp_qa_patient_codes.case_number)
            AND (a_compl_summary.part_sequence = rp_qa_patient_codes.part_sequence
            AND (a_compl_summary.incident_number =
                                       rp_qa_reported_device_codes.incident_number
            AND (a_compl_summary.case_number =
                                           rp_qa_reported_device_codes.case_number
            AND (a_compl_summary.part_sequence =
                                         rp_qa_reported_device_codes.part_sequence
            AND (rp_qa_reported_device_codes.incident_number =
                                               rp_qa_patient_codes.incident_number
            AND (rp_qa_reported_device_codes.case_number =
                                                   rp_qa_patient_codes.case_number
            AND (rp_qa_reported_device_codes.part_sequence =
                                                 rp_qa_patient_codes.part_sequence
           )

    But are the ":parameter1" okay, or do I need to change the syntax for Excel?
    Because when I change the[b] :parameter to just a ? it ends up working to a degree. When I have too many parameters Excel ends up bailing on me with a Debug, Send Error Report box popping up.

  • ORA-00936 Missing expression - error in composite statement

    I'm using the following statement to call a function which uses a number retrieved from a table i.e.
    SELECT GETNEXTBUSINESSDATE(TO_DATE('28/08/2003','dd/mm/yyyy'), TO_NUMBER(SELECT VALUE1 FROM PARAMETERS WHERE PARCODE = 'CCR1' AND ATTRIBUTE1 = 'CCRNRQST1')) FROM DUAL;
    The function adds the value store in the value1 field to a date to get the next buisness date. The above statement is giving me an ORA-00936 Missing expression error message.
    Can anybody help ?

    We can't pass a query as a parameter.
    You'll have to write a function that accepts PARCODE and ATTRIBUTE1 as parameters, or figure some other way of getting the value.
    As I typed that, it occurred to me that this might work:
    SELECT GETNEXTBUSINESSDATE(TO_DATE('28/08/2003','dd/mm/yyyy')
          , x.val1)
    FROM ( SELECT TO_NUMBER(VALUE1) as val1
           FROM   PARAMETERS
           WHERE PARCODE = 'CCR1'
           AND ATTRIBUTE1 = 'CCRNRQST1') x;I'm not guaranteeing anything as I've never tried running a function from an in-line view.
    Cheers, APC

  • ORA-29279: SMTP permanent error: 530 5.7.0 Must issue a STARTTLS command fi

    Hello friend,
    I have changed my smtp server to send email but now i am getting a different error like given below
    ORA-29279: SMTP permanent error: 530 5.7.0 Must issue a STARTTLS command first. 2sm141783tif.39
    I dont know what is this STARTTLS command.
    Pls help me ;
    Thanks,
    Uttam SIngh

    It is NOT obvious to someone experiencing a ORA-29279: SMTP permanent error: messages that the root cause is in the SMPT server, it is still an ORA error code. It is especially NOT OBVIOUS, if that person is OBVIOUSLY a newbie. It is OBVIOUS that when you essentially flame people for asking such questions you discourage them from ever asking questions on your forum.
    Could you PLEASE, PLEASE, PLEASE be a little less arrogant and stop cluttering up this forum with over-the-top and OFF responses????
    Thank You in Advance Mr. Expert.

  • "ORA-01001 Invalid Cursor" error

    Platform: oracle 8.X on ibm aix and java client code from
    windows NT.
    JDBC DRIVER: JDBC Oracle thin driver version 1.2.
    when i execute a Sql satement with Cursor expression from the
    java client code with XSU it returns an XML DOM But if the
    CURSOR EXPRESSION IN THE SQL QUERY RETURNS EMPTY ROWS i get
    back an error node with "ORA-01001 Invalid Cursor" error
    message.i had aslo set the setNullAttributes(true) property
    on oraclexmlquery.
    Interestingly, if i exceute the same query in the SQL plus
    it returns the column names with no rows.
    is there any way where i can get xml document with table
    structure, when there are no rows instead of ORA error message.
         

    This is just a guess,
    all you cursors are being opened regardless of any condition, for example;
    OPEN CUT(:NEW.LAYOUT_NO);
    OPEN DET(:NEW.LAYOUT_NO);
    OPEN ITM(:NEW.LAYOUT_NO);
    OPEN LOT(:NEW.LAYOUT_NO);
    OPEN DTN(:NEW.LAYOUT_NO, :NEW.CUT_NO, :NEW.NOTE);UNA however is opened after a condition;
    IF DTN%NOTFOUND THEN
      /** start --added for cha 2011-3172 6/14/2011 **/
          OPEN UNA(:NEW.LAYOUT_NO, :NEW.ACCOUNT_NO);All cursors arel however closed regardless, i.e. they are all assumes to be open;
      CLOSE CUT;
      CLOSE DET;
      CLOSE DTN;
      CLOSE ITM;
      CLOSE LOT;
      CLOSE STAT;
      CLOSE UNA;So I think you are closing the UNA cursors wen it is in fact not open.
    So, move the "CLOSE UNA;" line of code to before the END IF; on line 278, since that is when it will definitely be open.

Maybe you are looking for

  • Using a precondition strict to a specified Class

    Dear All:                Now I have a class X , the class has two characteristics A and B ,  A has values a1 and a2 , B has values b1 and b2 . In the configration , when I choose a1 for A then b2 cannot be chosen . To fulfill that I can creat a preco

  • Need help calling stateful web service from BPEL 10.1.3.1

    I found the tutorial located at http://www.oracle.com/technology/products/ias/bpel/htdocs/callingstatefulwsfrombpel.html which talks about how to call a stateful web service, it is also mentioned on Clemens Utschig's SOA blog. The problem is that the

  • Refreshing JSP file for an exploded WAR without undeploying the WAR - 7210

    The weblogic.Deployer utility with -activate option does redeploy my application. How do I prevent redeployment while refreshing. I'm using Weblogic 7.0.0.0.           Thanks           Senthil Kumar.S           

  • Join Configuration Problem

    Hello, When I am selecting fields from different table for a perticular Business area.. I get the follow ing probelm. "Join Configuration Cannot be resolved. Reason: more than 1 detail detail folders uses non-aggregated items" I am not sure what this

  • Using currency symbolin script

    Friends ,                Can anyone tell me how to use pound (£) symbol in script ? For ex: I am printing the amount field in my script output. it should be displayed as  ( Amount =  £ 1000 ). Thanks, Amal