Error (ORA-01403) saveing data form a report with apex_item items

Hi all,
I've a problem saveing data that's inserted into a report which I created using apex_item items. Reproducing the exact issue on apex.oracle.com will take me a lot of time, and I don't know if I really can reproduce this matter... So I hope I can explain my problem clearly enough, here...
The global story of the application is that its an application used for measureing objects. For these objects there are templates, with default properties. When measureing an object, the user must fill in those properties for the object. The report is build dynamicly, becouse each object has different properties and each property could be of an other kind (number, text, list, counter [=number field with add and substract buttons], and date). Depending on the type of the property, the report has to show an other item to fill.
The query for constructing this report is like this:
select defprop.proptyp_id,
apex_item.hidden(41,defprop.id) defprop_id,
defprop.nam,
decode(proptyp.id,
                1, apex_item.text(p_idx=>42,p_value=>''||
                    decode(defprop.srt, 'CONSTANT', (select WRD
                                                                        from    measurement_prop
                                                                        where    defprop_ID = defprop.id
                                                                        AND        measurement_id IN
                                                                            (SELECT ID
                                                                            FROM measurement
                                                                            WHERE OBJ_ID = obj.id
                                                                            AND DAT IN
                                                                                (SELECT latest_date
                                                                                from object_instance
                                                                                WHERE ID = obj.id)))
                 ||'' ,p_attributes=>'class=case5_num'),
                2, apex_item.text(p_idx=>42,p_value=>''||
                    decode(defprop.srt, 'CONSTANT', (select WRD
                                                                        from    measurement_prop
                                                                        where    defprop_ID = defprop.id
                                                                        AND        measurement_id IN
                                                                            (SELECT ID
                                                                            FROM measurement
                                                                            WHERE OBJ_ID = obj.id
                                                                            AND DAT IN
                                                                                (SELECT latest_date
                                                                                from object_instance
                                                                                WHERE ID = obj.id)))
                 ||''),
                3, apex_item.select_list_from_query(p_idx=>42,p_value=>''||
                    decode(defprop.srt, 'CONSTANT', (select WRD
                                                                        from    measurement_prop
                                                                        where    defprop_ID = defprop.id
                                                                        AND        measurement_id IN
                                                                            (SELECT ID
                                                                            FROM measurement
                                                                            WHERE OBJ_ID = obj.id
                                                                            AND DAT IN
                                                                                (SELECT latest_date
                                                                                from object_instance
                                                                                WHERE ID = obj.id)))
                 ||'', p_query=> 'select wrd, id from property_typewrd where proptyp_id = ' || proptyp.id ||' order by vlgnum', p_show_null=> 'NO'),
                4, apex_item.text(p_idx=>42,p_value=>''||
                    decode(defprop.srt, 'CONSTANT', (select WRD
                                                                        from    measurement_prop
                                                                        where    defprop_ID = defprop.id
                                                                        AND        measurement_id IN
                                                                            (SELECT ID
                                                                            FROM measurement
                                                                            WHERE OBJ_ID = obj.id
                                                                            AND DAT IN
                                                                                (SELECT latest_date
                                                                                from object_instance
                                                                                WHERE ID = obj.id)))
                 ||'',p_attributes=>'class=case5_num')
                || '<a name="add_f02" href="#"><img alt="add" src="#WORKSPACE_IMAGES#plusBig.gif"/></a>    '
                || '<a name="sub_f02" href="#"><img alt="sub" src="#WORKSPACE_IMAGES#minusBig.gif"/></a>',
                5, apex_item.date_popup(p_idx=>42, p_value=>''||
                    decode(defprop.srt, 'CONSTANT', (select WRD
                                                                        from    measurement_prop
                                                                        where    defprop_ID = defprop.id
                                                                        AND        measurement_id IN
                                                                            (SELECT ID
                                                                            FROM measurement
                                                                            WHERE OBJ_ID = obj.id
                                                                            AND DAT IN
                                                                                (SELECT latest_date
                                                                                from object_instance
                                                                                WHERE ID = obj.id)))
                 ||''),
                oms
            ) waarde
from default_property defprop,
object_instance obj,
property_type proptyp
where defprop.stdobjver_id = obj.stdobjver_id
and defprop.proptyp_id = proptyp.id
and obj.id = :P2200_ID_INVThis report works fine. Depending on the type of the property it shows a numberic field, text field, selectlist (with right values), counter field or date field.
If the default property is set to a 'CONSTANT' value, the last known value is filled in.
With a javascript I check the numberic field value and achieve the counterfield to add or substract values when 'plus' or 'minus' is clicked.
This javascript is placed in the field 'Execute when Page Loads' in the page properties in APEX. Here is the code:
/*Execute when page loads*/
/*Allow only numbers */
number_elem = $('input[name=f42].case5_num');
number_elem.keypress(function(event) {
  if (event.which && (event.which < 46 || event.which > 57 || event.which == 47) && event.keyCode != 8) {
      event.preventDefault();
  if (event.which == 46 && $(this).val().indexOf('.') != -1) {
      event.preventDefault();
//for mouse events, remove any non numeric characters
number_elem.bind('mouseup mousedown mouseleave', function(event) {
   this.value = this.value.replace(/[^0-9]/g, '');
/* Subtract Button */
$('a[name="sub_f42"]').click( function() {
  number_elem = $(this).siblings('input[name=f42].case5_num');
  currVal = number_elem.val();
if ( isNaN( currVal) ){
   elemVal = 0;
else {
   elemVal = Number(currVal);
if (elemVal > 0)
     number_elem.val(elemVal-1);
else
{ elemVal = 0; }
/* Add Button */
$('a[name="add_f02"]').click( function() {
  number_elem = $(this).siblings('input[name=f42].case5_num');
  currVal = number_elem.val();
if ( isNaN( currVal) ){
   elemVal = 0;
else {
   elemVal = Number(currVal);
number_elem.val(elemVal+1);
});Those two codes makes my report works fine. So far I'm happy. But now I want the data, which the user fills in the items, to be saved.
So I created a process that should do this for me (it wil run after the user hits a button), here is the code:
declare
     v_objmet_id number := 0;     
begin
     select measurment_seq.nextval
     into v_objmet_id
     from dual;
     insert into measurment
     ( id
     , obj_id
     , dat
     values
     ( v_objmet_id
     , :P2200_ID_INV
     , :P2200_METDAT_INV
     /*Loop trough the values (g_f42 holds the value of the property)*/     
     for i in 1 .. apex_application.g_f42.count loop
          /*g_f41 holds the key to the default property*/
          if apex_application.g_f41(i) is not null and
               apex_application.g_f41(i) > 0 then
               insert into measurment_prop
               ( measrument_id
               , defprop_id
               , wrd)
               values
               ( v_objmet_id
               , apex_application.g_f41(i)
               , apex_application.g_f42(i)
          end if;
     end loop;
end;After running this process, the application branches back to the page, clearing the cache and set some items I use for filtering an other report with their own values.
Both the process and the branche have a 'when button pressed' condition, where the same button is filled in. The branche fires on submit: after processing.
When I hit the button to save the data, I get an error: ORA-01403: no data found
In the debug info I can find there is encountered an unhandeled exception in the process, but I don't know what's going wrong...
I thought it could be something with the date field, I want to save, so I put it in a to_date() with the right format, but I still got the error...
I've also checked if the query which fetches the nextval of the sequence is correct, and it is, no typeing error in the sequence name, or something.
I'm using APEX 4.0.2
Edited by: Mir on 28-jun-2011 10:25
Changed some code of the javascript, it directed to the wrong item ID, now its correct

My problem is solved. The error occured when application item g_f41 was accessed, so my application couldn't find the data, the user putted in there. I now pasted this part of the sql, to the other apex_item field, so it became one field and now it works correctly:
select [...]
apex_item.hidden(41,defprop.id) ||
decode(proptyp.id,
                1, apex_item.text(p_idx=>42,p_value=>''||
                    decode(defprop.srt, 'CONSTANT', (select WRD
                                                                        from    measurement_prop
                                                                        where    defprop_ID = defprop.id
                                                                        AND        measurement_id IN
                                                                            (SELECT ID
                                                                            FROM measurement
                                                                            WHERE OBJ_ID = obj.id
                                                                            AND DAT IN
                                                                                (SELECT latest_date
                                                                                from object_instance
                                                                                WHERE ID = obj.id)))
[... etc ...]

Similar Messages

  • Report error: ORA-01403: no data found.

    Hi,
    I was getting a following error and not able to figure it out.
    Here what I have:
    I have a page where I have 3 regions and out of them, there are 2 Html conditional regions
    and one SQL updatable report. Also, I have a validation to validate a field on the tabular form
    based on one field on the HTML region. The validation works fine but it also throws following error :
    report error: ORA-01403: no data found.
    Code:
    Declare
    v_office_id number;
    Begin
    SELECT count(id) into v_office_id from dar_asd.asd_office;
    if (:P299_ROLE_TYPE_ID = 1 and apex_application.g_f30.COUNT = v_office_id ) or
    (:P299_ROLE_TYPE_ID = 2 and (apex_application.g_f30.COUNT < v_office_id
    and apex_application.g_f30.COUNT >= 1) ) then
    return null;
    else
    RETURN 'Error: '||'Not a valid office selection.';
    end if;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RETURN 'Error: '||SQLERRM;
    end;
    Thanks.

    Marc,
    Thanks for the reply.
    It is derived columns i.e. Use Query-Specific Column Names and Validate Query. The select statement returned by the stored procedure function will allways have all list of columns in select list. But the report displays allways some fixed number of columns in the secod region and remaining will be dependent on the check boxes and lov items selected in the first region. For e.g. if the select has 20 columns. Out of this, let's say 8 will allways displayed and remaining 12 will be displayed depending on the check box and lov items defined for them in the first region. I mean if 3 check boxes are checked and if the user selected some value from lov for the corresponding check box items, then the report will display 8+3 = total 11 colums. And the lov values selected will be used in the where condition of the SQL.
    How can I go to the report attributes? I can go to page definition, but I am not finding report attributes here. Please let me know...
    Thanks,
    Srini

  • PL/SQL function body returning SQL - report error:ORA-01403: no data found

    Hi,
    I am working on Application Express 4.0.2.00.06, and 11G database.
    I have a problem with classic report area of type - PL/SQL function body returning SQL query. Query works if I define region area as - Use Generic Column Names (parse query at runtime only), and does not when I define it - Use Query-Specific Column Names and Validate Query.
    I am getting error:
    report error:ORA-01403: no data found
    This is my query that is returned from function, and displayed with htp.p, and it works ok and returns data in SQL Developer and SQL Workshop (in Apex).
    <code>
    /* select 1 from dual */ SELECT SIFPRO, NAZIV, VODITELJ, DATPZA,SUM(DECODE(TJEDAN,'2010/46',BRDJEL,null)) as "2010/46" ,SUM(DECODE(TJEDAN,'2010/49',BRDJEL,null)) as "2010/49" ,SUM(DECODE(TJEDAN,'2010/50',BRDJEL,null)) as "2010/50" ,SUM(DECODE(TJEDAN,'2010/51',BRDJEL,null)) as "2010/51" ,SUM(DECODE(TJEDAN,'2010/52',BRDJEL,null)) as "2010/52" ,SUM(DECODE(TJEDAN,'2011/01',BRDJEL,null)) as "2011/01" ,SUM(DECODE(TJEDAN,'2011/02',BRDJEL,null)) as "2011/02" ,SUM(DECODE(TJEDAN,'2011/03',BRDJEL,null)) as "2011/03" ,SUM(DECODE(TJEDAN,'2011/04',BRDJEL,null)) as "2011/04" ,SUM(DECODE(TJEDAN,'2011/05',BRDJEL,null)) as "2011/05" ,SUM(DECODE(TJEDAN,'2011/06',BRDJEL,null)) as "2011/06" ,SUM(DECODE(TJEDAN,'2011/07',BRDJEL,null)) as "2011/07" ,SUM(DECODE(TJEDAN,'2011/08',BRDJEL,null)) as "2011/08" ,SUM(DECODE(TJEDAN,'2011/09',BRDJEL,null)) as "2011/09" ,SUM(DECODE(TJEDAN,'2011/10',BRDJEL,null)) as "2011/10" FROM (SELECT * FROM PMV_PLAN_TVRTKA) GROUP BY SIFPRO, NAZIV, VODITELJ, DATPZA ORDER BY SIFPRO, NAZIV, VODITELJ, DATPZA
    </code>
    As you can see, I even tried with workaround that I found on the previous post on the forum, and that is to put /* select 1 from dual */ to start query.
    Any help would be appriciated.

    /* select 1 from dual */ SELECT SIFPRO, NAZIV, VODITELJ, DATPZA,SUM(DECODE(TJEDAN,'2010/46',BRDJEL,null)) as "2010/46" ,SUM(DECODE(TJEDAN,'2010/49',BRDJEL,null)) as "2010/49" ,SUM(DECODE(TJEDAN,'2010/50',BRDJEL,null)) as "2010/50" ,SUM(DECODE(TJEDAN,'2010/51',BRDJEL,null)) as "2010/51" ,SUM(DECODE(TJEDAN,'2010/52',BRDJEL,null)) as "2010/52" ,SUM(DECODE(TJEDAN,'2011/01',BRDJEL,null)) as "2011/01" ,SUM(DECODE(TJEDAN,'2011/02',BRDJEL,null)) as "2011/02" ,SUM(DECODE(TJEDAN,'2011/03',BRDJEL,null)) as "2011/03" ,SUM(DECODE(TJEDAN,'2011/04',BRDJEL,null)) as "2011/04" ,SUM(DECODE(TJEDAN,'2011/05',BRDJEL,null)) as "2011/05" ,SUM(DECODE(TJEDAN,'2011/06',BRDJEL,null)) as "2011/06" ,SUM(DECODE(TJEDAN,'2011/07',BRDJEL,null)) as "2011/07" ,SUM(DECODE(TJEDAN,'2011/08',BRDJEL,null)) as "2011/08" ,SUM(DECODE(TJEDAN,'2011/09',BRDJEL,null)) as "2011/09" ,SUM(DECODE(TJEDAN,'2011/10',BRDJEL,null)) as "2011/10" FROM (SELECT * FROM PMV_PLAN_TVRTKA) GROUP BY SIFPRO, NAZIV, VODITELJ, DATPZA ORDER BY SIFPRO, NAZIV, VODITELJ, DATPZA

  • ORA-06502:Numeric or value error ORA-01403: No data found --6502

    Dear All
    I am using Forms 10g.
    I am calling a report from my form.
    but when i am calling then it is showing this error:
    ORA-06502:Numeric or value error ORA-01403: No data found --6502
    My code is in Print Button :
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    plid ParamList;
    vParamValue number;
    BEGIN
    plid := Get_parameter_List('tmp');
    IF NOT Id_Null(plid) THEN
    Destroy_parameter_List( plid );
    END IF;
    plid := Create_parameter_List('tmp');
    Add_Parameter(PLid, 'P_Block', Text_Parameter, :block_query.item_block);
    Add_Parameter(PLid, 'P_Category', Text_Parameter, :block_query.item_category);
    Add_Parameter(PLid, 'P_Dept', Text_Parameter, :block_query.item_dept);
    Add_Parameter(PLid, 'P_sub_Category', Text_Parameter, :block_query.item_sub_category);
    Add_Parameter(PLid, 'P_FLOOR', Text_Parameter, :block_query.item_floor);
    Add_Parameter(PLid, 'P_IP', Text_Parameter, :block_query.item_ip);
    Add_Parameter(PLid, 'P_Room', Text_Parameter, :block_query.item_room);
    Add_Parameter(PLid, 'P_Userid', Text_Parameter, :block_query.item_usr_id);
    Add_Parameter(PLid, 'PARAMFORM', Text_Parameter, 'NO');
    repid := FIND_REPORT_OBJECT('rp_report');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_oracleapps_eHOpeAS');
    v_rep := RUN_REPORT_OBJECT(repid,plid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')      
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
    '||'server=rep_oracleapps_eHOpeAS');
    Exception
         When others then
         message(Sqlerrm||'-'||sqlcode);
    End;
    Edited by: Sandip Mohapatra on Feb 8, 2010 12:44 AM

    hi
    u can write for all no problem.
    here is an example please modify it with u r requirements.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    plid ParamList;
    vParamValue number;
    BEGIN
    plid := Get_parameter_List('tmp');
    IF NOT Id_Null(plid) THEN
    Destroy_parameter_List( plid );
    END IF;
    plid := Create_parameter_List('tmp');
    add_parameter(plid,'P_code',text_parameter,to_char(:hr.employee_code));
    add_parameter(plid,'P_name',text_parameter,to_char(:hr.name));
    add_parameter(plid,'P_fname',text_parameter,to_char(:hr.fname));
    add_parameter(plid,'P_gender',text_parameter,to_char(:hr.gender));
    add_parameter(plid,'P_married',text_parameter,to_char(:hr.marital_status));
    add_parameter(plid,'P_job',text_parameter,to_char(:hr.job));
    add_parameter(plid,'P_sal',text_parameter,to_char(:hr.sal));
    add_parameter(plid,'P_dob',text_parameter,to_char(:hr.dob));
    add_parameter(plid,'P_country',text_parameter,to_char(:hr.country));
    add_parameter(plid,'P_nationality',text_parameter,to_char(:hr.nationality));
    add_parameter(plid,'P_address',text_parameter,to_char(:hr.address));
    add_parameter(plid,'p_imagecode',text_parameter,to_char(:images.employee_code));
    Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
    repid := FIND_REPORT_OBJECT('REPORT6');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'NORMAL');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
    v_rep := RUN_REPORT_OBJECT(repid,plid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://sarah:8890/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver&P_code='||:hr.employee_code||'&P_name'
    ||:hr.name ||'&P_fname'|| :hr.fname  ||'&P_gender'||:hr.gender||'&P_married'||:hr.marital_status||'&P_job'||:hr.job||'&P_sal'||:hr.sal||'&P_dob'||:hr.dob||
    '&p_country'||:hr.country||'&p_natioanlity'||:hr.nationality||'&p_address'||:hr.address||'&p_image'||:images.employee_code||'&paramform=no','_SELF');
    END;sarah

  • From pl/sql table getting error - "ORA-01403: no data found"

    Hi All,
    i habe written package, and the spce define as -
    type F761RecType is RECORD (
    type F761TabType is TABLE of F761RecType INDEX BY BINARY_INTEGER;
    l_F761_table F761TabType;
    PROCEDURE modification1
    p_F761_table IN F761TabType,
    From button click of form i passed -
    DECLARE
    l_f761_table I743_PUC_MAPS_TREE_PKG.F761TabType;
    l_counter number;
    BEGIN
              LOOP
         l_counter :=l_counter+1;
              l_f761_table(l_counter).P_TABLE := :MAPS.P_table;
         EXIT WHEN      :SYSTEM.LAST_RECORD = 'TRUE' ;
    next_record;
    end loop;
    i743_puc_maps_tree_pkg.modification1(
                                            p_F761_table => l_f761_table,
    END;
    Now when I take table count (l_f761_table.count) in button click in form level I am getting value; but when I try to get the count in sid the package, it giving error "ORA-01403: no data found".
    Pls tell me where I am wrong ..!!
    BR,
    Subir

    Thaks all, probls has been solved..

  • OCI Error ORA-01403: no data found in oracle goldengate replication after tts instaniation

    I recently migrated our tg core system from sun solaris(11.1.0.7) to linux (11.2.0.3) environment using goldengate method (transportable tablespace method used for instantiation).
    The initial replication worked with HANDLECOLLISIONS and after I monitor the lag finished, I took Handlecollisions off and noticed discarded report with OCI Error ORA-01403: no data found in two replications.
    I followed every step in the tts migration steps provided by oracle best practice.
    Can anybody provide any clue how do I fix this issue?
    Thank you in advance.

    extract and replicat are on schema level.
    DO I have to do anything for replication on schema level?
    Basic trandata logging enabled on source.

  • Error 'ORA-01403 no data found', if a procedure called through $Universe

    Hello,
    we use at our customer the scheduling software $Universe. The problem follows is happend at calling PL/SQL-procedures within SQL*Plus:
    Within the calling procedur another subprogram will be called. This program crashed on select of currval with the error 'ORA-01403 no data found'. This error happens only, if the procedure called through $Universe. If the procedure called directly from SQL*Plus or about a unix shell-script, no error happens.
    About the command "select saddr,sid,serial# from sys.V_$SESSION where
    username ='xxx';" we select the Session_ID's. These are identically before and after call of the procedure!
    Do you have an idea, how the problem can be?
    Next information about OS, releases, settings of Oracle-Session-Parameters, and the crashing procedure:
    SQL*Plus: Release 8.1.6.0.0 - Production on Fri Mar 15 13:25:05 2002
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    OS: HP-UX11
    ORACLE-Server NLS-parameters on HP-UX:
    NLS_LANGUAGE               AMERICAN
    NLS_TERRITORY               AMERICA
    NLS_CURRENCY               $
    NLS_ISO_CURRENCY          AMERICA
    NLS_NUMERIC_CHARACTERS          .,
    NLS_CALENDAR               GREGORIAN
    NLS_DATE_FORMAT               DD-MON-RR
    NLS_DATE_LANGUAGE          AMERICAN
    NLS_CHARACTERSET          WE8DEC
    NLS_SORT               BINARY
    NLS_TIME_FORMAT               HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT          DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT          HH.MI.SSXFF AM TZH:TZM
    NLS_TIMESTAMP_TZ_FORMAT          DD-MON-RR HH.MI.SSXFF AM TZH:T
    NLS_DUAL_CURRENCY          $
    NLS_NCHAR_CHARACTERSET          WE8DEC
    NLS_COMP               BINARY
    Windows-desktop NLS-parameters:
    ALTER SESSION set NLS_LANGUAGE = 'GERMAN';
    ALTER SESSION set NLS_TERRITORY = 'GERMANY';
    ALTER SESSION set NLS_ISO_CURRENCY = 'GERMANY';
    ALTER SESSION set NLS_NUMERIC_CHARACTERS = ',.';
    ALTER SESSION set NLS_CALENDAR = 'GREGORIAN';
    ALTER SESSION set NLS_DATE_FORMAT = 'DD/MM/YY';
    ALTER SESSION set NLS_DATE_LANGUAGE = 'GERMAN';
    ALTER SESSION set NLS_SORT = 'GERMAN';
    ALTER SESSION set NLS_TIME_FORMAT = 'HH24:MI:SSXFF';
    ALTER SESSION set NLS_TIMESTAMP_FORMAT = 'DD.MM.RR HH24:MI:SSXFF';
    ALTER SESSION set NLS_TIME_TZ_FORMAT = 'HH24:MI:SSXFF TZH:TZM';
    ALTER SESSION set NLS_TIMESTAMP_TZ_FORMAT = 'DD.MM.RR HH24:MI:SSXFF
    TZH:TZM';
    ALTER SESSION set NLS_DUAL_CURRENCY = '?';
    ALTER SESSION set NLS_COMP = 'BINARY';
    PROCEDURE PROC_NEW_ID (p_value IN NUMBER,
    p_field IN VARCHAR2,
    p_table IN VARCHAR2,
    p_currval OUT NUMBER)
    IS
    v_stmt VARCHAR2(200);
    v_currval NUMBER;
    BEGIN
    -- Bildung des SQL-Statements.
    v_stmt := 'INSERT INTO '||p_table|| '('|| p_field || ') VALUES
    ('||p_value||')';
    -- Ausfuehren des SQL-Statements.
    EXECUTE IMMEDIATE v_stmt;
    COMMIT;
    -- Bildung des SQL-Statements.
    v_stmt := 'SELECT SEQ_'|| p_table || '.CURRVAL FROM DUAL';
    -- Ausfuehren des SQL-Statements.
    EXECUTE IMMEDIATE v_stmt INTO v_currval;
    -- Wertrueckgabe
    p_currval := NVL(v_currval,0);
    EXCEPTION
    WHEN OTHERS THEN
    pkg_mira_protokoll.proc_write_error_fwd
    (pkg_mira_consts.act_error,
    SQLCODE,
    SQLERRM(SQLCODE),
    'PROC_NEW_ID');
    p_currval := 0;
    RAISE;
    END;
    Thanks for your request!
    Best regards
    Esser Office Consulting KG
    J|rgen Esser

    This forum is for posting feedback about the OTN site.
    The best place for your question is probably a Portal forum.
    There is a list of Portal forums here:
    http://forums.oracle.com/forums/index.jsp?cat=13

  • Uploading a CSV file and getting Error ORA-01403: no data found in V4.1.1.

    I have an issue where myself and another user are unable to upload a csv file to my application using the "File Browse" page item in V4.1.1. I get the following error, "Error ORA-01403: no data found".
    This function was working perfectly last week prior to the upgrade of our APEX to V4.1.1 from V3. Other users are still able to upload the csv file, so the PL/SQL behind it must be ok.
    So here is where I am up to with testing.
    Tested the upload using my login on my PC – Fail
    Tested the upload using my login on another PC – Fail
    Tested the upload using other user’s login on my PC – Success
    Tested the upload using other user’s login on another PC - Success
    Any help would be greatly appreciated.
    Cheers,
    Greg

    The offending piece of code was in a block of script that I used from an online sample when I was first setting up this upload script. A colleague had the same issue in another application and rewrote the script to resolve the issue, see below.
    I'm still perplexed as to why the majority of users could run it ok, and there were only 2 of us that it errored on. But now it's working for all, and I can go back to building some cool stuff in V4.1.1.00.23.
    -- Read data from wwv_flow_files
    select blob_content into v_blob_data
    from wwv_flow_files
    where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USERID)
    and id = (select max(id) from wwv_flow_files where updated_by = :APP_USERID);
    -- Rewritten to the following, which works.
    select blob_content into v_blob_data
    from wwv_flow_files
    where id = (select ID from wwv_flow_files
    where UPDATED_BY = :APP_USERID
    and LAST_UPDATED = (select max(LAST_UPDATED) from wwv_flow_files where UPDATED_BY = :APP_USERID));

  • Error : ORA-01403 no data found (Portal Page)

    hi you all,
    I have this confusing bug "or something" on my portal. I have created 5 tabs on my page. And everything wwas working fine until I added discoverer portlets that view's graph. Once this portlet was in and the user views the page, users can no longer click on other tabs to view it. It prompts on the page and Error stating
    Error : ORA-01403 no data found
    Please help if anyone have any idea on this
    thanks
    Saran

    This forum is for posting feedback about the OTN site.
    The best place for your question is probably a Portal forum.
    There is a list of Portal forums here:
    http://forums.oracle.com/forums/index.jsp?cat=13

  • ORA-01403: no data found ---- FRM-40735: WHEN-VALIDATE-ITEM trigger raised

    Scenario: I have one Master Detail form. after entering values in master Form, Navigate to Detail form, there I have to enter more that 5000 lines, it's very tough for user to enter huge amount of data.
    Workaround: Give one button on Master form and written a cursor to populate all the 5000(relavent) number of record on detail block.
    Issue: while populating detail data block after around 3000 record detail form start showing Error as
    ORA-01403: no data found
    FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-06502.
    Need suggestion
    Code Written on find button as below
    BEGIN
              --XX customized
              if (:ADJ_IP_CTRL.DUE_DT_FROM is null OR :ADJ_IP_CTRL.DUE_DT_TO is null) then
              fnd_message.set_string('Due Date from and Due Date To Must be entered.');
              fnd_message.Show;
              raise form_trigger_failure;
              end if;
         BEGIN     
              go_block('ADJ_INV_PAY');
    clear_block(no_validate);
         for inv_rec in (
                             SELECT v.invoice_num,
              v.invoice_id,
              v.invoice_type,
              v.pay_alone,
              v.exclusive_payment_flag,
              v.payment_num,
              v.amount_remaining,
              --TO_CHAR (v.amount_remaining,fnd_currency.get_format_mask(v.currency_code, 42)) char_amount_remaining,
              TO_CHAR (v.amount_remaining,'FM999G999G999G999G999G999G999G999G990D00') char_amount_remaining,
              ap_payment_schedules_pkg.get_discount_available (
              v.invoice_id,
              v.payment_num,
              :pay_sum_folder.check_date,
              :pay_sum_folder.currency_code)
              discount_available,
              /*TO_CHAR (ap_payment_schedules_pkg.get_discount_available (
              v.invoice_id,
              v.payment_num,
              :pay_sum_folder.check_date,
              :pay_sum_folder.currency_code),
              fnd_currency.get_format_mask (v.currency_code, 42))*/
              TO_CHAR (ap_payment_schedules_pkg.get_discount_available (
              v.invoice_id,
              v.payment_num,
              :pay_sum_folder.check_date,
              :pay_sum_folder.currency_code),'FM999G999G999G999G999G999G999G999G990D00')
              char_discount_available,
              ap_payment_schedules_pkg.get_discount_date (
              v.invoice_id,
              v.payment_num,
              :pay_sum_folder.check_date)
              disc_date,
              v.always_take_disc_flag,
              v.discount_amount_available,
              v.discount_date,
              v.second_discount_date,
              v.second_disc_amt_available,
              v.third_discount_date,
              v.third_disc_amt_available,
              v.gross_amount,
              v.description,
              v.accts_pay_code_combi_id,
              v.due_date,
              v.REMIT_TO_SUPPLIER_NAME,
              v.REMIT_TO_SUPPLIER_ID,
              v.REMIT_TO_SUPPLIER_SITE,
              v.REMIT_TO_SUPPLIER_SITE_ID,
              v.RELATIONSHIP_ID,
              v.external_bank_account_id,
              ieba.bank_account_num external_bank_account_num,
              ieba.bank_account_name external_bank_account_name
              FROM ap_invoices_ready_to_pay_v v, iby_ext_bank_accounts ieba
              WHERE v.party_id = :pay_sum_folder.party_id /* and v.invoice_num like :adj_inv_pay.invoice_num||'%' */
              AND ( (:pay_sum_folder.payment_type_flag =
              'M')
              OR (:pay_sum_folder.payment_type_flag =
              'R'
              AND v.invoice_type IN
              ('CREDIT',
              'STANDARD',
              'DEBIT',
              'EXPENSE REPORT',
              'MIXED',
              'AWT'))
              OR /*Bug5948003, Bug6069211*/
              (:pay_sum_folder.payment_type_flag =
              'Q'
              /*AND (v.vendor_site_id =
              :pay_sum_folder.vendor_site_id
              OR v.invoice_type =
              'PAYMENT REQUEST')*/
              AND ( (:SYSTEM.LAST_RECORD =
              'TRUE'
              AND :SYSTEM.cursor_record =
              '1')
              OR (NVL (
              v.exclusive_payment_flag,
              'N') =
              'N'
              AND NVL (
              :parameter.pay_alone,
              'N') =
              'N'))))
              AND v.currency_code = :pay_sum_folder.currency_code
              AND v.payment_method_code = :pay_sum_folder.payment_method_code
              AND NVL (v.payment_function, 'PAYABLES_DISB') =
              NVL (:pay_sum_folder.payment_function, 'PAYABLES_DISB')
              AND v.set_of_books_id = :pay_sum_folder.set_of_books_id
              AND NVL (v.future_dated_payment_ccid, -1) =
              DECODE (:parameter.manual_fdp_site_acct_src_flag,
              'Y', NVL (:parameter.site_fdp_account_ccid, -1),
              NVL (v.future_dated_payment_ccid, -1))
              AND v.external_bank_account_id = ieba.ext_bank_account_id(+)
              AND v.due_date BETWEEN :ADJ_IP_CTRL.DUE_DT_FROM and :ADJ_IP_CTRL.DUE_DT_TO
                                  ORDER BY v.due_date, UPPER (invoice_num)          
                        --added 08apr2012 (end)
              removed 08apr2012 ORDER BY UPPER (invoice_num)
              ) loop
                   :ADJ_INV_PAY.INVOICE_NUM := inv_rec.INVOICE_NUM;
    :ADJ_INV_PAY.INVOICE_ID := inv_rec.INVOICE_ID;
    :ADJ_INV_PAY.INVOICE_TYPE := inv_rec.INVOICE_TYPE;
    :ADJ_INV_PAY.EXCLUSIVE_PAYMENT_FLAG := inv_rec.EXCLUSIVE_PAYMENT_FLAG;
    :ADJ_INV_PAY.PAYMENT_NUM := inv_rec.PAYMENT_NUM;
    :ADJ_INV_PAY.AMOUNT_REMAINING := inv_rec.AMOUNT_REMAINING;
    :ADJ_INV_PAY.DISCOUNT_AVAILABLE:= inv_rec.DISCOUNT_AVAILABLE;
    :ADJ_INV_PAY.DISC_DATE := inv_rec.DISC_DATE;
    :ADJ_INV_PAY.ALWAYS_TAKE_DISC_FLAG := inv_rec.ALWAYS_TAKE_DISC_FLAG;
    :ADJ_INV_PAY.DISCOUNT_AMOUNT_AVAILABLE := inv_rec.DISCOUNT_AMOUNT_AVAILABLE;
    :ADJ_INV_PAY.SECOND_DISCOUNT_DATE := inv_rec.SECOND_DISCOUNT_DATE;
    :ADJ_INV_PAY.SECOND_DISC_AMT_AVAILABLE:= inv_rec.SECOND_DISC_AMT_AVAILABLE;
    :ADJ_INV_PAY.THIRD_DISCOUNT_DATE:= inv_rec.THIRD_DISCOUNT_DATE;
    :ADJ_INV_PAY.THIRD_DISC_AMT_AVAILABLE := inv_rec.THIRD_DISC_AMT_AVAILABLE;
    :ADJ_INV_PAY.GROSS_AMOUNT := inv_rec.GROSS_AMOUNT;
    :ADJ_INV_PAY.ACCTS_PAY_CODE_COMBINATION_ID := inv_rec.ACCTS_PAY_CODE_COMBI_ID;
    :ADJ_INV_PAY.DUE_DATE := inv_rec.DUE_DATE;
    :ADJ_INV_PAY.REMIT_TO_SUPPLIER_NAME := inv_rec.REMIT_TO_SUPPLIER_NAME;
    :ADJ_INV_PAY.REMIT_TO_SUPPLIER_ID := inv_rec.REMIT_TO_SUPPLIER_ID;
    :ADJ_INV_PAY.REMIT_TO_SUPPLIER_SITE := inv_rec.REMIT_TO_SUPPLIER_SITE;
    :ADJ_INV_PAY.REMIT_TO_SUPP_SITE_ID := inv_rec.REMIT_TO_SUPPLIER_SITE_ID;
    :ADJ_INV_PAY.APS_EXTERNAL_BANK_ACCOUNT_ID := inv_rec.EXTERNAL_BANK_ACCOUNT_ID;               
    --               go_item ('ADJ_INV_PAY.INVOICE_NUM');
    --               EXECUTE_TRIGGER('WHEN-VALIDATE-ITEM');
              validate(record_scope);
              if form_success then
              next_record;
              end if;
              end loop;
              first_record;
         exception
                   when others then
                   raise form_trigger_failure;
              END;
    synchronize;
    END;
    Thanks
    -Krishn

    Hello Krishn,
    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
    user12266683 wrote:
    Scenario: I have one Master Detail form. after entering values in master Form, Navigate to Detail form, there I have to enter more that 5000 lines, it's very tough for user to enter huge amount of data.
    Workaround: Give one button on Master form and written a cursor to populate all the 5000(relavent) number of record on detail block.
    Issue: while populating detail data block after around 3000 record detail form start showing Error as
    ORA-01403: no data found
    FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-06502.
    Need suggestion
    ORA-01403: no data found clearly indicate that you have SQL Select statement in WHEN-VALIDATE-ITEM trigger and does not handled EXCEPTION
    add exception in your select statement.
    Hope it's clear..
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.*

  • Strange problem: ORA-01403: no data found when report has a sort

    Hi,
    I have a report which behaves very strangely but only for one particular user. The report runs fine when no columns are set as sort-by in the report attributes. As soon as I try and set a column to sort (any column, it doesn't matter) this user gets the error message:
    failed to parse SQL query:
    ORA-01403: no data found
    appear where the report should be on the page. The rest of the page displays OK. No other users are affected. If I remove the sort then the report is OK for this user (unsorted though!)
    The report is a structured query with custom column headings, nothing unusual, quite basic. I have tried exporting and reimporting the page but it doesn't fix it. Same behaviour for this particular page in our test system as well.
    I could rebuild the page but I'd rather know what is wrong in case it happens to some other region.
    Thanks,
    Steve

    Steve,
    The reports engine stores the sort settings in the user preferences. This is done so that when you return to a report, it maintains the earlier sort settings. Like in your response to the HTML DB studio posting, you would keep your report sorted by "Created On" descending or ascending even when you come back another time. It's save to remove those preferences; all that's going to happen is that your users will see the report using the report's default settings the next time they go to that page. I will try to investigate this problem further, whatever additional information you can provide, will be helpful,
    Marc

  • NEED HELP IN CONFLICT HANDLER ERROR ORA-01403: no data found

    Hi All,
    I am using Oracle Streams to replicate the data...
    I need to update the records on the destination with some particular condition like if USER_COUNTRY = 'XXX' then the data need to be updated in the destination side else skip ...
    I wrote the procedure ..below .. the data is not replicating and found the below error from dba_apply_error..
    ORA-01403: no data found
    ORA-06512: at "SYS.LCR$_ROW_RECORD", line 419
    Table called history_row_lcrs is created in the strmadmin to store the lcr values...
    CREATE OR REPLACE PROCEDURE proc_test(in_any sys.anydata)IS
    lcr sys.lcr$_row_record;
    rc pls_integer;
    v_type varchar2(20);
    col_1 sys.anydata;
    lcr_usercountry varchar2(20);
    TRANS varchar2(20);
    skip_routine Exception;
    BEGIN
    rc:=in_any.GetObject(lcr);
    v_type:=lcr.get_command_type();
    col_1:=lcr.get_value('NEW','USER_COUNTRY');
    rc:=col_1.GetVarchar2(lcr_usercountry);
    for x in ( select user_country from TEST.TESTREP1
    where USER_COUNTRY=lcr_usercountry)
    Loop
    IF (x.USER_COUNTRY = 'XXX')
    THEN
    insert into strmadmin.history_row_lcrs VALUES (SYSDATE, lcr.GET_SOURCE_DATABASE_NAME(), lcr.GET_COMMAND_TYPE(),
    lcr.GET_OBJECT_OWNER(), lcr.GET_OBJECT_NAME(), lcr.GET_TAG(), lcr.GET_TRANSACTION_ID(), lcr.GET_SCN(),
    lcr.GET_COMMIT_SCN,lcr.GET_VALUES('old'), lcr.GET_VALUES('new', 'n'));
    lcr.EXECUTE(true);
    ELSE
    Raise Skip_routine;
    END IF;
    END Loop;
    Exception
    when skip_routine Then
    null;
    END;
    BEGIN
    DBMS_APPLY_ADM.SET_DML_HANDLER(
    object_name => 'TEST.TESTREP1',
    object_type => 'TABLE',
    operation_name => 'UPDATE',
    error_handler => false,
    user_procedure => 'STRMADMIN.PROC_TEST',
    apply_database_link => NULL,
    apply_name => NULL);
    END;
    Please try to help me if am doing something wrong...because I need to update only one colums am using DML_HANDLER instead of SET_UPDATE_CONFLICT_HANDLER...
    Any other inputs are also appreciated...
    Thanks In Advance and appreciate for the quick reply...

    I fired the query, am not getting any output from dbms_output.put_line('..|USER_COUNTRY..');
    Is that no data is reading or may be any reason else..
    in this table store_id is the primary key ..
    SQL> set serveroutput on
    SQL> CREATE OR REPLACE PROCEDURE test(in_any sys.anydata) IS
    2 lcr sys.lcr$_row_record;
    3 rc pls_integer;
    4 v_type varchar2(20);
    5 col_1 sys.anydata;
    6 col_2 sys.anydata;
    7 lcr_usercountry varchar2(20);
    8 lcr_storeid number;
    9 TRANS varchar2(20);
    10 store_id number;
    11 USER_COUNTRY varchar2(20);
    12
    13 BEGIN
    14 rc:=in_any.GetObject(lcr);
    15 v_type:=lcr.get_command_type();
    16 col_1:=lcr.get_value('NEW','USER_COUNTRY');
    17 rc:=col_1.GetVarchar2(lcr_usercountry);
    18 col_2:=lcr.get_value('NEW','STORE_ID');
    19 rc:=col_2.getnumber(lcr_storeid);
    20 select user_country into user_country from dev03.testrep1 where user_country=lcr_usercountry and store_id=lcr_storeid;
    21 dbms_output.put_line('---------||USER_COUNTRY ||-----------');
    22 END;
    23 /
    Procedure created.
    Thanks for your help ....

  • Error ORA-01403: no data found is not raised using jdbc

    Hy there I have a problem receiving exceptions from oracle jdbc driver.
    I have the following exception stack if i call insert on a view
    using an instead of trigger.
    ORA-01403: no data found
    ORA-04088: error during execution of trigger
    'MYUSER.MY_VIEW_INSERT'
    if I do the insert by sql worksheet.
    If I do same insert using the following driver
    dbDriver = new intersolv.jdbc.sequelink.SequeLinkDriver();
    I will receive this exception:
    java.sql.SQLException: [INTERSOLV][SequeLink JDBC Driver][ORACLE]ORA-01403: Keine Daten gefunden
    Now if I do same thing using oracle driver:
    dbDriver = new oracle.jdbc.driver.OracleDriver();
    there will no exception be raised!
    here is my code:
    public class myFrame extends Frame
    public static void main( String[] args )
    Frame myFrame = new Frame();
    DbPflege dbPanel = new DbPflege();
    Driver dbDriver = null;
    String connectString = null;
    try
    if( args.length != 0 )
    System.out.println( "main: use sequelink!" );
    connectString = "jdbc:sequelink://myServer:4003/[Oracle]";
    dbDriver = new intersolv.jdbc.sequelink.SequeLinkDriver();
    else
    System.out.println( "main: use oracle!" );
    connectString = "jdbc:oracle:thin:@myServer:1521:idb";
    dbDriver = new oracle.jdbc.driver.OracleDriver();
    DriverManager.registerDriver( dbDriver );
    dbPanel.con = DriverManager.getConnection(connectString, "user", "pwd" );
    catch( Exception ex )
    System.out.println( "main: ERROR: " + ex );
    ex.printStackTrace();
    void jBtnExecute_actionPerformed(java.awt.event.ActionEvent event)
    Statement stmt = null;
    int updateCount = -1;
    int colCount = -1;
    ResultSet rs = null;
    ResultSetMetaData rsMeta = null;
    try
    stmt = con.createStatement();
    stmt.execute( textAreaInput.getText() );
    catch( Exception ex )
    textAreaOutput.append( ex.toString() );
    thanks for your help!!!!

    Hi,
    You should run you query in sql workshop with the expected values (which are set after user clicks Save or Apply changes button) for P10_CR_BOM_CODE and P10_CR_ID.
    Also, please have an exception block in the process to catch any exception and make an appropriate Insert into some user defined error-log table. It would be better to log the P10_CR_BOM_CODE and P10_CR_ID values in case of exception.
    These might help you to figure out the cause of exception.
    Regards,
    Mangal

  • Error ORA-01403 no data found upgrade database to 10.2.0.3

    Hi,
    I am upgrading a database from 8.1.7.4 to 10.2.0.3. I install the software and i create and configure a new listener. When i am try to execute database upgrading assintant i can see my two databases but when i click one of them, and click next the error appears:
    ORA-01403 no data found
    ORA-06512 at line 1560
    I don´t know the reason.
    Thanks for your help.

    Going by your [earlier thread|http://forums.oracle.com/forums/thread.jspa?threadID=852649&tstart=0], I presume that it is you are now able to connect to a database using the 10.2.0.3 oracle_home.
    Did you run through the pre-upgrade verification steps at the URL provided earlier ?
    If you are encountering an error, surely you can post which script and which procedure is failing ?

  • HR_EMPLOYEE_API.CREATE_EMPLOYEE  error ORA-01403: no data found

    Hi
    I am getting below error,
    here hard coded values are same as i entered in front end.
    Business Group ID :-> 81
    Error Occured in API Block :-> ORA-01403: no data found
    here is the my code
    CREATE OR REPLACE PROCEDURE APPS.XXPER_EMP_API1(errbuf OUT VARCHAR2
    ,retcode OUT VARCHAR2
    IS
    ln_person_id NUMBER;
    ln_assignment_id NUMBER;
    ln_per_object_version_number NUMBER;
    ln_asg_object_version_number NUMBER;
    ln_per_comment_id NUMBER;
    ln_assignment_sequence NUMBER;
    gn_business_group_id NUMBER:=apps.fnd_global.per_business_group_id;
    ld_per_effective_start_date DATE;
    ld_per_effective_end_date DATE;
    lc_registered_disabled VARCHAR2(30);
    lc_title VARCHAR2(30);
    lc_assignment_number VARCHAR2(300);
    lb_name_combination_warning BOOLEAN;
    lb_assign_payroll_warning BOOLEAN;
    lb_orig_hire_warning BOOLEAN;
    lc_full_name apps.per_all_people_f.full_name%TYPE;
    lc_employee_number apps.per_all_people_f.employee_number%TYPE;
    BEGIN
    fnd_file.put_line(fnd_file.log,RPAD('*',80,'*'));
    fnd_file.put_line(fnd_file.log,'Business Group ID :-> '||gn_business_group_id);
    --l_gender Get from hr_lookups where lookup_type = 'SEX' AND enabled_flag='Y'
    BEGIN
    APPS.Hr_General.G_DATA_MIGRATOR_MODE := 'Y';
    APPS.Hr_Employee_Api.Create_Employee
    (p_validate => FALSE
    ,p_hire_date => SYSDATE-100
    ,p_business_group_id => 81
    ,p_last_name => 'G1LTest'
    ,p_sex => 'M'
    ,p_person_type_id => 1120
    ,p_per_comments => NULL
    ,p_date_employee_data_verified => NULL
    ,p_date_of_birth => TO_DATE('20-OCT-1982','DD-MON-
    ,p_email_address => NULL
    ,p_employee_number => lc_employee_number
    ,p_expense_check_send_to_addres => NULL
    ,p_first_name => 'G1FTest'
    ,p_known_as => NULL
    --,p_marital_status => 'S'
    ,p_middle_names => NULL
    ,p_nationality => NULL
    ,p_national_identifier => NULL
    ,p_previous_last_name => NULL
    ,p_registered_disabled_flag => NULL
    ,p_title => 'MR.'
    ,p_vendor_id => NULL
    ,p_work_telephone => NULL
    ,p_attribute_category => 81
    ,p_attribute1 => NULL
    ,p_attribute2 => NULL
    ,p_attribute3 => NULL
    ,p_attribute4 => NULL
    ,p_attribute5 => NULL
    ,p_attribute6 => NULL
    ,p_attribute7 => NULL
    ,p_attribute8 => NULL
    ,p_attribute9 => NULL
    ,p_attribute10 => NULL
    ,p_attribute11 => NULL
    ,p_attribute12 => NULL
    ,p_attribute13 => NULL
    ,p_attribute14 => NULL
    ,p_attribute15 => NULL
    ,p_attribute16 => NULL
    ,p_attribute17 => NULL
    ,p_attribute18 => NULL
    ,p_attribute19 => NULL
    ,p_attribute20 => NULL
    ,p_attribute21 => NULL
    ,p_attribute22 => NULL
    ,p_attribute23 => NULL
    ,p_attribute24 => NULL
    ,p_attribute25 => NULL
    ,p_attribute26 => NULL
    ,p_attribute27 => NULL
    ,p_attribute28 => NULL
    ,p_attribute29 => NULL
    ,p_attribute30 => NULL
    ,p_per_information_category => 'AE'
    -- p_per_information_category - Obsolete parameter, do not use
    ,p_per_information1 => NULL
    ,p_per_information2 => NULL
    ,p_per_information3 => NULL
    ,p_per_information4 => NULL
    ,p_per_information5 => NULL
    ,p_per_information6 => NULL
    ,p_per_information7 => NULL
    ,p_per_information8 => NULL
    ,p_per_information9 => NULL
    ,p_per_information10 => NULL
    ,p_per_information11 => NULL
    ,p_per_information12 => NULL
    ,p_per_information13 => NULL
    ,p_per_information14 => NULL
    ,p_per_information15 => NULL
    ,p_per_information16 => NULL
    ,p_per_information17 => NULL
    ,p_per_information18 => 205
    ,p_per_information19 => NULL
    ,p_per_information20 => NULL
    ,p_per_information21 => NULL
    ,p_per_information22 => NULL
    ,p_per_information23 => NULL
    ,p_per_information24 => NULL
    ,p_per_information25 => NULL
    ,p_per_information26 => NULL
    ,p_per_information27 => NULL
    ,p_per_information28 => NULL
    ,p_per_information29 => NULL
    ,p_per_information30 => NULL
    ,p_date_of_death => NULL
    ,p_background_check_status => 'N'
    ,p_background_date_check => NULL
    ,p_blood_type => NULL
    ,p_correspondence_language => NULL
    ,p_fast_path_employee => NULL
    ,p_fte_capacity => NULL
    ,p_honors => NULL
    ,p_internal_location => NULL
    ,p_last_medical_test_by => NULL
    ,p_last_medical_test_date => NULL
    ,p_mailstop => NULL
    ,p_office_number => NULL
    ,p_on_military_service => 'N'
    ,p_pre_name_adjunct => NULL
    ,p_rehire_recommendation => NULL
    ,p_projected_start_date => NULL
    ,p_resume_exists => 'N'
    ,p_resume_last_updated => NULL
    ,p_second_passport_exists => 'N'
    ,p_student_status => NULL
    ,p_work_schedule => NULL
    ,p_suffix => NULL
    ,p_benefit_group_id => NULL
    ,p_receipt_of_death_cert_date => NULL
    ,p_coord_ben_med_pln_no => NULL
    ,p_coord_ben_no_cvg_flag => 'N'
    ,p_coord_ben_med_ext_er => NULL
    ,p_coord_ben_med_pl_name => NULL
    ,p_coord_ben_med_insr_crr_name => NULL
    ,p_coord_ben_med_insr_crr_ident => NULL
    ,p_coord_ben_med_cvg_strt_dt => NULL
    ,p_coord_ben_med_cvg_end_dt => NULL
    ,p_uses_tobacco_flag => NULL
    ,p_dpdnt_adoption_date => NULL
    ,p_dpdnt_vlntry_svce_flag => 'N'
    ,p_original_date_of_hire => SYSDATE-100
    ,p_adjusted_svc_date => NULL
    ,p_town_of_birth => NULL
    ,p_region_of_birth => NULL
    ,p_country_of_birth => NULL
    ,p_global_person_id => NULL
    ,p_party_id => NULL
    ,p_person_id => ln_person_id
    ,p_assignment_id => ln_assignment_id
    ,p_per_object_version_number => ln_per_object_version_number
    ,p_asg_object_version_number => ln_asg_object_version_number
    ,p_per_effective_start_date => ld_per_effective_start_date
    ,p_per_effective_end_date => ld_per_effective_end_date
    ,p_full_name => lc_full_name
    ,p_per_comment_id => ln_per_comment_id
    ,p_assignment_sequence => ln_assignment_sequence
    ,p_assignment_number => lc_assignment_number
    ,p_name_combination_warning => lb_name_combination_warning
    ,p_assign_payroll_warning => lb_assign_payroll_warning
    ,p_orig_hire_warning => lb_orig_hire_warning
    EXCEPTION
    WHEN OTHERS THEN
    fnd_file.put_line(fnd_file.log,'Error Occured in API Block :-> '||SQLERRM);
    END;
    fnd_file.put_line(fnd_file.log,RPAD('*',80,'*'));
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line(fnd_file.log,'Error Message :-> '||SQLERRM);
    fnd_file.put_line(fnd_file.log,RPAD('*',80,'*'));
    END XXPER_EMP_API1;
    Please let me know if any body faced this situation & how to solve it.
    Thanks & Rgeards
    Gireesh

    Problem solved by replacing SYSDATE with TRUNC(SYSDATE).
    Thanks for Clive Tucker.
    http://www.hcmaces.com/
    Edited by: Gireesh PV on May 7, 2010 4:22 AM

Maybe you are looking for

  • Flex 3 Migration Problems

    Hi - We are having significant problems after migrating between Beta 3 and the GA release. Differences in the accordion component, comboboxes, spacing, control focus, etc. Has anyone else had these problems? Is there a list of the things that changed

  • Login button not working on Applicatin Express Login screen

    Hi, I'm trying to upgrade default apex version that comes with xe to apex 3.2.1. I've listed down the steps I followed to upgrade apex. After following all the steps, I'm able to login to my application, however not able to login to apex workspace us

  • What's the best Logic Pro training?

    Have just converted from Cubase PC to LP mac, after 10 years..help! What are the best training resources around?

  • Split Invoice due to different delivery address.

    Hi, I have an issue because I want to create only one invoice from two deliveries also from the same sales order. The system doesnu2019t create only one invoice due to the different delivery address in the Ship to party, the code is the same however

  • TrueType Font Not Working .. Help!

    So, for my work I have to use PeopleSoft for my Expense Reports, and they use a barcode at the top of the page that uses a font called "3 of 9 Barcode". i have downloaded the font, installed it into \Library\Fonts and verified it shows its installed.