Ora-01843 when Form is based on procedure

I create a page using form based on procedure option. I have a date picker item in the form that corresponds to a date parameter in the procedure.
I select every date format APEX provided from APEX date picker and always got ora-01843(not a valid month) error when I tried to sumbit the form.
I have changed PICK_DATE_FORMAT_MASK to DD/MM/YYYY at application level but cannot solve the problem.
Does anyone using a "Form on Procedure" and happen to have a date column? Do you have similar problem?
ps. this problem only occurs to "Form on Procedure". I have no problem with master details or many other form options. I am using APEX 3.1.

Hello user3003555,
I have created forms based on procedure and used date pickers on them but don't recall encountering the date format error ORA-1843. I used "Date Picker (DD-MON-YYYY)" which corresponds to my application date format. I'm not sure what else I can tell you. Have you tried picking a date where the month and day are interchangeable to confirm that it is a formatting issue?
- Alwyn

Similar Messages

  • ORA-01843 when db nls_date_format=MM/DD/YYYY

    RMAN> backup recovery files;
    Generates errors:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 01/27/2009 17:01:52
    ORA-01843: not a valid month
    In the db the nls_date_format=MM/DD/YYYY
    What is causing this error? How do I fix it?
    Is there some way to override the nls_date_format during the rman backup?

    Hi,
    Most of the times this happens when the date and the month value are interchanged for a date field.
    Looks like there is some kind of conflict with the date format in your rman session.
    As an example:
    <sql 'alter session set nls_date_format="DD-MON-YYYY:HH24:MI:SS" ';> will set the date format in rman.
    (Out of experience I have seen that a difference between the database character set and the NLS_LANG value of os user could cause undesired date formats.)
    Regards,
    Tycho

  • ORA-22337 when select geometry within external procedure

    Hi all
    I want to make a C external procedure. This external procedure need to select a set of geometries (MDSYS.SDO_GEOMETRY) from a table in database.
    How can I do that?
    Well, I've tried to use callback functions, but I realized that some important OCI object functions don't work on callbacks (like object pinning).
    So, I've tried to make a new connection from the external procedure. I can do that, but, when I make the object pinning (yes, I did map the SDO_GEOMETRY object to a C struct), I get the error ORA-22337 (the type of accessed object has been evolved)
    How can I handle this?

    Hi Ben,
    The use of the union operator tells Oracle only to return a unique set of rows, hence a sort is done (in this case attempted, since there is no geometry sorting routine).
    If you choose union all, then no sort will be attempted.
    Hope this helps,
    dan

  • ORA -04062 when running forms aginst a different schema

    Hello,
    I am getting this error (ORA -04062 signature of 'procedure' has been changed)when I try to run my form aginst my test- schema (different from my development schema). I get rid of the error if I compile the form against the test schema. In the production environment I have to run this form against multiple schemas, so recompilation is not a possible solution.
    Has anybody else come across this problem.
    null

    Thanks John for your reply !
    I think my problem is close to the second thing you mention as a possible cause. I found out that I had used a parameter of type table%ROWTYPE in call to a pacakged procedure. When I defined a "TYPE MyRec IS RECORD" record type in my pacakge specification and used that as the type for the parameter my form seems to work against my test schema without recompilation. Unfortunately the table is pretty large so my package specification does not look so neat anymore. And I lost the dynamics associated with the %ROWTYPE attribute.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Alexander ([email protected]):
    That's a well-known bug. Its worse with a v7 database, but still can occur with 8/8i.
    A couple of things to look for:
    1) REMOTE_DEPENDENCIES_MODE is SIGNATURE instead of TIMESTAMP in init.ora.
    2) Forms that call stored procedures with a large parameter list (about 55 or more) can get a run-time error ORA-4062 if running on a different schema than where it was compiled.
    3) You can also hit a snag if you are calling a dbms_XX package within the form. Instead, call it within a db procedure, which you can call from the form.
    John Alexander
    St. Petersburg, FL www.SummitSoftwareDesign.com <HR></BLOCKQUOTE>
    null

  • ORA-01001 in Form Based on Stored Proc.

    I'm getting ORA-01001 when the form passes parameters
    to the stored procedure:
    Error Executing Cursor
    SQL:
    begin
    "ABSUSR"."P_PORTAL_RPTS1" ( P_RPT_NAME => 'Print1',
    P_ST_DATE => '01-OCT-01', P_EN_DATE => '04-JUN-02',
    P_FORMAT => 'HTML', P_ROWS => '250');
    end;
    ORA-01001: invalid cursor
    I can't see anything wrong with the parameters, and
    the procedure works fine by itself. I also get a
    script error when running the form as a portlet,
    by itself, or in a page: "A runtime error has
    occured: do you wish to debug? Line 2 Expected "("
    But there is nothing obviously wrong with the
    html that's presented for debugging. I have
    searched for 1001 at Metalink and Portal Studio,
    and found note 1007395.6 Common Causes of 1001.
    I don't see that error checking is an issue,
    and my OPEN_CURSORS is set to 300.
    any thoughts or experience?
    thanks and best wishes, Jon Angel HHS/PSC

    Hi Jon ,
    Can you explain your requirement in more detail as I'm not getting what may be wrong by your query.Please let me know what type of procedure is it.
    and also please tell in what circumstances are u getting error when you make a portlet.
    It will be nice if you can make a full test case of your requirement.
    Hope to get details from you.
    rahul

  • FRM-40735 WHEN-BUTTON-PRESSED TRIGGER RAISED UNHANDLED EXCEPTION ORA-01843

    Hi everyone
    When I run My form in Microsoft Windows Melinem , and I have Button on the form WHEN I press the button it works fine ,but when I run the same form in Microsoft Windows XP and WHEN I press the button it give this message :
    FRM-40735
    WHEN-BUTTON-PRESSED TRIGGER RAISED UNHANDLED EXCEPTION ORA-01843
    AND I RECOMPILE THE FORM IN Microsoft Windows XP BUT STILL I AM GETING THE SAME MESSAGE
    WAITING FOR YOU VALUABLE ANSWER .
    BEST REGARDS
    JAMIL ALSHAIBANI

    Forms [32 Bit] Version 6.0.8.23.2 (Production)
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    With the Partitioning option
    JServer Release 9.0.1.1.1 - Production
    and the script which is used in the button as the following :
    DECLARE
    CURSOR C1 IS
    SELECT ITEM_CODE,AVERAGE_COST,STORE_CODE,ITEM_QUANTITY,TOTAL_COST
    FROM IM_GOODS_RECIEVE_DETAILS
    WHERE DOC_CODE = :IM_GOODS_RECIEVE_HEADER.DOC_CODE;
    LOC_DOC_CODE VARCHAR2(10);
    LOC_DOC_DATE DATE;
    LOC_ITEM_CODE VARCHAR2(30);
    LOC_ITEM_QUANTITY NUMBER(20,3);
    LOC_CART_QTY NUMBER(20,3);
    LOC_UNIT_CODE VARCHAR2(10);
    LOC_TOTAL_COST NUMBER(20,6);
    LOC_AVERAGE_COST NUMBER(20,6);
    LOC_SUM_QTY NUMBER(20,6);
    LOC_BALANCE NUMBER(20,6);
    LOC_PRICE NUMBER(20,6);
    LOC_BALANCE_COST NUMBER(25,6);
    LOC_ITEM VARCHAR2(30);
    L0C_TOT_COST NUMBER(20,6);
    LOC_TOT_QTY NUMBER(20,6);
    LOC_NEW_AVERAGE NUMBER(20,6);
    LOC_ON_HAND_QTY NUMBER(20,3);
    al_id Alert;
    al_button NUMBER;
    LOC_SYS_DATE DATE;
    BEGIN
    SELECT TO_DATE(TO_CHAR(SYSDATE,'DD/MM/YYYY')) INTO LOC_SYS_DATE FROM DUAL;
    FOR R IN C1
    LOOP
    BEGIN
         SELECT B.ITEM_CODE ,SUM(NVL(ITEM_QUANTITY,0)) INTO LOC_ITEM ,LOC_SUM_QTY
    FROM IM_TRANS_ISSUE_HEADER A,IM_TRANS_ISSUE_DETAILS B
    WHERE A.DOC_CODE = B.DOC_CODE
    AND B.DEL_STORE = R.STORE_CODE
    AND ITEM_CODE = R.ITEM_CODE
    AND DOC_DATE BETWEEN :IM_GOODS_RECIEVE_HEADER.DOC_DATE
    AND LOC_SYS_DATE
    GROUP BY
    ITEM_CODE
    ORDER BY B.ITEM_CODE ;
    exception
         when no_data_found then
         NULL;
         when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;     
    END;     
         BEGIN
         BEGIN
         SELECT (NVL(QUANTITY_ON_HAND,0) + (NVL(LOC_SUM_QTY,0))),NVL(ITEM_PRICE1,0),
         NVL(QUANTITY_ON_HAND,0)
         INTO LOC_TOT_QTY,LOC_PRICE,LOC_ON_HAND_QTY
         FROM IM_LOCATION A, IM_INVENTORY B
         WHERE A.ITEM_CODE = B.ITEM_CODE
         AND A.ITEM_CODE = R.ITEM_CODE
         AND A.STORE_CODE = R.STORE_CODE;
         LOC_BALANCE := (:IM_GOODS_RECIEVE_DETAILS.ITEM_QUANTITY) - (LOC_TOT_QTY);
         LOC_BALANCE := - (LOC_BALANCE);
         LOC_BALANCE_COST := ((LOC_BALANCE) * (LOC_PRICE));
         L0C_TOT_COST := LOC_BALANCE_COST + :IM_GOODS_RECIEVE_DETAILS.TOTAL_COST;
         LOC_NEW_AVERAGE := ROUND(((L0C_TOT_COST)/(LOC_TOT_QTY)),5);
         exception
         when no_data_found then
         NULL;
         when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;
         END;
         BEGIN
         SELECT 1 INTO :GLOBAL.DUMMY
         FROM COST_TEMP_SUM
         WHERE S_GOODS_DOC = :IM_GOODS_RECIEVE_HEADER.DOC_CODE
         AND S_GOODS_DATE = :IM_GOODS_RECIEVE_HEADER.DOC_DATE
         AND S_ITEM_CODE = R.ITEM_CODE;
         exception
         when no_data_found then
         INSERT INTO COST_TEMP_SUM
         VALUES(:IM_GOODS_RECIEVE_HEADER.DOC_CODE,
         :IM_GOODS_RECIEVE_HEADER.DOC_DATE,LOC_SUM_QTY,LOC_ON_HAND_QTY,
         LOC_TOT_QTY,LOC_BALANCE,R.ITEM_QUANTITY,
         LOC_PRICE,LOC_BALANCE_COST,R.TOTAL_COST,
         L0C_TOT_COST,LOC_NEW_AVERAGE,R.ITEM_CODE,LOC_SYS_DATE);
         when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;     
         END;
         END;
    IF LOC_BALANCE_COST = 0 THEN
         UPDATE IM_INVENTORY
              SET ITEM_PRICE1 = R.AVERAGE_COST
              WHERE ITEM_CODE = R.ITEM_CODE;      
    ELSE
         UPDATE IM_INVENTORY
              SET ITEM_PRICE1 = LOC_NEW_AVERAGE,ITEM_PRICE2 = LOC_PRICE
              WHERE ITEM_CODE = R.ITEM_CODE;      
    END IF;
    -- THIS FOR ISSUED ITEMS QUANTITY
    FOR R2 IN (
    SELECT B.ITEM_CODE as LOC_ITEM_CODE, NVL(ITEM_QUANTITY,0) as LOC_ITEM_QUANTITY,
    A.DOC_CODE as LOC_DOC_CODE, AVERAGE_COST as LOC_AVERAGE_COST,
    TOTAL_COST as LOC_TOTAL_COST,A.DOC_DATE as LOC_DOC_DATE,
    CART_QTY as LOC_CART_QTY,UNIT_CODE as LOC_UNIT_CODE
    FROM IM_TRANS_ISSUE_HEADER A,IM_TRANS_ISSUE_DETAILS B
    WHERE A.DOC_CODE = B.DOC_CODE
    AND B.DEL_STORE = R.STORE_CODE
    AND ITEM_CODE = R.ITEM_CODE
    AND DOC_DATE BETWEEN :IM_GOODS_RECIEVE_HEADER.DOC_DATE
    AND LOC_SYS_DATE
    -- AND :EXPENSES_TAB.EXP_DATE
    ORDER BY B.ITEM_CODE )
    LOOP
    BEGIN
    SELECT 1 INTO :GLOBAL.DUMMY
         FROM COST_TEMP
         WHERE T_DOC_CODE = R2.LOC_DOC_CODE
         AND T_DATE = R2.LOC_DOC_DATE
         AND T_ITEM_CODE = R2.LOC_ITEM_CODE;
    exception
         when no_data_found then
    INSERT INTO COST_TEMP
    VALUES(R2.LOC_DOC_CODE,R2.LOC_DOC_DATE,R2.LOC_CART_QTY,R2.LOC_ITEM_QUANTITY,
    R2.LOC_AVERAGE_COST,:IM_GOODS_RECIEVE_HEADER.DOC_CODE,
    :IM_GOODS_RECIEVE_HEADER.DOC_DATE,R.ITEM_CODE,R.STORE_CODE);
    when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;     
         END;
    Begin
    al_id := Find_Alert('POST_DATA');
    IF Id_Null(al_id) THEN
    Message('User_Warning alert does not exist');
    RAISE Form_Trigger_Failure;
    ELSE
    ** Show the warning alert
    -- jamil al_button := Show_Alert(al_id);
    ** If user pressed OK (button 1) then bring up another
    ** alert to confirm -- button mappings are specified
    ** in the alert design
    -- IF R2.LOC_ITEM_QUANTITY != 0 AND al_button = ALERT_BUTTON1 THEN
         IF R2.LOC_ITEM_QUANTITY != 0 THEN
    BEGIN
    UPDATE IM_TRANS_ISSUE_DETAILS
    SET AVERAGE_COST = LOC_NEW_AVERAGE,
    TOTAL_COST = LOC_NEW_AVERAGE * R2.LOC_ITEM_QUANTITY
    WHERE DOC_CODE = R2.LOC_DOC_CODE
    AND ITEM_CODE = R2.LOC_ITEM_CODE ;
    END;
    END IF;
    END IF;
    END;
    END LOOP;
    END LOOP;
    GO_BLOCK('IM_GOODS_RECIEVE_HEADER');
    :IM_GOODS_RECIEVE_HEADER.FLAG_COST := 1;
    COMMIT;
    SET_ITEM_PROPERTY('IM_GOODS_RECIEVE_HEADER.PUSH_BUTTON152',ENABLED,PROPERTY_FALSE);
    SET_ITEM_PROPERTY('EXPENSES_TAB.PUSH_BUTTON151',ENABLED,PROPERTY_FALSE);
    SHOW_MESSAGE('The New Cost Price updated Successfully !!!');
    END;
    BEGIN
         IF nvl(:IM_GOODS_RECIEVE_HEADER.FLAG_COST,0) = 1 THEN
    Make_Block_Query_Only('IM_GOODS_RECIEVE_DETAILS');
         ELSIF nvl(:IM_GOODS_RECIEVE_HEADER.FLAG_COST,0) = 0 THEN
         Make_Block_Query_Only('IM_GOODS_RECIEVE_DETAILS');
         END IF;          
    END;     
    best regards
    Jamil Alshaibani

  • ORA-29546: when deploying SQLJ stored procedures

    Can anyone please help me? I consistently get this error when
    trying to deploy my java stored procedures that use SQLJ:
    ORA-29546: badly formed resource: Error:
    java.io.InvalidClassException: [Ljava.lang.Object;; Serialization
    incompatible with Externalization
    Adrian
    null                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The server prcess failed to allocate more memory for large objects ( in Oldspace).
    If you Google ORA-04030, you will see several recommendations to work around this.
    The Java VM in the database already has HttpClient, i don't know why you are loading the Apache HttpClient but this might not be the surce of the problem.
    Kuassi http://db360.blogspot.com

  • ORA-01843: not a valid month . Receive this error when running report in reporting services but not when running query in BIDS

    sql server 2008 r2
    RS2008 r2
    I can execute the query in BIDS 2008 with out a problem and I can run on our RS2005 server without a problem
    But when I deploy report and run on our RS2008 server I get the error
    An error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for dataset 'NIR'. (rsErrorExecutingCommand)
    ORA-01843: not a valid month 
    QUERY:
    select * from NIR_QUARTERLY where birth_date between :PARAM1 and :PARAM2
    order by PT_CODE

    CAUSE
    The problem is caused by not using VALID dates values in the dataset.
    - This data problem was masked in the original version as the Predicate(s) used can change between versions of Oracle
    - Oracle does *not* guarantee the same explain plan or the specific order of predicates used between versions of Oracle
    Reviewing the  EXPLAIN PLAN for both versions revealed in this case:
    1) The table was partitioned
    2) The EXPLAIN PLANS were not the same due to how the partitions were accessed
    3) If the same query was used against a non-partitioned table using the same data, the following error would always occur
       ORA-01843: not a valid month
    4) The problem string value was in this case found to include the string value of  '0000-00-00'
      The ORA-01843 occurred when using the TO_DATE function against '0000-00-00'
    There is *no* Year= '0000' Month= '00' or day = '00' -- therefore the  ORA-01843: not a valid month
    --Prashanth

  • Pass Value by Form Based on Procedure in Target Frame

    I made a form based on procedure and trying to pass all variables to a target frame called "dest2". I got the sample code on this forum and used window.location, but then I figured it can't pass values to another frame. I tried window.open, but can't seem to figure out how to code it.
    Basically on the page, it has the portal form using stored procedure, and a IFRAME named "dest2".
    The detail my stored procedure is:
    ====================
    Create or Replace Procedure WM.TEST
    p_from_date IN VARCHAR2,
    p_to_date IN VARCHAR2,
    p_desformat IN VARCHAR2,
    as
    begin
    htp.p('<script>');
    htp.p('window.location="http://domain/portal/page?_pageid=1063,801014&_dad=portal&_schema=PORTAL&p_from_date='||p_from_date||'&p_to_date='||p_to_date||'&p_p_desformat='||p_desformat||'"');
    htp.p('</script>');
    end;
    ===============
    Does anybody know how to modify this procedure to pass value to target frame = "dest2" ?
    Thanks,
    Sal

    Hi,
    For documentation purpose, you can read Oracle9iAS Portal Bible -
    they have a complete chapter on creating forms based on stored
    procedure.
    Hope this helps.
    Regards,
    Jatinder

  • Can't post multiple values using forms based on procedure

    I want to post multiple values from form based on procedure. Is it possible?
    I've tried following steps:
    - create LOV with Multiple Values format
    - create form based on procedure
    - in Formatting and Validation page choose required item
    - select item type - combobox, enter input height = 5
    - select my LOV for item
    after creating form I get listbox, but selecting multiple values (with Ctrl or Shift key) not working...
    what's wrong.
    I'm use portal 9.0.2.2.22

    Hi,
    It is not possbile right now with Portal Forms to submit multiple values to a field.
    Thanks,
    Sharmila

  • ORA-01843 and ORA-02291 when installing AIA 2.0 on Linux server

    Hello,
    When installing AIA 2.0 on a RHEL 4.7 Linux server, even if OUI does say the installion is successful, the installActions log are not that good...
    We've got some ORA-01843 and ORA-02291 errors when running the createDiagnosticsCAVSData.sql.
    [exec] createBSRIntegScenarioTables:
    [exec] [echo] ----Creating createCAVSTables--------------
    [exec] [sql] Executing resource: /exec/applis/tbaia/products/AIA/seeddata/DatabaseObjects/createBSRIntegScenarioTables.sql
    [exec] [sql] 152 of 152 SQL statements executed successfully
    [exec]
    [exec] createDiagnosticsCAVSData:
    [exec] [echo] ----Creating createCAVSTables--------------
    [exec] [sql] Executing resource: /exec/applis/tbaia/products/AIA/seeddata/DatabaseObjects/createDiagnosticsCAVSData.sql
    [exec] [sql] Failed to execute: Insert into CAVS_DEFINITIONS (DEFINITION_ID,TYPE,DESCRIPTION,STATE,SERVICE_TYPE,URL_WSDL,URL_ENDPOINT,SOAP_ACTION,SOAP_TRANSPORT_TYPE,MESSAGE_REQUEST,MESSAGE_RESPONSE,DELAY,VERSION,PROJECT_NAME,PROJECT_VERSION,EBS_NAME,EBS_VERSION,PROCESS_NAME,PROCESS_VERSION,SERVICE_NAME,SERVICE_VERSION,MESSAGE_NAME,MESSAGE_VERSION,PIP_NAME,PIP_VERSION,APPLICATION_NAME,APPLICATION_VERSION,TEST_PRIORITY,REFERENCE_ID_EXTERNAL,AUDITED_ON,AUDITED_BY) values (501,'Test','BPEL Transformation Diagnostics','Unlocked','Synchronous',null,'http://dvedvb40:7777/orabpel/default/AIADiagnosticsTransformBpelProcess/1.0','process','HTTP','<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body xmlns:ns1="http://xmlns.oracle.com/BRM/schemas/BusinessOpcodes"> <ns1:PCM_OP_BILL_DEBIT_inputFlist> <ns1:BAL_GRP_OBJ>Test</ns1:BAL_GRP_OBJ> <ns1:DEBIT elem="523"> <ns1:BAL_OPERAND>1000</ns1:BAL_OPERAND> <ns1:TYPE>881</ns1:TYPE> </ns1:DEBIT> <ns1:DESCR>Sample Input</ns1:DESCR> <ns1:END_T>2007-07-31T12:00:00.000+5:30</ns1:END_T> <ns1:POID>A123</ns1:POID> <ns1:PROGRAM_NAME>100</ns1:PROGRAM_NAME> <ns1:SERVICE_OBJ>NA</ns1:SERVICE_OBJ> <ns1:SESSION_OBJ>NA</ns1:SESSION_OBJ> <ns1:START_T>2007-07-31T11:00:00.000+5:30</ns1:START_T> <ns1:STR_VERSION>527</ns1:STR_VERSION> <ns1:STRING_ID>528</ns1:STRING_ID> <ns1:SUB_BALANCES elem="530"> <ns1:CONTRIBUTOR_STR>Diagnostics</ns1:CONTRIBUTOR_STR> <ns1:ROLLOVER_DATA>1</ns1:ROLLOVER_DATA> <ns1:VALID_FROM>2007-07-31T11:00:00.000+5:30</ns1:VALID_FROM> <ns1:VALID_TO>2007-07-31T11:00:00.000+5:30</ns1:VALID_TO> </ns1:SUB_BALANCES> </ns1:PCM_OP_BILL_DEBIT_inputFlist> </soap:Body> </soap:Envelope>','<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header/> <env:Body> <PCM_OP_BILL_DEBIT_outputFlist xmlns:ns0="http://xmlns.oracle.com/BRM/schemas/BusinessOpcodes" xmlns="http://xmlns.oracle.com/BRM/schemas/BusinessOpcodes"> <ns0:POID>Transformed POID value : A123</ns0:POID> <ns0:RESULTS elem="Transformed Element value : 523"/> </PCM_OP_BILL_DEBIT_outputFlist> </env:Body> </env:Envelope>',null,0,null,null,null,null,'Diagnostics Transformation',null,'DiagTransformationBPEL','1.0',null,null,'AIA Diagnostics',null,null,null,null,null,to_date('01-OCT-07','DD-MON-RR'),'oc4jadmin')
    [exec] [sql] java.sql.SQLException: ORA-01843: not a valid month
    [exec] [sql] Failed to execute: Insert into CAVS_DEFINITION_NSXPATHS (DEFINITION_ID,NAMESPACE_ALIAS,NAMESPACE) values (501,'env','http://schemas.xmlsoap.org/soap/envelope/')
    [exec] [sql] java.sql.SQLException: ORA-02291: integrity constraint (AIA.DEFINITION_NSXPATHS_D_FK) violated - parent key not found
    [exec] [sql] *1 of 43 SQL statements executed successfully*
    Any advice to solve this issue?
    Thanks in advance.
    Regards,
    K.
    Edited by: KaRiNe_Fr on 3 juin 2009 01:55 createDiagnosticsCAVSData.sql instead of createBSRIntegScenarioTables.sql...

    Hello,
    me again...
    Is this table CAVS_DEFINITIONS important to be populated for the rest of the AIA installation?
    The installation keeps on failing and it is a real issue for us...
    If of any use, here are some results from SQL requests onto our AIA database:
    SQL> SELECT * FROM NLS_DATABASE_PARAMETERS ;
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET WE8ISO8859P15
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD.MM.YYYY
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    PARAMETER VALUE
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.2.0.4.0
    20 rows selected.
    SQL> select to_date('01-OCT-07','DD-MON-RR') from dual;
    TO_DATE('
    01-OCT-07
    Regards,
    KaRiNe.
    Edited by: KaRiNe_Fr on 3 juin 2009 01:59

  • Oracle error "ORA-01843: not a valid month" when trying to run sqlldr

    Hi all,
    I'm trying to load some data into a staging database via a CSV file using sqlldr, and am running into an issue where it doesn't like the date format I'm using.
    Here is my input data:
    2012-01-09 16:28:12 -05:00Here is the entry in the .ctl file:
    created TIMESTAMP WITH TIME ZONE 'yyyy-mm-dd HH24:MI:SS TZR'And finally, here is the entry in the .sql file:
    created TIMESTAMP WITH TIME ZONEAfter I try to load, I get greeted with the dreaded error message: Record 1: Rejected - Error on table WTPART, column CREATED. ORA-01843: not a valid month
    I'm really confused as to why it's blowing up on the date, because it seems to me that "01" is indeed a valid date in terms of the date format I'm using. Any ideas? Thanks!
    Edited by: Nick Tiberi on Jan 10, 2012 8:06 AM

    Hmmm, not sure exactly what the problem is. It works fine for me on my XE instance.
    Set up the control and data files....
    tubby@Tubbz:~/test$ cat >> WTPart.csv <<EOF
    2012-01-09 16:28:12 -05:00
    EOF
    tubby@Tubbz:~/test$
    tubby@Tubbz:~/test$ cat >> load.ctl <<EOF
    LOAD DATA
    INFILE WTPart.csv
    APPEND INTO TABLE WTPart
    FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    created TIMESTAMP WITH TIME ZONE 'yyyy-mm-dd HH24:MI:SS TZR'
    EOF
    tubby@Tubbz:~/test$
    tubby@Tubbz:~/test$ /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlldr tubby/pswd@xe control=load.ctl
    SQL*Loader: Release 10.2.0.1.0 - Production on Tue Jan 10 10:21:28 2012
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 1
    tubby@Tubbz:~/test$
    {code}
    Query the result from the database
    {code}
    ME_XE?select * from wtpart;
    CREATED
    09-JAN-12 04.28.12.000000 PM -05:00
    1 row selected.
    Elapsed: 00:00:00.01
    ME_XE?
    ME_XE?select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    5 rows selected.
    Elapsed: 00:00:00.01
    ME_XE?
    {code}
    Are you sure your CSV file doesn't have some "funky" data in it?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • ORA-01843:This is not a valid month error

    One of our french customer using Oracle 11g R2 on RHEL is getting following error while running a stored procedure:
    ORA-01843: ce n'est pas un mois valide
    20120123::05:41:10 ended rebuilding cmroll table
    The error reported by ORACLE, in French « ce n'est pas un mois valide », means : « This is not a valid month ».I have asked him to verify the following settings on his machine:
    Please run the following query on Oracle Server to get the NLS settings. It specifies the settings both on Oracle client and Server.
    select * from nls_database_parameters;
    select * from nls_instance_parameters;
    However, you can override this setting by specifying the following environment variables in client or server. So kindly verify them  on both as well:
    1.     NLS_LANG
    2.     NLS_LANGUAGE
    3.     NLS_TERRITORYIs there anything further that can help me to trace this error?

    Moazzam wrote:
    ORA-01843: ce n'est pas un mois valide
    Is there anything further that can help me to trace this error?ORA-01843 Sounds a LOT more interesting in French :)
    I have to agree with the others that there is a problem with the code somewhere - again, the implicit conversion sounds promising. Or possibly a language issue (hopefully not)
    You should be getting a line number where the error is occurring. This can sometimes be deceptive; we use a WHEN-OTHERS exception handler but mark the code with a location marker throughout so we can look up errors and their locations in an exceptions table - in other words, the line cited in the error message may/may not be where the error happened. 11g sometimes reports errors on block headers too. There are other ways of finding the line the error is occurring on too, including just looking at the code (which is usually harder). Start by finding the line the error is occurring at.
    The "brute force" approach (if possible find an easier way) is to either use the debugger in a GUI tool or use DBMS_OUTPUT.PUT_LINE to trace your way through executions.
    When you find out where the error is occurring you can use DBMS_OUTPUT.PUT_LINE to display the value, find out what it is, and figure out what is causing the error, and fix it.
    Edited by: riedelme on Mar 13, 2012 7:11 AM

  • Recommended best practice to fetch detail block based on procedure

    HI
    I am creating a detail block (Dept)based on procedure which will be populated from the value from master block 'Emp'.
    For example,
    Detail block 'Dept' will be populated by calling procedure populate_detail(:emp.empno in number,dept.deptno out number) .
    But what are the triggers I need to call to populate detail block and at which level?
    I was thinking to call a WHEN-MOUSE-DOUBLECLICK on master block 'Emp' level to populate the detail block 'Dept' by calling the procedure and passing emp.empno as the parameter whenever the user moves from one master record to another.
    Please advise.
    Thanks in advance.

    Download the forms 6i examples CD from the OTN website

  • Suppressing ORA-1403 in Forms 6i

    We are running FORMS 6i and I am creating a library function that will do various types of lookups and then behave in specific ways based on passed parameters.
    How can I over-ride the default ORA-1403 when no records are found in the query?
    Thanks

    Use nested begin-exception-end blocks within the pl/sql code in your pll libraryFunction PLL_Lookup(params in varchar2)
      Return varchar2 is
      variables here;
      Result  varchar2(100);
    Begin
      -- for each select you want, create a nested block:
      Begin
        select....
        Exception when no_data_found then.... ;
      End;
      -- more pl/sql here
      -- Maybe another Begin - Exception - End here...
      Return result;
    End;

