R1208 Self Service Timecard Error ORA-01422 HXC_TIMECARD line 830 HXC_LOCKS

Hi,
After applying HRMS RUP 8 on 12.0 we are intermittently seeing this error when an employee is trying to update an existing timecard (usually a timecard that was previously submitted). The user just gets the generic unexpected error page, but FND_LOG_MESSAGES shows the error:
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "APPS.HXC_TIMECARD", line 830
Somehow there are sometimes rows in HXC_LOCKS that are not being released when the timecard is submitted, so the row in HXC_LOCKS has the old time_building_block_ovn, and when the employee goes to update the timecard then it inserts a new row in HXC_LOCKS with the latest OVN (without clearing the HXC_LOCKS row with the old OVN), so when they try to save the changes to the timecard then the query at "APPS.HXC_TIMECARD" line 830 selects both rows and throws the ORA-01422.
We can't reproduce this on demand, but it's happening in production several times a week. We first started seeing this immediately after applying the HRMS RUP 8 patch 9301208. Our SR seems to be going nowhere without a reproducible test case.
I was wondering if anyone else is seeing this error.
The query below tells us where we have these old hxc_locks, and if we try to update one of these timecards then it will produce the error.
Would anyone mind running this in your instance to see if any rows come up?
select *
from apps.hxc_locks hl,
apps.hxc_time_building_blocks ht
where ht.time_building_block_id = hl.time_building_block_id
and hl.time_building_block_ovn < (select max(hb.object_version_number)
from apps.hxc_time_building_blocks hb
where hb.time_building_block_id = ht.time_building_block_id)
and ht.object_version_number = (select max(hb.object_version_number)
from apps.hxc_time_building_blocks hb
where hb.time_building_block_id = ht.time_building_block_id);
The workaround we have found is to create a new timecard for the same period instead of trying to update the existing timecard, when you do this then it removes the old row from HXC_LOCKS.
Any other thoughts?
Thanks for reading this long post
Thomas

It definitely looks like code issue. Best option is to raise an SR and follow with oracle.
--Shiv                                                                                                                                                                                                       

