Create_gb_employee API - p_title not accepting the girls!

This is puzzling.
I have a PLSQL script that runs perfectly well loading new employees into ORACLE Financials via 3 API's.
The trouble is, where the employees have a title of either 'MISS', 'MRS.' or 'MS' they are erroring out on load.
Of course I have checked that these are setup correctly in the application Lookups as all my other titles - Mr, Sir, Prof etc.. all work fine. I even have a pre-load-update-temp-table script that converts all variations of Mrs/Miss/Ms to change them to whats setup in the LookUps prior to the API's picking them up.
The only thing I can think of is that there is a bug in the afore-mentioned API? Or can anyone make any further suggestions?
many thanks for reading..
Steven

The problem with the pasting up here all my code, then the code of API will run into pages..
Anyway, My script..
SET serveroutput ON SIZE 1000000 FORMAT WRAPPED
SET verify OFF
SET feedback OFF
DECLARE
-- Debugging/error handling
-- Work variables
   p_emp_number                       VARCHAR2 (14);
   v_rec_cnt                        NUMBER    := 0;
   insert_flag                      VARCHAR2 (8);
   err_num NUMBER;
   err_msg VARCHAR2(150);
   err_line  VARCHAR2(350);
   err_seq     number := 0;
   l_validate          BOOLEAN       DEFAULT FALSE;
   l_std_business_group_id       NUMBER := '0';
   l_default_code_comb_id       NUMBER := '217269';
   l_organization_id     NUMBER := '0';
   l_set_of_books_id   NUMBER := '1';
   l_job_id      NUMBER := '10';
   l_obj                            NUMBER;
   l_datetrack_update_mode       VARCHAR2 (30)  := 'CORRECTION';
   l_assignment_sequence            NUMBER;
   l_name_combination_warning       BOOLEAN  := FALSE;
   l_assign_payroll_warning         BOOLEAN    := FALSE;
   l_org_now_no_manager_warning     BOOLEAN;
   l_other_manager_warning          BOOLEAN;
   l_spp_delete_warning             BOOLEAN;
   l_entries_changed_warning        VARCHAR2 (30);
   l_tax_district_changed_warning   BOOLEAN;
   l_person_id                      NUMBER;
   l_assignment_id                  NUMBER;     
   l_special_ceiling_step_id        NUMBER;
   l_per_effective_end_date         DATE := to_date('11-Jul-2049','DD-MON-YYYY');
   l_people_group_id                NUMBER;
   l_group_name                     VARCHAR2 (30);
   l_assignment_number              VARCHAR2 (35);
   l_effective_end_date             DATE := to_date('11-Jul-2049','DD-MON-YYYY');
   l_date    DATE := SYSDATE;
   ip_p_address_id                  per_addresses.address_id%TYPE;
   ip_p_object_version_number       NUMBER;
   ip_p_party_id                    per_addresses.party_id%TYPE;
   l_per_object_version_number      NUMBER;
   l_asg_object_version_number      NUMBER;
   l_full_name                      VARCHAR2 (240);
   l_per_comment_id                 NUMBER;
   l_per_effective_start_date       DATE;
   l_concatenated_segments    VARCHAR2(240);
   l_soft_coding_keyflex_id      number;
   l_comment_id           number;
   l_no_managers_warning    BOOLEAN;
-- Get employee details info from work table
   CURSOR get_employee_details
   IS
     SELECT
  std_hire_date  ,std_last_name   ,std_sex   ,std_date_of_birth  ,std_email_address  ,LPAD(std_employee_number,8,'0')   std_employee_number, std_first_name  ,std_marital_status  ,std_middle_names  ,std_nationality  ,std_title  ,std_national_identifier
  ,std_address_line1  ,std_address_line2  ,std_address_line3  ,std_address_line4  ,std_post_code , std_telephone_1
  ,std_country  ,std_region  ,std_location_id,std_organization_id,std_supervisor_id,std_person_id,STD_POSITION_ID
        FROM SU_TEMPLOYEE_DETAILS;
