Employee Salary Load API Error

Hi All,
I'm working on R12 ERP system, i have employee salary data file (including history data) to be loaded into R12 system.I have problem loading, getting error 'ORA-2000, element is not effective in PAY_ELEMENT_ENTRIES_F' table, but i have element entry in the required effective date range, then i processed the one employee salary data among error record , then it was processed without any issue; i processed individually 3 to 4 error records, everything was successful; if i run the bulk of employees, i don't know why it's giving this error.....could somebody please help me at the earliest. Is this because if any element entries are created manually, what could be possible reasons.....
API Used:hr_maintain_proposal_api.create_salary_proposal
Code Format:
Declare
--main cursor picking distinct employee numbers from staging table
cursor c1_main is select distinct employee_number from emp_sal_stg order by employee_number,change_date;
--cursor to pick the details for each employee from staging table
cursor c1_inner(p_emp_num varchar2) is select * from emp_sal_stg where employee_number=p_emp_num order by change_date;
p_proposal_id number;
begin
for i_main in c1_main loop
   <<inner_loop>>
   for i_inner in c1_inner(i_main.employee_number) loop
-- just posting important columns
  begin
    hr_maintain_proposal_api.create_salary_proposal(p_assignment_id => i_inner.assignment_id
                                                                           ,p_business_group_id => i_inner.business_group_id
                                                                           ,p_change_date => i_inner.change_date
                                                                           ,p_date_to => i_inner.date_to
                                                                           ,p_pay_proposal_id => p_proposal_id -- out
            if p_proposal_id is not null then
              update staging table with proposal_id
           end if;
         exception
        when others then
        fnd_file.put_line(fnd_file.log,'for emp num:||i_inner.employee_number);
       exit inner_loop; -- exiting inner loop, if any record fails for an employee, don't want to process remaining records for that employee
       end;
  end loop inner_loop;
end loop;
exception
when others then
fnd_file.put_line(fnd_file.log,sqlerrm);
end;
Kindly help at the earliest.
Thanks

Found out the issue was with p_change_date where one needs to convert actual date string using to_date instead of using SYSDATE...Never use SYSDATE to test ...use an actual date.
----------------- Thread Closed --------------

Similar Messages

  • Cannot View the Employee Salary Report in BI Publisher

    Hi, everyone,
    I have installed the Standalone version of bi publisher for windows (bipublisher_windows_x86_101341).
    I have logged in as administrator, I have connected to my oracle database 11g thru jdbc succesfully. i cannot view the Employee Salary report. It gives me the error
    Paramter name: dept Io exception: Invalid number format for port number.
    The sample schemas are also installed on my database.
    Could anyone guide me as i am very new to bi publisher.
    Thanks in advance....

    Hi Can you please let me know what did you do to fix this issue. I am having same issue. Thanks in advance.

  • I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a H

    I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a HP ENVY Phoenix, fully loaded, 1 1/2 years old.

    Nevermind I fixed it. Thank you.

  • Direct Path SQL Loader get error ORA-01555

    Hi All,
    11.2.0.1 DB
    Has anyone here used sqlloader direct path option?
    Is there special setting I need for the Undo TS?
    I am testing my sqlloader direct path but I got error : ORA-01555: snapshot too old: rollback segment number 10 with name "_SYSSMU10$" too small
    I am only testing 100 records and I shutdown the database. And I am only the one using it. :(
    Does dropping the Undo TS and creating new one help resolve my issue?
    Thanks a lot,
    Kinz
    Edited by: KinsaKaUy? on 07-Nov-2012 03:33

    I drop my UNDOTS1 and recreate it to resolve if there are framentation in the TS itself , but to no avail, the same error persist :(
    Record 1: Rejected - Error on table EMPLOYEE.
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01555: snapshot too old: rollback segment number with name "" too small
    SYSTEM                         ONLINE
    _SYSSMU87_2780657351$          ONLINE
    _SYSSMU88_120427686$           ONLINE
    _SYSSMU89_1588874193$          ONLINE
    _SYSSMU90_2571046414$          ONLINE
    _SYSSMU91_1803654754$          ONLINE
    _SYSSMU92_2477693864$          ONLINE
    _SYSSMU93_1908993412$          ONLINE
    _SYSSMU94_985867735$           ONLINE
    _SYSSMU95_4165893730$          ONLINE
    _SYSSMU96_1502488804$          ONLINE
    _SYSSMU97_3533816217$          ONLINE
    _SYSSMU98_3954380786$          ONLINE
    _SYSSMU99_1314687851$          ONLINE
    _SYSSMU100_3542148152$         ONLINE
    _SYSSMU101_1249002234$         ONLINE
    _SYSSMU102_1520886654$         ONLINE
    _SYSSMU103_2785416951$         ONLINE
    _SYSSMU104_1530388055$         ONLINE
    _SYSSMU105_1995830672$         ONLINE
    _SYSSMU106_4584952$            ONLINE
    _SYSSMU107_1177768351$         ONLINE
    _SYSSMU108_3896986945$         ONLINE
    _SYSSMU109_2576315174$         ONLINE
    _SYSSMU110_2786589320$         ONLINE
    _SYSSMU111_1195961439$         ONLINE
    _SYSSMU112_2612035115$         ONLINE
    _SYSSMU113_1697198479$         ONLINE
    _SYSSMU114_3939726644$         ONLINE
    _SYSSMU115_467875145$          ONLINE
    _SYSSMU116_2826382876$         ONLINE
    _SYSSMU117_3650068864$         ONLINE
    _SYSSMU118_92260707$           ONLINE
    _SYSSMU119_2322108460$         ONLINE
    _SYSSMU120_2583709550$         ONLINE
    _SYSSMU121_1279604730$         ONLINE
    _SYSSMU122_2128414833$         ONLINE
    _SYSSMU123_1365970622$         ONLINE
    _SYSSMU124_1855929876$         ONLINE
    _SYSSMU125_1511578664$         ONLINE
    _SYSSMU126_3219352797$         ONLINE
    _SYSSMU127_2412556110$         ONLINE
    _SYSSMU128_2102547636$         ONLINE
    _SYSSMU129_447164998$          ONLINE
    _SYSSMU130_3851265156$         ONLINE
    _SYSSMU131_3046352603$         ONLINE
    _SYSSMU132_2987406815$         ONLINE
    _SYSSMU133_983809304$          ONLINE
    _SYSSMU134_928979873$          ONLINE
    _SYSSMU135_3248183819$         ONLINE
    _SYSSMU136_811112856$          ONLINE
    _SYSSMU137_1958351427$         ONLINE
    _SYSSMU138_2222543$            ONLINE
    _SYSSMU139_3962620689$         ONLINE
    _SYSSMU140_2711665463$         ONLINE
    _SYSSMU141_3724825495$         ONLINE
    _SYSSMU142_1818253355$         ONLINE
    _SYSSMU143_1370485269$         ONLINE
    _SYSSMU144_2442636386$         ONLINE
    59 rows selected.
    SQL>Is there something missing in my sqlloader parameter? but if I use "ordinary" path it will load successfully. But not with "direct" path :( Any ideas please

  • Employee salary details report

    dear abaper ,
                         please send a HR report in which employee salary details are given.
                                                           Thank you sir.
    Moderator Message: Warned many times. UserID sent for deletion.
    Edited by: kishan P on Dec 23, 2011 1:42 PM

    Hi,
    1.) Check the RT , generate the WT reporter for the IN period view
    2.) Run the simulation document only for this employee
    3.) If the RT exist for the current month the posting document will be created
    4.) You might be making some error in the selection screen.just run only for this employee
    Regards
    Hemant V. Mahale

  • API Error: table does not exists

    Hello every one,
    I have a procedure to load the learning management data history through API. I get error that the table or view does not exists which I don't know why.
    Here is my procedure:
    CREATE OR REPLACE PROCEDURE OLM_CLASS_HISTORY
    AUTHID CURRENT_USER AS
    lv_BOOKING_ID NUMBER;
    lv_BOOKING_STATUS_TYPE_ID NUMBER;
    lv_EVENT_ID NUMBER;
    lv_PERSON_ID NUMBER;
    lv_DATE_BOOKING_PLACED DATE;
    lv_OBJECT_VERSION_NUMBER NUMBER;
    lv_FINANCE_LINE_ID NUMBER;
    CURSOR C1 IS
    SELECT OLM_NUMBER,
    OLM_DATE_OF_CLASS,
    OLM_CLASS
    FROM OLM_HISTORY_CLASS;
    BEGIN
    FOR C1_REC IN C1
    LOOP
    begin
    select PAF.PERSON_ID INTO lv_PERSON_ID
    from PER.PER_ALL_PEOPLE_F PAF
    where PAF.EMPLOYEE_NUMBER= C1_REC.OLM_NUMBER
    and to_date (C1_REC.OLM_DATE_OF_CLASS, 'DD-Mon-YY HH24:MI:SS ')
    between to_date(paf.effective_start_date, 'DD-Mon-YY HH24:MI:SS')
    and to_date (paf.effective_end_date, 'DD-Mon-YY HH24:MI:SS');
    exception
    WHEN OTHERS THEN
    DECLARE
    error_code NUMBER :=SQLCODE;
    error_msg varchar2 (200) :=SUBSTR(SQLERRM,1,200);
    BEGIN
    DBMS_OUTPUT.PUT_LINE('.');
    DBMS_OUTPUT.PUT_LINE('PID Error: ' || error_code || ' - ' || error_msg);
    DBMS_OUTPUT.PUT_LINE('.');
    END;
    END;
    lv_DATE_BOOKING_PLACED:= C1_REC.OLM_DATE_OF_CLASS;
    BEGIN
    SELECT DISTINCT AOET.EVENT_ID INTO lv_EVENT_ID
    FROM APPS_APPLMGR.ota_events_tl AOET
    WHERE
    AOET.TITLE = C1_REC.OLM_CLASS;
    exception
    WHEN OTHERS THEN
    DECLARE
    error_code NUMBER :=SQLCODE;
    error_msg varchar2 (200) :=SUBSTR(SQLERRM,1,200);
    BEGIN
    DBMS_OUTPUT.PUT_LINE('.');
    DBMS_OUTPUT.PUT_LINE('EID Error: ' || error_code || ' - ' || error_msg);
    DBMS_OUTPUT.PUT_LINE('.');
    END;
    END;
    dbms_output.put_line('Event id:'||lv_event_id);
    dbms_output.put_line('Person id:'||lv_person_id);
    dbms_output.put_line('Booking date:'||lv_date_booking_placed);
    dbms_output.put_line('Ovn:'||lv_object_version_number);
    dbms_output.put_line('Finance line id:'||lv_finance_line_id);
    BEGIN
    APPS_APPLMGR.OTA_DELEGATE_BOOKING_API.CREATE_DELEGATE_BOOKING (P_VALIDATE => FALSE,
    P_EFFECTIVE_DATE => trunc(sysdate),
    P_BOOKING_ID => lv_BOOKING_ID,
    P_BOOKING_STATUS_TYPE_ID => '1016',
    p_delegate_person_id => lv_PERSON_ID,
    p_contact_id => NULL,
    P_BUSINESS_GROUP_ID => '0',
    P_EVENT_ID => lv_EVENT_ID,
    P_DATE_BOOKING_PLACED => lv_DATE_BOOKING_PLACED,
    P_INTERNAL_BOOKING_FLAG => 'Y',
    p_number_of_places => '1',
    P_OBJECT_VERSION_NUMBER => lv_OBJECT_VERSION_NUMBER,
    P_SUCCESSFUL_ATTENDANCE_FLAG => 'Y',
    P_FINANCE_LINE_ID => lv_FINANCE_LINE_ID);
    exception
    WHEN OTHERS THEN
    DECLARE
    error_code NUMBER :=SQLCODE;
    error_msg varchar2 (200) :=SUBSTR(SQLERRM,1,200);
    BEGIN
    DBMS_OUTPUT.PUT_LINE('.');
    DBMS_OUTPUT.PUT_LINE('API Error: ' || error_code || ' - ' || error_msg);
    DBMS_OUTPUT.PUT_LINE('.');
    END;
    END;
    END LOOP;
    COMMIT;
    --rollback;
    END;
    and now when I run this procedure,I am getting this error:
    PID Error: 100 - ORA-01403: no data found
    Event id:5684
    Person id:12530
    Booking date:14-DEC-11 00:00:00
    Ovn:
    Finance line id:
    API Error: -942 - ORA-00942: table or view does not exist
    I don't know if it is API which is making problem or my code. Please advice.
    Thanks,

    You are creating the procedure in which schema.
    does this user has permission to access the objects specified in the code.
    the issue must be with your code not the ebs api

  • Unknown API error - when hoovering over new DVD's at Redbox

    Loaded Firefox 4 yesterday and this morning when checking out new releases at Redbox I got this error "unknown API error" while hoovering over new releases. If you hoover over a DVD it details what the DVD is about but, instead of the details I got the above error. Prior to Firefox 4 release (earlier versions of Firefox) I did not get this error, and I do not get this error in IE 8 or IE 8 (64-bit edition) - unfortunately.

    Redbox says related to browsers not being updated; I don't think that is the case...must be a problem with Redbox..doesn't happen on any other of the numerous sites I visit...

  • API error in projects conversion

    I am using pa_project_pub.create_project api to load projects.
    The program errored with ERROR IN API
    Error Message (API ERROR) This role has already been assigned to this person during the specified period.
    Can anyone tell the reason for the above error.
    Thanks

    Does the API is giving project role to anyone ? Does it give any detailed
    error message?
    If the person has the project role then you may have to remove it and try the API again
    Rajesh ALex

  • JavaMail Api error 29521

    Hi,
    I have problems when attempt to load api to mail.jar and to activation.jar, the generated error is:
    ORA-29534: referenced object SYS.javax/mail/internet/ContentType could not be resolved, in many classes
    I use this command to load the api:
    loadjava -u sys/sysstech@stech -o -r -v -f -noverify -synonym -g public mail.zip
    I use Oracle 9 release 2 and j2sdk1.4.2_04
    Thanks for your Help

    user482060,
    Try the "-genmissing" and/or "-genmissingjar" options of the "loadjava" command. See the Oracle documentation for more details on these options.
    Good Luck,
    Avi.

  • DI API error while adding AP Invoice (Using serial Nos.)

    Hi,
    Im getting the following DI API error when adding an AP Invoice which has serial numbers and i cant seem to find any logical fault in the code.
    " [PCH1.WhsCode][line: 4] , 'This entry already exists in the following tables (ODBC -2035) "
    If anybody has encountered this error and found a solution kindly let me know.

    Hi Vivek,
    Are you trying to add same document number, serial number or so on?
    "entry exist " means like "duplicate key problem", I guess.
    Basically, whscode column in PCH1 table allows duplicating.
    So, I think serial number is duplicated among same item code.
    Hope this useful for you.
    Regards,
    Hyunil Choi.

  • Unable to down load file error 1321?

    Unable to down load file error 1321?
    Error_Message

    Hi grahamg,
    Please see my response in your other post: I am unable to download  Acrobat message reads Insuffient prileges to modify the file C:\ Program Files [ x 86] Adobe\ Acrobat 11.0\Acrobatwow_exe.
    Best,
    Sara

  • Employees PF contribution exceeds employees salary

    Dear All,
    In April month test payroll run i am getting this message"Employees PF contribution exceeds employees salary for some of the employee";Can anybody tell what is the reason behind this.There basic pay also showing negative in the log.
    We have just applied SAP Note 1568264
    regards
    Surajit Chanda

    Hello
    Under the normal scenario,Employee PF contribution should be 12% of his eligible pay or PF basis , based on the manner in which IT0587 is mainatined
    Can you check what is the value under /111 EPF Basis ?
    In the case of mid month joining/leaving or transfer scenarios, the PF Basis will be correspondingly prorated and so the contribution calculated will also be prorated  .
    Thanks and Kind Regards
    Ramana

  • Unable to load report error

    Hi
    This started with an asp.net application which I have been maintaining for several years, on an XP 32-bits box. Alas, the box died, and I have acquired a new Development machine, now with Windows 7/64-bits. I have installed Visual Studio 2010 and Crystal reports (13.0.,9), including runtime for 32 and 64 bits.
    I got the "unable to load report" error, and I think I have tried everything I could find on the web related to solving this issue.
    Finally I got Down to creating a new dummy asp.net application with a dummy report just displying the text TEST. This report Works fine when run from within VS, but if I deploy it to the web server on the Development machine I also get the unable to load report failure.
    I believe this is a configuration issue. The application has run fine for years, I just can't get it to Work on the new development machine.
    Please help
    Peter

    Make sure that process has read / write rights to the %TEMP% folder. Process Monitor may help.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Unable to load GUI error when trying to download newest flash player

    I had deleted the older flash player , 10.0.42.34 and tried to download 10.0.45.2. Went to the adobe site, clicked the link for "get adobe flash player" from the ADOBE home page .
    Got the "Unable to load GUI" error message, so I just went to the bottom of the download page and installed from this link here
    click here to download  (fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax.exe)
    Is that a legitimate way to download the flash player? I mean it put flash10e.ocx in C:\Windows\System32\macromed\Flash and in the manage add ons and in the add/remove programs version in Vista. Just want to make
    fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax.exe
    gave me the right and secure flashplayer download.
    thanks

    Hey habnots, like a lot of things in life, there is the hard way and the easy way. Your way just took longer:-)
    Regards,
    eidnolb

  • "Unable to load URL" error when importing VS2008 created WSDL

    One of my developers created a simple web service in Visual Studio 2008 that queries a database on our SQL Server 2005. I can view the web service results in a web browser with no problems. I can also pull up the WSDL in the web browser with no problems (http://<ip address>/Service.asmx?WSDL). However, when I try to load WSDL into a Web Service Connection in Xcelsius 2008, I get the "Unable to load URL" error.
    I've also tried to use the web service as a data source in Crystal Reports 2008, but I get another error:
    Logon failed.
    Details: Schema file is invalid
    error: src-resolve: element 'schema@http://www.w3.org/2001/XMLSchema' not found
    I've seen a post in which it looked like Crystal acknowledged this as a bug in the XML driver used by Crystal products, but it should be fixed in a service pack update. I've got the latest service packs and fix packs installed for both Xcelsius 2008 and Crystal Reports 2008.
    I scanned the information being sent/returned to Xcelsius using Fiddler and it looks like the request is getting through and the actual WSDL file is being returned to Xcelsius, so it shouldn't be an authentication issue. It seems like Xcelsius doesn't like the WSDL file for some reason. However, it is automatically generated by Visual Studio 2008.
    Any ideas as to how I can get Xcelsius to use this test web service?

    Having the same issues here also.
    I can see the wsdl file being accessed successfully in the web access log, but Xcelsius v5.3 return "unable to load URL"
    Only thing I can guess is that the schema is "untyped"
    So, nobody in SAP has a solution?

Maybe you are looking for