Similar Messages

  • Getting Error ORA-01422&ORA-06512 while clicking distributions of invoice

    Hi,
    I am Getting Error ORA-01422&ORA-06512 when i query the invoice and click on the All distributions.
    However i am getting this error only for some invoices and not for all.
    Any suggestion on this is highly appreciated.
    Regards,
    Shreyans

    Hi,
    What is the application release? If you are on R12, please refer to these documents.
    Note: 580014.1 - R12 Invoices FAQs - (16. Why do the Errors ORA-01422 and ORA-06512 Show when Clicking on the [All Distributions] Button?)
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=580014.1
    Note: 559199.1 - Error ORA-01422 ORA-06512 Raises when Click On [All Distributions] Button
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=559199.1
    Regards,
    Hussein

  • Error ORA-01422 while compressing a cube

    Hello,
    I am trying to compress the initial balnce of the European Inventory KPI  (KPINVMOEU) cube after reloading it and I encountered the oracle error-01422 which says:
    system error:error-01422:exact fetch returns more than requested
    system error:CONDENSE_FACTTABLE-5-ERROR-01422
    Has anyone dealt with this error before? Any input is appreciated.
    Thanks in advance,
    madhu

    Madhu,
        can you please look into these notes: 485766 and 385660.
    at the same time look into these links which is for similar problem.
    ERROR: System error: CONDENSE_FACTTABLE-5- ERROR:12805
    Error during compress 0IC_C03
    error ORA-01422 while compressing a cube
    Re: Cube compression failing
    All the best.
    Regards,
    Nagesh Ganisetti.

  • Error ORA-01422

    Hi All,
    I just learning Oracle. Now i try to make a stored procedure
    CREATE OR REPLACE PROCEDURE sewa_mobil(customerid in customer.customerid%TYPE,
                                                      supirid in supir.supirid%TYPE,
                                                      mobilid in mobil.mobilid%TYPE,
                                                      tgl_sewa in VARCHAR2)
    is      
    begin
    if status_mobil(mobilid) = 0 then
         raise_application_error('-20001','Car Is In Use');
    elsif status_supir(supirid) = 0 then
         raise_application_error('-20002','Driver on Duty');
    else
         IF (tgl_sewa = 'now') then
              insert into sewa values(sewa_id_seq.nextval,customerid,supirid,mobilid,sysdate,'');     
         else
              insert into sewa values(sewa_id_seq.nextval,customerid,supirid,mobilid,to_date(tgl_sewa,'DD-MM-YYYY HH24:MI:SS'),'');     
         end if;
    end if;      
    commit;
    end;
    then when i execute like this => exec sewa_mobil(1,2,3,'21:07:08 17:12:54');
    but it comes error ORA-01422 and ORA-06512.
    When I search on google, it says that error on ORA-04122 comes, if there were SELECT statement on Procedure which resulting 2 rows or more. But as you see from my procedure, it has no SELECT statement.
    so how to solve this?
    *I've tried to manually using insert into sewa values(0,1,1,1,sysdate,sysdate);..........and its work                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hello (and welcome),
    user11018619 wrote:
    but it comes error ORA-01422 and ORA-06512.
    When I search on google, it says that error on ORA-04122 comes, if there were SELECT statement on Procedure which resulting 2 rows or more. But as you see from my procedure, it has no SELECT statement. But you do have a SELECT: status_mobil(mobilid) and status_supir(supirid)
    these are function calls, which must be SELECTing.
    By the way, putting {noformat}{noformat} around your code makes it a lot easier to read (lowercase code in curly brackets).
    Edited by: SeánMacGC on Jun 22, 2009 9:24 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • PL/SQL report errors: ORA-01422

    Hi all,
    (before i you read i would like to say i have searched the net for this error code but nothing shows up like this problem..)
    I am getting an error problem when i select certain Schemas from a list on an apex app. page, it only works for some schemas not all..
    When i select one schema, it is supposed to display one row.. when i select [ALL] it is supposed to show them all.
    It does work if i select '[ALL]' from the select list (p3_schema_name), just not for every single individual one.
    the error code:
    ORA-01422: exact fetch returns more than requested number of rows
    declare
      vSchema  varchar2(20);
      vStmt  varchar2(1000);
      vVersion number(5);
      vDBName  varchar2(20);
      vHostName varchar2(80);
      vStmt2  varchar2(1000);
      vVersion2 number(5);
      vDBName2  varchar2(20);
      vServer2 varchar2(80);
      vSchema2 varchar2(80);
      CURSOR c_schemas IS
        select owner from dba_tables@P3_DB_NAME.db_link where table_name = 'DDL_LOG' and num_rows > 0 order by owner;
    begin
      IF :P3_SCHEMA_NAME != '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
        vServer2 := :P3_SERVER_NAME;
        vSchema2 := :P3_SCHEMA_NAME;
          vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM';
          Execute Immediate vStmt2 into vDBName2, vVersion2;
            htp.p('<br>');
            htp.p('<table border="1">');
            htp.p('<tr>');
            htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
            htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
            htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
            htp.p('<th bgcolor="#FFCC99">PATCH</th>');
            htp.p('</tr>');
            htp.p('<tr>');
            htp.p('<td>');
            htp.p(vServer2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vDBName2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vSchema2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vVersion2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p('<BR>');
            htp.p('</td>');
            htp.p('</tr>');
            htp.p('</tr>');
            htp.p('</table>');
       ELSE IF :P3_SCHEMA_NAME = '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
       vHostName := :P3_SERVER_NAME;
       vDBName := :P3_DB_NAME;
         open c_schemas;
          htp.p('<br>');
          htp.p('<table border="1">');
          htp.p('<tr>');
          htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
          htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
          htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
          htp.p('<th bgcolor="#FFCC99">PATCH</th>');
          htp.p('</tr>');
        LOOP
          FETCH c_schemas INTO vSchema;
          EXIT WHEN c_schemas%NOTFOUND;
          vStmt  := 'select max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link where DDH_SCHEMA_NR = (select max(DDH_SCHEMA_NR) from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link) and rownum < 2' ;
          Execute Immediate vStmt into vVersion  ;
          htp.p('<tr>');
          htp.p('<td>');
          htp.p(vHostName);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vDBName);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vSchema);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vVersion);
          htp.p('</td>');
          htp.p('<td>');
          htp.p('<BR>');
          htp.p('</td>');
          htp.p('</tr>');
        END LOOP;
          htp.p('</tr>');
          htp.p('</table>');  
      CLOSE c_schemas;
    END IF;
    END IF;
    END;I have checked the DDH_SCHEMA_NR for repeating entries of the highest number.. some of the ones that dont work do have repeating entries some don't.
    Sorry if this is confusing, i have tried to explain it as best as i can.
    Thanks in advance for any help.
    Ashleigh

    Hello Ashleigh,
    Based on your code, I'd start by running this piece of SQL via command-line (thru SQL Workshop, SQL*Plus, Toad, etc.), replacing &P3_SCHEMA_NAME. and &P3_DB_NAME. with values that are currently causing the routine to fail and see if it returns more than one row. I don't know your data, but DISTINCT and GROUP BY are typically used to return multiple (though grouped/summarized) rows. It appears to be the only statement that would cause the error your seeing (more than one row being returned into single variables).
    select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM;I'm actually surprised that the code runs at all. I didn't think 'execute immediate' would know what to do with substitutions indicated as "&something." (I've typically seen that when substituting in dynamic HTML/Javascript code but maybe I'm learning something new). But since you already have vServer2 and vSchema2, I'd be more apt to code it as:
    vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from ' ||
    vSchema2 || '.ddl_log@' || vServer2 || '.db_link GROUP BY DDH_DB_NM';Hope this helps,
    John

  • SOA-- Invoking OSB Service Getting Error :ORA-00084: global area must be PGA, SGA, or UGA

    Hello Friends,
    Really appreciate your help/inputs on the below Error Message encountered while running a Concurrent Program--using SOA:Same encountered in recently refreshed DEV instance, Can it be related to some Developement Instance Configuration related to SOA, as same working as expected in PROD.PLEASE ASSIST
    Need your inputs on the Error Message we are getting which Invoking OSB Service.
    "Error inside invoke_osb_service -> Error Code : -84Error Message :ORA-00084: global area must be PGA, SGA, or UGA "
    Can you please review and confirm if the same encountered before or assist on the same:
    XXFIN_AP_INVOICES_INT_IB_PKG.invoke_osb_service
    -- Define the SOAP request according the the definition of the web service being called
    l_soap_request := 
                '<?xml version = "1.0" encoding = "UTF-8"?>'
            || '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prox="http://OmnicareFinance/ProxyInput/">'
             ||   '<soapenv:Header/>'
             ||     '<soapenv:Body>'
             ||       '<prox:InboundProcess>'
             ||     '<Source_system>'||g_source_instance||'</Source_system>'
             ||     '<Run_mode>'||g_run_mode||'</Run_mode>'
             ||     '<Batch_key>'||g_batch_key||'</Batch_key>'
             ||     '<Request_id>'||g_request_id||'</Request_id>'
             ||     '<Invoice_Header_File_name>'||g_file_name||'</Invoice_Header_File_name>'
             ||     '<Invoice_Line_File_name>'||NULL||'</Invoice_Line_File_name>'
             ||     '<File_location>'||g_file_location||'</File_location>'
             ||       '</prox:InboundProcess>'
             ||     '</soapenv:Body>'
             ||   '</soapenv:Envelope>';
    Oracle Apps Log File
    -->Entering XXFIN_AP_INVOICES_INT_IB_PKG.invoke_osb_service
    -->   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    -->Response> status_code: "200"
    -->Response> reason_phrase: "OK"
    -->Response> http_version: "HTTP/1.1"
    -->Response From OSB: <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header xmlns:prox="http://OmnicareFinance/ProxyInput/"/><soapenv:Body xmlns:prox="http://OmnicareFinance/ProxyInput/"><prox:InboundProcessResponse><status>E</status></prox:InboundProcessResponse></soapenv:Body></soapenv:Envelope>
    -->OSB Response: E
    -->Error inside invoke_osb_service -> Error Code : -84Error Message :ORA-00084: global area must be PGA, SGA, or UGA
    -->   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    -->Entering XXFIN_AP_INVOICES_INT_IB_PKG.capture_error_info
    THANKS
    ANKUR

    Hi..
    >
    # symptom: ORA-00381: cannot use both new and old parameters for buffer cache size specification
    # cause: Both db_block_buffers and db_cache_size parameters are defined in the init.ora (instance parameter file). The db_block_buffers parameter has been deprecated and has been maintained only for backward compatibility. The db_cache_size parameter is one of the size parameters which defines the size of the cache for buffers. These parameters cannot be combined. Setting this along with the Dynamic SGA parameters errors out.
    >
    For sga_target refer to [http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams193.htm#REFRN10256]
    which quotes
    >
    SGA_TARGET specifies the total size of all SGA components. If SGA_TARGET is specified, then the following memory pools are automatically sized:
    *Buffer cache (DB_CACHE_SIZE)
    * Shared pool (SHARED_POOL_SIZE)
    * Large pool (LARGE_POOL_SIZE)
    * Java pool (JAVA_POOL_SIZE)
    * Streams pool (STREAMS_POOL_SIZE)
    If these automatically tuned memory pools are set to non-zero values, then those values are used as minimum levels by Automatic Shared Memory Management. You would set minimum values if an application component needs a minimum amount of memory to function properly.
    >
    So, the what ever the value are set for the parameter will act as minimum value when sga_target is set.
    HTH
    Anand

  • HR Self-Service Transactions - error notifications

    In our HR system we are using Administrator Self Service, allowing staff to make changes to HR records for people they manage.
    In quite a few cases, our central admin team are receiving notifications with subject lines like:
    Application Error has occurred in your process Change Job and Terms performed on Bloggs, Mr Joseph
    When opening the notification, the error message at the top of the page says a range of things, such as:
    The changes were not applied because This transaction has failed because the employee's record or eligibility status has changed. Submit a new transaction.
    Another user has updated this person's record. Please reject the transaction so the initiator can check whether the change is still valid for the updated record.It would seem that the cause of these is because between the HR Self Service transaction being submitted and the error notification going out, something has changed on the HR record in question.
    Is there any way I can work out where that change is being made, or is that too hard?
    I can see the HR Self Service Transaction via:
    SELECT   hat.creation_date hrss_tx_date
           , wn.notification_id nid
           , wn.begin_date notif_date
           , wn.status
           , wn.item_key
           , REPLACE(
                wn.subject
              , 'Application Error has occurred in your process '
             ) subject
           , fu.user_name originator_uname
           , papf3.full_name hr_record_being_changed
           , fu.description originator_description
           , papf.full_name originator_full_name
           , papf2.full_name manager_full_name
           , fu2.user_name manager_login
           , fu2.description manager_description
        FROM applsys.wf_notifications wn
           , applsys.fnd_user fu
           , applsys.fnd_user fu2
           , hr.hr_api_transactions hat
           , hr.per_all_people_f papf
           , hr.per_all_people_f papf2
           , hr.per_all_people_f papf3
           , hr.per_all_assignments_f paaf
       WHERE hat.item_key = wn.item_key
         AND hat.created_by = fu.user_id
         AND papf2.person_id = fu2.employee_id
         AND hat.creator_person_id = papf.person_id
         AND papf.person_id = paaf.person_id
         AND paaf.supervisor_id = papf2.person_id
         AND hat.selected_person_id = papf3.person_id
         AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
         AND SYSDATE BETWEEN papf2.effective_start_date AND papf2.effective_end_date
         AND SYSDATE BETWEEN papf3.effective_start_date AND papf3.effective_end_date
         AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
         AND recipient_role = 'HRMS_DEV_ROLE'
         AND subject LIKE 'Application Error%'
         AND wn.notification_id = :nid
    ORDER BY wn.begin_date DESC;But if I look at e.g. the per_all_people_f or per_all_assignments_f tables to look for changes made to the same HR record that the Self-Service transaction was for, nothing recent is returned:
    SELECT   papf.employee_number
           , paaf.assignment_number
           , paaf.object_version_number paaf_ovn
           , papf.creation_date papf_creation_date
           , papf.last_update_date papf_last_update_date
           , paaf.creation_date paaf_creation_date
           , paaf.last_update_date paaf_last_update_date
           , papf.object_version_number papf_ovn
        FROM hr.per_all_people_f papf
           , hr.per_all_assignments_f paaf
       WHERE papf.person_id = paaf.person_id
         AND papf.full_name LIKE :pn
    ORDER BY paaf.last_update_date DESC;I have seen stuff on My Oracle Support about "object version number" e.g. 1300998.1 says:
    "This is an expected behavior. Since after first approval the object version number of contact's personal details has changed. Now when you try to approve second notification we will compare the OVN in transaction tables to the OVN in database (which got changed). Hence we get an object version mismatch and above error."However, I am still stuck trying to see what has changed. I need to find this so I can go to the functional people who don't understand why they are getting the error notifications, so say "Look, this has changed since the Self-Service transaction was submitted, hence the error".
    Any advice would be much appreciated.
    Thanks

    Hi,
    In the end I wrote some SQL which identified the fact that the HR tables had been updated in Core Apps AFTER a Self-Service transaction had been started.
    SELECT distinct hat.creation_date workflow_start
           , wn.notification_id nid
           , (SELECT MAX(last_update_date) FROM hr.per_all_assignments_f paaf2 WHERE paaf2.person_id = papf3.person_id) last_assig_update
           , wn.begin_date error_date
           , wn.begin_date - (SELECT MAX(last_update_date) FROM hr.per_all_assignments_f paaf2 WHERE paaf2.person_id = papf3.person_id) dd
           , wn.item_key
                 , SUBSTR(
                      wn.subject
                    , 48
                    , INSTR(SUBSTR(wn.subject, 48 + 2), 'performed on ')
                   ) transaction_type
                 , CASE
                      WHEN SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) LIKE '%Miss%' THEN REPLACE( SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) , ' Miss' , '' )
                      WHEN SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) LIKE '%Mrs%' THEN REPLACE( SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) , ' Mrs' , '' )
                      WHEN SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) LIKE '%Ms%' THEN REPLACE( SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) , ' Ms' , '' )
                      WHEN SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) LIKE '%Mr%' THEN REPLACE( SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) , ' Mr' , '' )
                      ELSE SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 )
                   END performed_on      
           , wn.subject
           , papf3.full_name
           , papf3.employee_number empno
           , fu.user_name by_un
           , fu.description by_desc
           , papf.full_name by_name
        FROM applsys.wf_notifications wn
           , applsys.fnd_user fu
           , hr.hr_api_transactions hat
           , hr.per_all_people_f papf
           , hr.per_all_people_f papf3
           , hr.per_all_assignments_f paaf
       WHERE hat.item_key = wn.item_key
         AND hat.created_by = fu.user_id
         AND hat.creator_person_id = papf.person_id
         AND papf.person_id = paaf.person_id
         AND hat.selected_person_id = papf3.person_id
         AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
         AND SYSDATE BETWEEN papf3.effective_start_date AND papf3.effective_end_date
         AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
         AND subject NOT LIKE '%Phone Numbers%'
         AND recipient_role = 'HRMS_DEV_ROLE'
         AND subject LIKE 'Application Error%'
         AND papf.current_employee_flag = 'Y'
         AND paaf.assignment_type = 'E'
    ORDER BY 1 DESCIt helped compare things in the background and prove in our case that there wasn't a system problem.
    Thanks

  • Oracle error - ORA-01422

    I am getting ORA-01422 error while updating my databse from a given user. This error is coming only while an update is done.
    Any suggestions!!!

    I've had a problem like this, ora 1403 on update and Oracle said me than there is a bug, the 892342; I've installed the patch 6a per the dev/2k and the patch 80522 for the database (client site) and now the situation is not bad, but I'm not sure the problem is solved.
    null

  • Shared Services JDBC error ORA-01722 after restart

    Help me please...
    I have this configuration:
    - Red Hat EL5.0
    - Oracle DB 10.2.0.1
    - WebLogic 9.2 MP3
    - Hyperion 9.3.1
    Hyperion Shared Services install and configured - properly (without any exceptions and errors). Than I setup and config Essbase and Administration Services, externalize users and all this worked properly. I have projects and users in Shared Services and I can do anything with Essbase applications and cubes.
    When restart Shared Services and other services I have error when Shared Services started:
    org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - SQL error 1722 on /1238771509551.56: [Hyperion][Oracle JDBC Driver][Oracle]ORA-01722: invalid number
    and after that Shared Services - worked but I didn't find any users and projects in Shared Services.
    Thanks

    Hi dzianis ,
    I`m haveing the same problem, I tried this solution but it didn`t work.
    You set it at the user instance or at the SGBD?
    Regards,
    Marcelo

  • Report error: ORA-01422: exact fetch returns more than requested number of rows

    I am getting this error in tabular form which is to be populated by selecting an item called week description in that page through a dynamic action.
    In main table I have two primary keys and so two foreign keys is detail even though it is not a type of master detail form.
    when I select week description item and related records in tabular form to shown.But it is giving baove error.
    In main table there  two same records ,in that records user name is different that defines the unique ness of record.

    Hi,
    2709643 wrote:
    Please update your profile handler with some meaningful name
    I am getting this error in tabular form which is to be populated by selecting an item called week description in that page through a dynamic action.
    In main table I have two primary keys and so two foreign keys is detail even though it is not a type of master detail form.
    when I select week description item and related records in tabular form to shown.But it is giving baove error.
    In main table there  two same records ,in that records user name is different that defines the unique ness of record.
    It is difficult to tell you the exact solution with the given information.
    please create a sample on apex.oracle.com that helps us to investigate the problem and give you appropriate solution.
    Regards,
    Jitendra

  • Oracle apps self service login error

    Hi,
    Apps Version : 11.5.10.2
    DB : 11.1.0.7
    While login we are getting
    Not Found
    The requested URL /oa_servlets/oracle.jsp.JspServlet was not found on this server.
    Ran autoconfig but we are still getting the error
    Regadrs,
    SRK

    Hi Helios,
    I have gone through those documents.Thank you very much for the reply.But i am not able to troubleshoot the issue.can you throw some light please.
    errorlog_
    [Tue Sep 28 09:47:31 2010] [error] [client 192.168.40.50] File does not exist: e:/oracle/prodcomn/portal/prod_tstoraf/oprocmgr-servicetstoraf.xyz.com
    [Tue Sep 28 09:48:08 2010] [error] [client 192.168.40.50] File does not exist: e:/oracle/prodcomn/java//
    [Tue Sep 28 09:48:31 2010] [error] [client 192.168.40.50] File does not exist: e:/oracle/prodcomn/portal/prod_tstoraf/oprocmgr-servicetstoraf.xyz.com
    Regards,
    SRK

  • Repo error:ORA-01422:exact fetch returns more than requested number of rows

    Hello,
    on my page I have some input fields and a report based on a query (PL/SQL function body returning SQL-Statement). The Where-Clause from this sql-statement depends on the values of the input fields.
    I listed the sql-Statement via htp.p (q ) and copied this displayed statement in sql-editor. There this statement works fine.
    Is there a line-limit for reports?
    Acutally there more than 500 rows in this table.
    When I limit the return data with an value for the where-clause which returns less than 500 rows the results are shown correctly.
    The layout and pagination row count is already set to 2000.
    Which possiblities do I have to solve this problem?
    Thanks in advance
    Regards
    Ulrike
    Message was edited by:
    [email protected]
    Hi,
    I found the problem.
    Unfortunately I'm unable to delete this thread.
    Regards Ulrike

    select ... into <variable>
    means only 1 row can be returned.
    Your select returns more than one row.
    Either change v_txt into a collection, define a cursor and fetch from it, or change the statement so it returns one row.
    Sybrand Bakker
    Senior Oracle DBA

  • ORA-01422 Error While Doing Insert

    Hello,
    I am trying to do a insert using the following code
    declare
    i number;
    ret varchar2(1000);
    ret2 varchar2(1000);
    ret3 varchar2(1000);
    begin
    FOR I IN 1..20 LOOP
    select sl_no ,ename,addr into ret,ret2,ret3
    from
    (select u.sl_no as sl_no,
    (select ename from table where sl=1  and des  = 1 ) as ename ,
    T.addr as addr  from
    tab1 t,tab2  u
    where
    U.cd = T.cd
    and U.code = T.code and U.sl=0+i
    union all
    select u.sl_no as sl_no,
    (select ename from table where sl=1  and des  = 1 ) as ename ,
    T.addr as addr  from
    tab1 t,tab2  u
    where
    U.cd = T.cd
    and U.code = T.code and U.sl=0+i);However I am getting error
    ORA-01422: exact fetch returns more than requested number of rowsHow could I resolve this problem
    Thanks

    @OP,
    Some of the points in your "FULL CODE".
    1.You are selecting in a FOR I 1..20 LOOP... The SELECT statement has INTO clause. With UNION (ALL) may be you are expecting (and getting) more than one row in which case you need to define cursor and fetch from the cursor .
    2. You have a COMMIT within the loop, it may be ok if you want to commit 20 times! In general, Please commit when the logical unit of work (LUW) is completed. In my experience LUW is normally not completed within a loop.
    3. Why even have a LOOP and PL/SQL procedural code?
    Why not do the following...
    insert into my_table(sl_no,ename,addr)
    select sl_no ,ename,addr into ret,ret2,ret3
         from
         (select u.sl_no as sl_no,
         (select ename from table where sl=1  and des  = 1 ) as ename ,
         T.addr as addr  from
         tab1 t,tab2  u
         where
         U.cd = T.cd
         and U.code = T.code and U.sl=0+i
         union all
         select u.sl_no as sl_no,
         (select ename from table where sl=1  and des  = 1 ) as ename ,
         T.addr as addr  from
         tab1 t,tab2  u
         where
         U.cd = T.cd
         and U.code = T.code and U.sl=0+i);4. If you absolutely have to have PL/SQL code try something like folloing...
    declare
    i number;
    ret varchar2(1000);
    ret2 varchar2(1000);
    ret3 varchar2(1000);
    begin
    FOR I IN 1..20 LOOP
      FOR x in (              -- "Added"
         select sl_no ,ename,addr into ret,ret2,ret3
         from
         (select u.sl_no as sl_no,
         (select ename from table where sl=1  and des  = 1 ) as ename ,
         T.addr as addr  from
         tab1 t,tab2  u
         where
         U.cd = T.cd
         and U.code = T.code and U.sl=0+i
         union all
         select u.sl_no as sl_no,
         (select ename from table where sl=1  and des  = 1 ) as ename ,
         T.addr as addr  from
         tab1 t,tab2  u
         where
         U.cd = T.cd
         and U.code = T.code and U.sl=0+i)
       LOOP ;                -- "Added"
       insert into my_table(sl_no,ename,addr)
       values (ret,ret2,ret3);
    end loop;               -- "Added"
    commit;
    end loop;
    end;vr,
    Sudhakar B.

  • ORA-01422 error

    Hello,
    I am very new about oracle and I have a problem. I am using stored procedure like this;
    CREATE OR REPLACE PROCEDURE SP_SELECTKISIBYUSERNAME
    MY_AD OUT VARCHAR2,
    MY_SOYAD OUT VARCHAR2,
    MY_KULLANICIADI OUT VARCHAR2,
    MY_SCLNO OUT NUMBER,
    KullaniciAdi IN VARCHAR2
    AS
    BEGIN
    SELECT IKY_OZLUK.SCLNO, IKY_OZLUK.AD, IKY_OZLUK.SOYAD, IKY_KULLANICI.KULLANICIADI INTO MY_SCLNO,MY_AD,MY_SOYAD,MY_KULLANICIADI
         FROM IKY_KULLANICI , IKY_OZLUK
         WHERE IKY_KULLANICI.SCLNO=IKY_OZLUK.SCLNO
         AND IKY_KULLANICI.KULLANICIADI = KullaniciAdi;
    END;
    I call the procedure from visual studio .net. the code I used is:
    internal DataSet SelectAdSoyad(string KullaniciAdi)
                   OracleConnection connection=new OracleConnection(connectionString);
                   connection.Open();
                   OracleCommand command=new OracleCommand();
                   command.Connection=connection;
                   command.CommandText="SP_SELECTKISIBYUSERNAME";
                   command.CommandType=CommandType.StoredProcedure;
                   OracleParameter inputParameter;
                   OracleParameter outputParameter;
                   outputParameter=command.Parameters.Add("MY_AD",OracleType.VarChar,20);
                   outputParameter.Direction=ParameterDirection.Output;
                   outputParameter=command.Parameters.Add("MY_SOYAD",OracleType.VarChar,20);
                   outputParameter.Direction=ParameterDirection.Output;
                   outputParameter=command.Parameters.Add("MY_KULLANICIADI",OracleType.VarChar,8);
                   outputParameter.Direction=ParameterDirection.Output;
                   outputParameter=command.Parameters.Add("MY_SCLNO",OracleType.Number,5);
                   outputParameter.Direction=ParameterDirection.Output;
                   inputParameter=command.Parameters.Add("KULLANICIADI",OracleType.VarChar,8);
                   inputParameter.Direction=ParameterDirection.Input ;
                   inputParameter.Value=KullaniciAdi;
                   OracleDataAdapter dataAdapter=new OracleDataAdapter();
                   dataAdapter.SelectCommand=command;
                   dataAdapter.TableMappings.Add("Table","KULLANICI");
                   DataSet dataSet=new DataSet();
                   dataAdapter.Fill(dataSet);
                   return dataSet;
    and on the page_load of default.aspx I used the code;
    private void Page_Load(object sender, System.EventArgs e)
                   // Put user code to initialize the page here
                   string searchString;
                   string userName;
                   int myPos;
                   searchString =Request.ServerVariables["Remote_User"];
                   myPos = searchString.IndexOf(@"\");
                   myPos = (myPos + 1);
                   userName=(searchString.Substring(myPos)).Trim();
                   clsMI kisiUserName=new clsMI();
                   DataSet dsMaster=kisiUserName.SelectAdSoyad(userName);
                   Response.Write(dsMaster.Tables["KULLANICI"].Rows[0]["MY_SCLNO"].ToString());
    the code is returning the error;
    ORA-01422: exact fetch returns more than requested number of rows ORA-06512: pozition "TUBPER.SP_SELECTKISIBYUSERNAME", line 14 ORA-06512: position line 1
    The question I want to ask is this;
    I run the query part of the procedure in the sql plus (of course with variable)
    SQL> SELECT IKY_OZLUK.SCLNO, IKY_OZLUK.AD, IKY_OZLUK.SOYAD, IKY_KULLANICI.KULLANICIADI
    2 FROM IKY_KULLANICI , IKY_OZLUK
    3 WHERE IKY_KULLANICI.SCLNO=IKY_OZLUK.SCLNO
    4 AND IKY_KULLANICI.KULLANICIADI = 'etufan';
    SCLNO AD SOYAD KULLANIC
    62066 EMRAH TUFAN etufan
    SQL>
    as you can see, there is only one row returns.
    So what is the problem.

    Ok,
    The error message 'ORA-01422: exact fetch returns more than requested number of rows ORA-06512: pozition "TUBPER.SP_SELECTKISIBYUSERNAME", line 14 ORA-06512: position line 1' is telling you that the select statement is returning more than one row, when you're doing a SELECT ... INTO. It also tells you where (line 14).
    Your later sqlplus example shows that one row should be returned if the IN parameter, KullaniciAdi = etufan. This suggests that whatever you are passing in, it isn't etufan.
    If you're using Visual Studio you should be able to debug this section
    searchString =Request.ServerVariables["Remote_User"];
    myPos = searchString.IndexOf(@"\");
    myPos = (myPos + 1);
    userName=(searchString.Substring(myPos)).Trim(); and find out what userName actually is. (I would look carefully at @"\" as a backslash is an escape character).
    The oracle part I suggested is a standard way to catch these sort of errors. Essentially you wrap up a statement that might fail in a BEGIN...END block, and the EXCEPTION part allows you to do something when the statement fails.
    try
    BEGIN
    SELECT IKY_OZLUK.SCLNO, IKY_OZLUK.AD, IKY_OZLUK.SOYAD, IKY_KULLANICI.KULLANICIADI INTO MY_SCLNO,MY_AD,MY_SOYAD,MY_KULLANICIADI
    FROM IKY_KULLANICI , IKY_OZLUK
    WHERE IKY_KULLANICI.SCLNO=IKY_OZLUK.SCLNO
    AND IKY_KULLANICI.KULLANICIADI = KullaniciAdi;
    EXCEPTION
    WHEN TOO_MANY_ROWS THEN
    insert into error_table (message)
    values('parameter = ' || KullaniciAdi);
    END
    Obviously you need to create error_table with a suitable message column, but it will show you what was being passed into the procedure.
    alternatively you have some output parameters where you could put the results to diagnose the problem;
    the EXCEPTION clause could be
    EXCEPTION
    WHEN TOO_MANY_ROWS THEN
    MY_AD := KullaniciAdi,
    END;
    You could extend that to put the result of a
    SELECT COUNT(1) FROM
    FROM IKY_KULLANICI , IKY_OZLUK
    WHERE IKY_KULLANICI.SCLNO=IKY_OZLUK.SCLNO
    AND IKY_KULLANICI.KULLANICIADI = KullaniciAdi;
    and put the result into MY_SCLNO, so you could work with them in your .NET application.
    Hope that's some ore help.

  • ORA-01422 exact fetch returns more than requested number of rows on invoice

    Hello developer,
    Current I m facing problem ORA-01422 exact fetch returns more than requested number of rows in Invoce Standard form when we select PO_Default invoice type for some specific PO Number not for all. I m not able to handle the error bcoz im new in oracle apps. it's urgent for user requirement. Plz guide me how to take approch to handle the situation.........
    select Po_Default invoice type=>enter po number=>press ok button=>got error ORA-01422
    I got query from POST_QUERY TRIGEER like
    function get_po_number (l_po_number varchar2,l_vendor_id OUT number) return number is
    l_po_header_id number;
    --Bug fix:1096002
    --Removed the function call UPPER from the WHERE clause so that the query
    --becomes case sensitive.
    -- BUG 2519682 vendor_id added in the Select statement and futher in the fetch statement
    cursor po_number_cursor is
    SELECT po_header_id,vendor_id
    FROM po_headers
    WHERE type_lookup_code IN ('STANDARD', 'BLANKET', 'PLANNED')
    AND approved_flag = 'Y'
    AND segment1 = l_po_number
    -- Bug 2289727. Enhanced Matching Controls to Finally Closed POs
    AND (NVL(closed_code, 'X') <> 'FINALLY CLOSED'
    OR :parameter.show_final_closed_po_flag = 'Y')
    AND PCARD_ID IS NULL; --bug4627502
    /* Commented out since this is not relevant even if executed.
    AND (segment1 LIKE SUBSTR(l_po_number, 1, 2) || '%' OR
    segment1 LIKE SUBSTR(l_po_number, 1, 1) ||
    SUBSTR(l_po_number, 2, 1) || '%' OR
    segment1 LIKE SUBSTR(l_po_number, 1, 1) ||
    SUBSTR(l_po_number, 2, 1) || '%' OR
    segment1 LIKE SUBSTR(l_po_number, 1, 2) || '%' );
    begin
    open po_number_cursor;
    fetch po_number_cursor INTO l_po_header_id,l_vendor_id;
    close po_number_cursor;
    return(l_po_header_id);
    end get_po_number;
    plz help me how to resolved this issue it's urgent.
    thanks in advance.........

    This bug is documented in the following note on metalink.oracle.com
    APXINWKB - Creating PO Default Invoice Errors with ORA-01422 Exact Fetch Returns More Than Requested Number Of Rows [ID 946578.1]
    The solution is to apply patch 8765847.
    Hope this answers your question,
    Sandeep Gandhi

Maybe you are looking for

  • ICal calendar color won't change

    I've tried changing the color for my Work calendar in iCal multiple times.  I've done it on my iPad, iMac and finally at the iCloud website.  Each time I try to change it, it defaults to purple.  Any ideas about this?  Thanks in advance.

  • Connection timeout depending on how many client JVMs (but as many requests)

    Hello, sorry for the cryptic title, I hit the length limit. Here is my problem. I'm asking first for an explanation, or for ways to investigate it. Afterwards I'll need a solution but as I suspect the problem is involved, and involves several tiers,

  • Unknown File Format Error while Uploading file through SFP

    Hello All, I am implementing SAP Note 1528165 - Form 16: Layout changes for financial year 2010-11 which has few PDF forms to be uploaded. While doing manual steps given in the attachment; I am getting following error. Error occurred when uploading f

  • Exporting Versions without Version # included in name

    Hi all, I am trialing 1.5 and would like to upload lores Jpegs of a single version of each of my master files to Photoshelter. Everything works well except that I don't want to include the version # in the file name. I have renamed the files from the

  • Viewing M2T files with PE7

    Greetings - I am trying for the first time to work with some HD video and am having many problems. The first is this:  I can import the files into Photoshop Elements 7 organizer just fine....but I never get a real image clip generated as a thumbnail.