-- checks employee details info from PER_ALL_PEOPLE_F table
   CURSOR c_check_employee (p_emp_number VARCHAR2)
   IS
  SELECT
     per.person_id, per.business_group_id,
             per.last_name, per.start_date, per.date_of_birth,
             per.email_address, per.employee_number, per.first_name,
             per.marital_status, per.middle_names, per.nationality,
             per.national_identifier, per.sex, per.title, padd.address_id,
             padd.primary_flag, padd.address_line1, padd.address_line2,
             padd.address_line3, padd.town_or_city, padd.postal_code,
             padd.telephone_number_1, paas.assignment_number, paas.object_version_number
        --  padd.telephone_number_2, padd.telephone_number_3, paas.job_id, paas.location_id,
        --  paas.organization_id, paas.assignment_type, paas.supervisor_id,
        --  paas.default_code_comb_id, paas.set_of_books_id, paas.period_of_service_id,
  FROM per_all_people_f per,
             per_all_assignments_f paas,
             per_addresses padd
       WHERE per.employee_number = p_emp_number
         AND per.person_id = padd.person_id
         AND paas.person_id(+) = per.person_id;
   emp_rec                          c_check_employee%ROWTYPE;
-- Cursor retrieves latest Object Version Number from per_assignments_f table..
CURSOR csr_ovn (cp_person_id in per_all_people_f.person_id%type)
   IS
      SELECT max(paas.object_version_number)
        FROM per_assignments_f paas, per_all_people_f per
       WHERE paas.person_id = per.person_id
         AND per.employee_number = paas.assignment_number
         AND per.person_id = cp_person_id;
BEGIN
-- Process each record in the work table
   FOR v_emp IN get_employee_details
   LOOP
-- determine whether customer already exists
      OPEN c_check_employee (v_emp.std_employee_number);
      FETCH c_check_employee
       INTO emp_rec;
      IF c_check_employee%NOTFOUND
      THEN
         insert_flag := 'I';
DBMS_OUTPUT.PUT_LINE ( 'Employee No: '    ||v_emp.std_employee_number );
      ELSE
         DBMS_OUTPUT.PUT_LINE ( 'Employee No: '    ||v_emp.std_employee_number  || '  already exists - please update      manually..'   );
         DBMS_OUTPUT.PUT (CHR (10));
         insert_flag := 'X';
      END IF;
      CLOSE c_check_employee;
-- Obtain the most recent Object Version Number..
      OPEN csr_ovn (v_emp.std_person_id);
      FETCH csr_ovn INTO l_obj;
     -- IF csr_ovn%NOTFOUND     THEN        RAISE NO_DATA_FOUND;   END IF;
      CLOSE csr_ovn;
-- Create new PER_ALL_PEOPLE_F and PER_ADDRESSES record from
--            info in  table record
      IF insert_flag = 'I'
      THEN
