My script says Obj Vers Number is blank - but it can't be!

hello.
And help.
I have below a script that includes several APIs to insert and update employees' details in ORACLE
Financials. It has been working fine until I've recently added the ' Hr_Person_Api.update_gb_person API'
After this, it throws up a ''ORACLE error occurred processing record.. ORA-20001: The mandatory
argument object_version_number value cannot be null..' message.
There is an entry in per_all_people_f the employee Im wanting to update which is collected by the CURSOR csr_ovn2. This is then opened (v_emp.std_employee_number) and FETCH'd INTO l_obj2 which is then put into the APIs. So why is it saying its blank?
Can someone please please read through the script and possibly offer a suggestion?
Many many thanks..
PLease find bellow relevant sections of my script..
   p_emp_number                     VARCHAR2 (30);
  l_obj2                            NUMBER;
-- Cursor retrieves latest Object Version Number from per_all_people_f table..
   CURSOR csr_ovn2 (p_person_emp_no IN per_all_people_f.employee_number%TYPE)
   IS
   SELECT MAX (per.object_version_number)
        FROM per_all_people_f per
     WHERE  per.employee_number = p_person_emp_no;
-- Process each record in the work table
   FOR v_emp IN get_employee_details
   LOOP
-- Obtain the most recent EMPLOYEE's Object Version Number..
      OPEN csr_ovn2 (v_emp.std_employee_number);
      FETCH csr_ovn2
       INTO l_obj2;
      IF csr_ovn2%NOTFOUND
      THEN
         RAISE NO_DATA_FOUND;
      END IF;
      CLOSE csr_ovn2;
            Hr_Person_Api.update_gb_person
                    (p_validate                 => l_validate,
                     p_effective_date                => SYSDATE,
                     p_datetrack_update_mode         => l_datetrack_update_mode,
                     p_person_id                     => emp_rec.person_id,
                     p_object_version_number         => l_obj2,
                     p_last_name                     => v_emp.std_last_name..

Try this
Change the cursor definition of csr_ovn2 to
CURSOR csr_ovn2 (p_person_id NUMBER,p_date DATE)
IS
SELECT per.object_version_number
FROM per_all_people_f per
WHERE per.person_id = p_person_id
AND p_date BETWEEN per.effective_start_date and per.effective_end_date
and call the cursor using
OPEN csr_ovn2(emp_rec.person_id,SYSDATE);

Similar Messages

  • Hi, after that crash of my MacBook Pro I download again Lightroom 5 with my license serial number removed , but the system say that my number is wrong, but is not. What shall I do???, thanks

    Hi, after that crash of my MacBook Pro I download again Lightroom 5 with my license 1160-4006-5882-6826-4588-7623, but the system say that my number is wrong, but is not. What shall I do???, thanks

    You probably downloaded the Lightroom Creative Cloud version. Your Perpetual License key will not work.
    Uninstall the existing version of Lightroom, this process will not affect your Catalog, Preferences or personal files.
    Then download the correct version from the link below, install and enter the license. Every thing should be just fine. (Also by displaying your License Key for all to see anyone can use it to have a free copy of the program)
    Adobe - Lightroom : For Macintosh : Adobe Photoshop Lightroom 5.6

  • Adobe says that my serial number is correct, but it can't find my product on my computer! HELP!!!???

    Adobe says that my serial number is correct, but it can't find my product (standard design CS6) on my computer and then it tells me to pick my product from a list but the only product that is not there is mine!!! What can I do?

    good to hear.  i'm 2/2 for great experiences using adobe chat.
    (0/1 using dell and 0/1 using microsoft - except i think ms was phone.)

  • When I try to launch the product, it says the Serial Number is valid but a qualifying product couldn

    When I try to launch the product, it says the Serial Number is valid but a qualifying product couldnt be found on the computer..same error others are reporting,  I  have been waiting for over 1 month and have not been able to get an anwer .  

    You purchased the upgrade version and the serial number of the qualifying product is needed to complete the install. If it can not find a qualifying product installed on the machine, it should be asking you for the SN of that product, not the SN of the new install.

  • I just purchased product, while trying to install its saying my serial number is invalid.  How can I verify? Why is this happening?

    I just purchased product, while trying to install its saying my serial number is invalid.  How can I verify? Why is this happening?

    tthis happened to me today too!!

  • I can start a conversation with my number on imessage but i can't be reached with my number. How can I fix this?

    I can start a conversation with my number on imessage but i can't be reached with my number. How can I fix this?

    Go to Settings>Messages>Send & Receive, and make sure that your phone number is checked. If it is not, then scroll to the top of that same screen, click on your Apple ID, and sign out of Messages, and then back in again.
    Cheers,
    GB

  • I have an external hard drive 1 TB - it says that 559GB has been used , but I can't see any files at all.   Is there a way to recover those files. I have a lot of photos on it. I have an IMac and running MAC OSX versuib 10.7.5   I am new to Mac.

    I have an external hard drive 1 TB - it says that 559GB has been used , but I can't see any files at all.
    Is there a way to recover those files. I have a lot of photos on it. I have an IMac and running MAC OSX versuib 10.7.5   I am new to Mac, so I hope somebody can give me some advice.
    Cheers

    if it's ntfs microsofts filesystem then you need a windows machine to recover them

  • I purchased CS6 less than a year ago; my serial number is known, but i can't use it anymore?

    I purchased CS6 less than a year ago; my serial number is known, but i get the message that my trial period has ended and i cannot use the products anymore... what to do now?

    Hello Sarika,
    I tried to do as suggested in your link, but I can’t open the programs anymore, so I can’t get to the possibility of deactivate!
    I did get the updates, but that’s all…
    Any other way of getting there?
    thank you for trying to help,
    Angeline
    [email protected]
    Op 16 apr. 2014, om 00:02 heeft sarika02 <[email protected]> het volgende geschreven:
    Re: I purchased CS6 less than a year ago; my serial number is known, but i can't use it anymore?
    created by sarika02 in Creative Suites - View the full discussion
    Hi tomaatje,
    Try the steps suggested in given link:- http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    Do let us know if it helps.
    Sarika
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6301871#6301871
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6301871#6301871
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6301871#6301871. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Creative Suites at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • HT2513 I have a Macbook pro and I've lost my ical and widget icons. It says it's in the trash but I can't find it.

    I have a Macbook pro and I've lost my ical and widget icons. It says it's in the trash but I can't find it.

    Hey Shady K,
    It sounds like you've removed the iCal and Widget icons from your dock and want to get the back there for easy access. The following document goes over dock basics and there's a section (which I copied below) that goes over how to get those icons back on to the dock. Essentially you'll just find the application's icon in your applications folder and drag it back.
    Mac Basics: The Dock
    http://support.apple.com/kb/HT2474
    Adding and removing Dock items
    If you want to add an application to the Dock, click the Launchpad icon in the Dock and drag the application icon to the Dock; the icons in the Dock will move aside to make room for the new one. If you want to add a file or folder to the Dock, just drag its icon from any Finder window (or the desktop) and drop it on the Dock. The resulting icon that appears in the Dock is actually an alias of the original item (it's kind of a pointer to your original item). If you drag an application or file onto the Dock, you'll be able to open it anytime by simply clicking its docked icon. If you drag a folder onto the Dock, a Finder window of the folder's contents will display when you click the folder icon in the Dock.
    To remove an item from the Dock, drag its icon an inch or more off the Dock and wait a couple seconds, then release; the icon will disappear in a poof of smoke. There are some icons that you can't remove from the Dock, such as the Trash and the Finder.
    Don't worry, you aren't permanently removing the item from your computer; you simply got rid of its Dock icon. If you want that item back in the Dock, locate the application, file, or folder in the Finder (or with Spotlight), and drag it back into the Dock.
    Hope that helps,
    David

  • I downloaded the Vevo and Cityville apps, and iTunes says they're on my iPod, but I can't find them. Is there some place they go on the iPod?

    I downloaded the Vevo and Cityville apps, and iTunes says they're on my iPod, but I can't find them. Is there some place they go on the iPod?

    Try using the Spotligh search feature on the iPod. To get there, swipe the Home screen fully to the right.
    Also, if they are Games, they could be in the Game Center.folder

  • HT1222 Can I update my Old iPod touch 4.2.1 version to the IOS 5 or 6? It says i have the current version but I can't get my apps ...such as Netflix

    I'm trying to get the iOS 5 or 6 update to my ipod touch version 4.2.1
    My ipod says it's up to date but I can't get my netflix app to load becuse it says I need the iOS 5 software
    Does this mean that my Ipod touch is no longer any good???
    Any help is appreciated, thanks!
    Candice

    I used to be able to get Netflix and other apps on my ipod but since they have been upgraded to ios 5 + I can no longer get them. "
    You updated your Netflix app without seeing if the new version was compatible with your ios version. Had you not updated, then you could still be using it.
    " So I gather by your response and other similar questions/answers that I am out of luck now."
    Yes.
    Sorry

  • I have bought photoshop elemnts 12 and have a CD, but there where no serialnumber in the box or on the folder. What shall I do to activate. Have tried to search a support number in Sweden but i can´t find any.

    I have bought photoshop elemnts 12 and have a CD, but there where no serialnumber in the box or on the folder. What shall I do to activate. Have tried to search a support number in Sweden but i can´t find any.

    Find your serial number quickly
    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • My Printer (samsung clx-3185fw) says it connects to my network but I can't seem to print wirelessly.  I could with my netgear but not with my airport extreme, any ideas?

    My Printer (samsung clx-3185fw) says it connects to my network but I can't seem to print wirelessly.  I could with my netgear but not with my airport extreme, any ideas?
    I have restarted all units, disconnected and reconnected

    Hi ryanfromstockbridge,
    I apologize, I'm a bit unclear on exactly what you are seeing when you try to add the printer or print to the printer. If you continue to have issues printing to this wireless printer, you may find the information and troubleshooting steps outlined in the following articles helpful:
    OS X Yosemite: Printing troubleshooting
    Troubleshooting printer issues in OS X - Apple Support
    OS X Yosemite: Add or remove a printer
    Sincerely,
    - Brenden

  • HT5624 Restore back up of my iPhone-password not recognised. After restore, itunes can not restore because it says the password is incorrect. But I can sign into my apple account with the password.

    Restore back up of my iPhone-password not recognised. After restore, itunes can not restore because it says the password is incorrect. But I can sign into my apple account with the password.  My iPhone is now set to factory settings as a new phone, what can i do to access the back up from my phone before I reset it. 

    That does happen.  It depends on how hard the server is being hit, as well as the connection speed of your system.  If you are on a windows system, you will want to disable any antivirus or firewall software during the download.

  • I just updated my Iphone 3GS from 4.3.3 to 6.1. Now is says that my SIM Card is not supported by my carrier. I called Rogers and he says to restore my phone. But I can't get there is it won't recognize my phone. Help!

    I just updated my Iphone 3GS from 4.3.3 to 6.1. Now is says that my SIM Card is not supported by my carrier. I called Rogers and he says to restore my phone. But I can't get there is it won't recognize my phone. Help!

    Insert a SIM from a supported carrier.
    Where did the phone come from,  it sounds like the device has been hacked or jailbroken to be unlocked and updating has re locked to the original carrier. It is also possible that the SIM simply needs to be reseated or replaced.

Maybe you are looking for

  • Best iPad app for Job Timing, "To Do" & Scheduling

    I'm contracted to a company as a computer tech, graphic designer and administrator of their computer and accounting systems. I also design and layout their brochures, catalogues and pricelists ready for print. I need to keep track of tasks requested,

  • IPod Touch Screen not Working after using Assistive Touch

    Hey everyone! Yesterday my iPod Touch 4th gen touch screen froze (not the screen itself - it still wakes from sleep & responds to notifications and charging etc.), after myself accidentally taping 'Voice Control' on Assistive Touch. I was wondering,

  • Unable to archive warehouse view of an article in SAP Retail

    Hi SAP Gurus, I want to archive the warehouse view of a material which i extended to a wrong warehouse by mistake . The basic check would be first to discontinue the article by WSE1,, i could not do that because it was having open PO and sales stock.

  • JSP Bug

    Please c the below two bean class. package com.bean; public abstract class Person{ private String gf;      public String getGf(){           return gf;      public void setGf(String newGf){           this.gf = newGf; package com.bean; public class Emp

  • Enhancement Field at Header level of MIRO doc & FB60 doc

    Hello We have required a field at MRIO or FB60 details tab, if an enhancement are available so that help me. Regards avijit