Maybe you are looking for

  • Creating support desk messge from ECC "Help"

    Hi Experts, I am working in SP20 EHP1 of Sol Man. Kindly provide the configurations  & authorizations to be done in ECC system & in Sol Man system to create the support message from ECC "Help" menu. I have created the ZLFN transaction type (copy of S

  • "itunes has encountered a problem and needs to close" - while importing

    While importing a CD i get an error message halfway through and the burning stops. The windows message is: "itunes has encountered a problem and needs to close". I have tried to repair: 1. remove Quicktime and repair itunes. 2. updated windows, itune

  • Bridge CS6 no inicia camera raw

    hola, tras el cambio del sistema operativo de windos xp a windows 7 (no lo hice yo, no se como reinstalaron los programas), Bridge dejó de abrir camera raw y ajustes de color de la suite, arroja un error que dice que "la aplicacion bridge principal n

  • Solaris 10.5 = Xwindow reset the user 'connection

    I installed Solaris sparc 10.5 in a Sun-Fire-V440 #Uname-a # SunOS 5.10 Generic_118833-33 SDATA sun4u sparc SUNW, Sun-Fire-V440 My problem is that I tried to connect with xwindow, but the connection failed. Dtlogin =starting the # CONSOLE = / dev / c

  • Problems compiling objects after imp/exp

    I am moving an Apex database to a new machine using imp/exp. I have run into problems getting 2 packages ( WWV_FLOW_CUSTOM_AUTH_STD and WWV_FLOW_SECURITY ) to compile due to PLS-00753: malformed or corrupted wrapped unit. I have tried using both imp/