--         BEGIN                             -- Importing Employee Procedure --
      Hr_Employee_Api.create_gb_employee
                  (p_validate                       => l_validate,
                   p_hire_date                      => v_emp.std_hire_date,
                   p_business_group_id              => l_std_business_group_id,
                   p_date_of_birth                  => v_emp.std_date_of_birth,
                   p_email_address                  => v_emp.std_email_address,
                   p_first_name                     => v_emp.std_first_name,     
              p_middle_names                   => v_emp.std_middle_names,
                   p_last_name                      => v_emp.std_last_name,
                   p_sex                            => v_emp.std_sex,
                   p_ni_number                      => v_emp.std_national_identifier,
                   p_employee_number                => v_emp.std_employee_number,
                   p_person_id                      => l_person_id,
                   p_title                          => v_emp.std_title,
                   p_assignment_id                  => l_assignment_id,
                   p_per_object_version_number      => l_per_object_version_number,
                   p_asg_object_version_number      => l_asg_object_version_number,
                   p_per_effective_start_date       => l_per_effective_start_date,
                   p_per_effective_end_date         => l_per_effective_end_date,
                   p_full_name                      => l_full_name,
                   p_per_comment_id                 => l_per_comment_id,
                   p_assignment_sequence            => l_assignment_sequence,
          p_assignment_number              => l_assignment_number,
                   p_name_combination_warning       => l_name_combination_warning,
                   p_assign_payroll_warning         => l_assign_payroll_warning
        Hr_Person_Address_Api.create_person_address
                        (p_validate                     => l_validate,
                        p_effective_date               => v_emp.std_hire_date,
                        p_pradd_ovlapval_override      => NULL,
                         p_validate_county              => NULL,
                         p_person_id                    => l_person_id,
                         p_primary_flag                 => 'Y',
                         p_style                        => 'GB_GLB',
                         p_date_from                    => SYSDATE,
                         p_date_to                      => NULL,
                         p_address_type                 => NULL,
                         p_comments                     => NULL,
                         p_address_line1                => v_emp.std_address_line1,
                         p_address_line2                => v_emp.std_address_line2,
                         p_address_line3                => v_emp.std_address_line3,
                         p_town_or_city                 => v_emp.std_address_line4,
                         p_region_1                     => NULL,
                         p_region_2                     => NULL,
                         p_region_3                     => NULL,
                         p_postal_code                  => v_emp.std_post_code,
                         p_country                      => v_emp.std_nationality,
                         p_telephone_number_1           => NULL,
                         p_telephone_number_2           => NULL,
                         p_telephone_number_3           => NULL,
                         p_party_id                     => ip_p_party_id,
                         p_address_id                   => ip_p_address_id,
                         p_object_version_number        => l_obj
                Hr_Assignment_Api.update_emp_asg
                     (p_validate                    => l_validate,       
                      p_effective_date              => SYSDATE,  -- l_date, 
                      p_datetrack_update_mode       => l_datetrack_update_mode,
                      p_assignment_id               => l_assignment_id,
                      p_object_version_number       => l_obj,
                      p_supervisor_id               => v_emp.std_supervisor_id,
                      p_default_code_comb_id        => l_default_code_comb_id,
                      p_set_of_books_id             => l_set_of_books_id,
                      p_concatenated_segments       => l_concatenated_segments,      --IN/OUT
                      p_soft_coding_keyflex_id      => l_soft_coding_keyflex_id,          --IN/OUT
                      p_comment_id                  => l_comment_id,                         --IN/OUT
                      p_effective_start_date        => l_date,                                      --IN/OUT
                      p_effective_end_date          => l_effective_end_date,                 --IN/OUT
                      p_no_managers_warning         => l_no_managers_warning,    --IN/OUT
                      p_other_manager_warning       => l_other_manager_warning  --IN/OUT
               Hr_Assignment_Api.update_emp_asg_criteria
                  (p_validate                          => l_validate,
                   p_effective_date                    =>  SYSDATE,  -- l_date, 
                   p_datetrack_update_mode             => l_datetrack_update_mode,
                   p_assignment_id                     => l_assignment_id,
                   p_object_version_number             => l_obj,
                   p_organization_id                   => l_organization_id,
                   p_location_id                       => v_emp.std_location_id,
                   p_job_id                            => l_job_id,
                   p_position_id                       => v_emp.std_position_id,
                   p_special_ceiling_step_id           => l_special_ceiling_step_id,
                   p_effective_start_date              => l_date,         --per_effective_start_date,
                   p_effective_end_date                => l_effective_end_date,         --IN/OUT
                   p_people_group_id                   => l_people_group_id,  --IN/OUT
                   p_group_name                        => l_group_name,  --IN/OUT
                   p_org_now_no_manager_warning        => l_org_now_no_manager_warning, --IN/OUT
                   p_other_manager_warning             => l_other_manager_warning,  --IN/OUT
                   p_spp_delete_warning                => l_spp_delete_warning,  --IN/OUT
                   p_entries_changed_warning           => l_entries_changed_warning,  --IN/OUT
                   p_tax_district_changed_warning      => l_tax_district_changed_warning  --IN/OUT
       v_rec_cnt := v_rec_cnt + 1;
     DBMS_OUTPUT.PUT (CHR (10));
              DBMS_OUTPUT.PUT_LINE (   'There were '    || v_rec_cnt     || '  records read in..'       );
     DBMS_OUTPUT.PUT (CHR (10));
-- End of customer related details
      END IF;
   END LOOP;
   COMMIT;
   EXCEPTION
     WHEN NO_DATA_FOUND then     ROLLBACK;     
         WHEN OTHERS THEN
         ROLLBACK;
                            err_num := to_char(SQLCODE);      
                     err_msg := SUBSTR(SQLERRM, 1 , 150);
                            err_line := 'Oracle error (seqno=' || err_seq || ') ' || err_num ||' occurred processing Employee: '|| ' : '||err_msg;
                    dbms_output.put_line(err_line);
                   INSERT INTO su_sl_errors VALUES (err_num, err_msg,SYSTIMESTAMP); 
        END;
EXIT;cheers, Steven

Similar Messages

  • HT204088 When trying to update my credit account information, it will not accept the month of experation even though it has been entered. I shut the phone down and tried again, I sync it to the computer. Will not work.  What do I do?

    I was trying to add and app to my iphone and was not able to do so.  It wanted updated credit information.  So, I entered it and it will not accept the month of experation. I have shut the phone down, sync it to the computer to update.  Will not work.  What can I do to continue?

    Off the top I dont thing its good practice to post an email address here
    I dont see how a google password change would impact on ur Apple ID/iTunes account
    Have u access to the old email address? If not and you fail the apple security process then you need to call them
    Have u tried  to manage ur apple id from :  appleid.apple.com

  • WET54G v3.1 Will not accept the default password for web setup

    The setup:
    1 2WIRE wireless router for AT&T DSL connection
    1 wireless laptop, online and good to go
    1 desktop, too far from router to connect with an ethernet cable, this computer does not have wi-fi
    1 new WET54G v3.1, trying to setup as a wireless-ethernet bridge to get the wired desktop on the network and online
    I have set up the desktop with static IP: 192.168.1.1; Subnet 255.255.255.0; Gateway 192.168.1.226.  The WET54G is directly connected to the desktop.  I open Internet Explorer and go to 192.168.1.226.  After entering the password "admin" and leaving the username blank, the login prompt simply reappears as if the password is incorrect.  I have reset the WET54G to factory defaults numerous times (held the reset button for over 30 seconds).  It simply will not accept the password.
    Any suggestions?  I tried live chat but the chat window was so slow and buggy that both times it seemed we were about to make progress the window would freeze up or refresh entirely and disconnect me.  Extremely frustrating to say the least.
    Thanks,
    Sean

    Hi brickmonkey, 
    Sorry for taking so long to get back on this.  We left for a long vacation and I got ridiculously busy when we got back.  ANyway I just spent some time working on this and wanted to report back.  Still didn't get it to work.
    Got into the 2Wire and wrote down it's settings:
    Router Address: 192.168.1.254
    Subnet Mask: 255.255.255.0
    Default Gateway: (???) I did not see this under the summary page, but it was on the internet connection details page., it's a 151.x.x.x number, which the WET54G was not happy to accept as the default gateway.  It gave me the error "DUT and Gateway cannot locate in different subnet."  Also, on that internet connection details page, an additional subnet mask of 255.255.255.255 was listed, but I'm guessing 255.255.255.0 is the correct one to use, right?
    Because it wouldn't accept that 151.x.x.x address, I can't get any farther.  I did notice when setting up the SSID and security to match that of the 2WIRE, the channel was fixed at 6 and the dropdown was disabled.  I changed the 2WIRE from 1 to 6 in case that was an issue.  The WET54G is in Infrastructure mode, as the guide you linked to indicated.
    Any thoughts with this new info?
    Thanks again for your help with this,
    Sean

  • I forgot My iCloud password, and i can not reset it as the system is not accepting the answer to the security questions and also the mail to my apple ID mail box is blocked, how can i reset my password for my apple ID.

    I forgot My iCloud password, and i can not reset it as the system is not accepting the answer to the security questions and also the mail to my apple ID mail box is blocked, how can i reset my password for my apple ID.

    Hello nmssns,
    Thank you for contacting Apple Support Communities.
    You can start with this article to reset your iCloud password. Depending on your exact circumstances, blocked email, forgot security questions, etc., there are links provided to guide you through those issues.
    About Apple ID security questions
    http://support.apple.com/kb/HT5665
    Regards,
    Jeff D.

  • We have 2 itouchs, we a separate itunes account for each one. We have one home computer to use them both on for syc and icloud, the icloud will not accept the 2 accounts?

    we have 2 itouchs, we a separate itunes account for each one. We have one home computer to use them both on for sync and icloud, the icloud will not accept the 2 accounts?

    Do you know what happens if you delete the icloud account from an iphone 4s?  Will it delete the pictures, documents, etc. from the phone, or just unlink the icloud from the phone?  I want to associate a different icloud account to the phone.

  • HT204053 i changed my email address (apple id) on my pc, but now my ipad is asking me for my password with the old email address...and not accepting the old or new password.how do i change it/sync it?

    I changed my email address (apple id) and password on my pc, but now my ipad mini icloud is asking me for my  icloud password with the old email address and not accepting the old one or the new one..how do i change it / sync it?

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, and your old ID is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I have changed my icloud email in my iphone but in macbook still using old email. I tried to delete the old email in macbook but it requires password and it does not accept the old password for the old email anymore. How do I remove this old email?

    I have changed my icloud email in my iphone but in macbook still using old email. I tried to delete the old email in macbook but it requires password and it does not accept the old password for the old email anymore. How do I remove this old email?

    Hello farahani hairon nizar,
    If your Apple ID was changed from your old account, you may have to change it back to your old account to be able to sign out and then change it back after that is done. Take a look at the article below for more information. 
    If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/en-us/HT203828
    Regards,
    -Norm G.  

  • My wife's iTunes ID will no longer work.  Tried to reset password but did not get email, tried to reset by answering personal questions' but will not accept the correct date of birth.  Has it been hacked?  How can I fix this?

    My wife's iTunes used ID will not work.  Tried resetting the password, but email was not received.  Tried using personal questions method, but would not accept the correct date of birth, so could not go any further.  Has her iTunes ID been hacked?  How can I fix this?

    Thanks for that advice @randers4.
    I linked through and submitted my info as a "topic not covered" in the iCloud section. After entering the serial number of my MBP it turns out I wasn't eligible for technical support (though I don't think this is hardware related support) and the final suggestion was to take my computer into an Apple store. I called my local Apple reseller and asked for assistance. The customer service rep was very nice but unable to help, so suggested I call Apple Support on 1300 321 456. I did so and, again, spoke to two very polite and helpful customer service people (I was transferred to security services). I didn't have to be on hold to speak to either rep for more than a few seconds! After trying a few different things, he worked out what was happening...
    So, to cut a long story short, to solve the problem in my OP, all I had to do was log out of iCloud in my System Preferences and log back in using my current Apple ID. [Edited to add that I had to sign out of everything I was currently signed in to with my Apple ID before logging out and in again.]
    Problem solved!
    Message was edited by: NotBaconBits

  • My IPhone is set up with an internet  downloaded firmware of ios7 because my phone would not restore, the system has failed and I had to do a manual erase fro  within the phone. My computer will not accept the phone because they say it's a "Developer?"

    My IPhone is set up with an internet  downloaded firmware of ios7 because my phone would not restore, the system has failed and I had to do a manual erase fro  within the phone. My computer will not accept the phone because they say it's a "Developer?" Help. I cannot not even get passed the activation step on the computer or phone because it will not activate the device.

    Hello buddyacw
    You would have to restore the iPhone. Download the latest version of iTunes and then follow the steps in the article below to get it working again.
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Adobe Bridge does not accept the NEF files from my new Nikon D800. I use the latest version, there a

    Adobe Bridge does not accept the NEF files from my new Nikon D800. I use the latest version, there are no updates

    Hi,
    CS6
    Van: R_Kelly [email protected]
    Verzonden: maandag 16 september 2013 18:42
    Aan: Hans van Sloten
    Onderwerp: Adobe Bridge does not accept the NEF files from my new Nikon D800. I use the latest version, there a
    Re: Adobe Bridge does not accept the NEF files from my new Nikon D800. I use the latest version, there a
    created by R_Kelly <http://forums.adobe.com/people/R_Kelly>  in Photoshop for Beginners - View the full discussion <http://forums.adobe.com/message/5686078#5686078

  • Hi  - I recently purchased a new iMac. I have a registered cs5 design premium package which is an upgrade - I have no disc for cs4 but have the qualifying serial number for it. I have installed cs5 via download onto my iMac but it is not accepting the ser

    Hi  - I recently purchased a new iMac. I have a registered cs5 design premium package which is an upgrade - I have no disc for cs4 but have the qualifying serial number for it. I have installed cs5 via download onto my iMac but it is not accepting the serial number. Can anybody help. Does anybody else think that Adobe will loose a lot of customers by not providing any chat or call support for cs5 users??

    You can support serial number and activation support.
    Mylenium

  • I am trying to change the color of a background layer and it will not accept the color I want

    I am trying to change the color of a background layer and it will not accept the color I want

    If you want to get help you may have to provide a lot more details about what you are doing (which tools or commands do you use, what exactly happens when it fails, …)?

  • I'm trying to update my application and it is asking me to change my billing account it is not accepting the security code. I am not trying to buy an application just to update and install free apps

    I'm trying to update my application and it is asking me to change my billing account it is not accepting the security code. I am not trying to buy an application just to update and install free apps

    So why are you posting on this forum?  We're users here, not Apple.  Click the "Contact Us" link in the lower right hand corner of this page.

  • I have installed Adobe Creative Suite 5 Master Collection on a 2nd computer but now it will not accept the seriall. What can I do?

    I have installed Adobe Creative Suite 5 Master Collection on a 2nd computer but now it will not accept the seriall. What can I do? I'm using a fresh install of windows 8.1

    What exactly means "will not accept"?

  • Adobe acrobat 7.0 standard, I went online to install, why would it not accept the serial no?

    adobe acrobat 7.0 standard, why would it not accept the serial number?

    THIS IS THE ERROR MESSAGE: -
    Invalid Serial Number
    < Removed by Moderator >
    Invalid Serial Number. This is not a valid serial number. Please go back and re-enter your serial number.
    The serial number above is the serial number on the disk which I purchased some years ago.
    Can you please help?
    Message was edited by: Moderator

Maybe you are looking for