After Update Trigger not triggering for first update

Hi All,
I have written a Trigger on AP_SUPPLIERS table to update AP_SUPPLIER_SITES_ALL when payment priority gets updated on AP_SUPPLIERS table. Trigger calls a pragma autonomous procedure after update happens, and updates sites table. We are on R12 (12.1.3) with  DB 11.2.0.3.0
Somehow this is not working for the first update, after that for every update it is working. Any idea why this might be happening?
Trigger Code: 
CREATE OR REPLACE TRIGGER XX_AP_SUPPLIER_SIT_UPD_SYNC
AFTER UPDATE
ON AP.AP_SUPPLIERS
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
l_vendor_id     NUMBER;
l_paym_priority NUMBER;
BEGIN
   XX_AP_SUPSITE_UPDATE(:NEW.PAYMENT_PRIORITY, :NEW.VENDOR_ID);
   EXCEPTION
     WHEN OTHERS THEN
       RAISE;
END XX_AP_SUPPLIER_SIT_UPD_SYNC;
Procedure Code:
CREATE OR REPLACE PROCEDURE APPS.XX_AP_SUPSITE_UPDATE (p_payment_priority  IN  NUMBER,p_vendor_id IN NUMBER) AS
  PRAGMA AUTONOMOUS_TRANSACTION;
  ex_custom EXCEPTION;
  PRAGMA EXCEPTION_INIT( ex_custom, -20001 ); 
BEGIN
  UPDATE AP_SUPPLIER_SITES_ALL
  SET PAYMENT_PRIORITY =p_payment_priority
  WHERE VENDOR_ID = p_vendor_id;
  COMMIT;
EXCEPTION 
WHEN OTHERS THEN
    raise_application_error( -20001, 'Error while updating payment priority on Site '||SQLERRM );
END XX_AP_SUPSITE_UPDATE;

Thanks for your replies Saubhik/VT,
now my trigger is compiled. but is not triggering. pl help me to resolve .....
create or replace
TRIGGER AUDIT_DEV.trg2
AFTER DELETE OR UPDATE OF EMP_STATUS ON AUDIT_DEV.AUDIT_PERSONS
FOR EACH ROW
declare
OSUSER varchar2(30);
     MACHINE varchar2(30);
     logon_time date;
db_user varchar2(30);
USERNAME VARCHAR2(30);
EMP_USER_MODIFIED AUDIT_PERSONS.EMP_USER_MODIFIED%TYPE;
     EMP_DATE_MODIFIED AUDIT_PERSONS.EMP_DATE_MODIFIED%TYPE;
     EMP_SK AUDIT_PERSONS.EMP_SK%TYPE;
     EMP_ID AUDIT_PERSONS.EMP_ID%TYPE;
     EMP_NAME AUDIT_PERSONS.EMP_NAME%TYPE;
EMP_RESIGNATION_DATE AUDIT_PERSONS.EMP_RESIGNATION_DATE%TYPE;
BEGIN
select     username,osuser,machine,logon_time into db_user,osuser,machine,logon_time from v$session where sid=(select sid from v$mystat where rownum=1);
INSERT INTO AUDIT_DEV.AUDIT_PERSONS_LOG (EMP_USER_MODIFIED,EMP_DATE_MODIFIED,EMP_SK,EMP_ID,EMP_NAME,EMP_RESIGNATION_DATE,EMP_STATUS_OLD,EMP_STATUS_NEW,osuser,db_user,machine)
VALUES(EMP_USER_MODIFIED,EMP_DATE_MODIFIED,EMP_SK,EMP_ID,EMP_NAME,EMP_RESIGNATION_DATE,:old.EMP_status,:new.EMP_status,osuser,db_user,machine );
COMMIT;
END;
09:59:06 AUDIT_DEV@dev>UPDATE AUDIT_DEV.AUDIT_PERSONS SET EMP_STATUS='TEST' WHERE EMP_ID='4234';
EMP_STATUS
TEST
1 row selected.
Elapsed: 00:00:00.01
10:00:03 AUDIT_DEV@dev>commit;
Commit complete.
Elapsed: 00:00:00.01
10:00:17 AUDIT_DEV@dev>select * from AUDIT_persons_log;
no rows selected
Elapsed: 00:00:00.00
10:00:17 AUDIT_DEV@dev>
Edited by: Abk on Nov 4, 2010 10:42 AM

Similar Messages

  • Problem updating to iphoto 9.6 after upgrading to Yoesmite  I am getting the following message when I try top date iPhoto This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or canc

    problem updating to iphoto 9.6 after upgrading to Yoesmite  I am getting the following message when I try top date iPhoto This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or canc

    "This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled." ?
    This error message will appear erraneously, if you skipped the update to Mavericks and iPhoto 9.5.1 and went straight from an earlier MacOS X version to Yosemite, without first updating to iPhoto 9.5.1 and associating iPhoto to your AppleID.
    Try first to buy iPhoto with your AppleID instead of updating. Delete iPhoto from Applications, but don't empty the Trash, then go to the main page of the App Store and search for iPhoto. If you are lucky, it will show as free and you can buy it directly.
    If iPhoto  is not showing as free, there is no help but contacting the App Store Support: Ask for a redemption code. You will need to provide a prove of purchase for your mac with iPhoto preinstalled.
    http://www.apple.com/support/mac/app-store/contact/

  • Trying got update iPhoto after OS update - This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.???

    Trying got update iPhoto after OS update - This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    With Yosemite you need to update to iPhoto 9.6.
    The error message means, that iPhoto has not been associated with your AppleID. You do not say, which iPhoto version you are trying to update from.
    Associating iPhoto with your AppleID should have happened, when you bought the computer with iPhoto preinstalled with MacOS X Lion or later or with the Mavericks upgrade, if your Mac came with SnowLeopard. Try, if you can "accept" iPhoto now:
    Sign into the AppStore with your AppleID
    Open the "Purchased" tab. Do you see iPhoto with an "Accept" button?
    Accepting associates your Apple ID with the preinstalled iPhoto. It should move iPhoto from the "Accept" portion of the App Store to the "Purchased" tab. After that, you should be able to update iPhoto from the Updates tab of the AppStore. If you do you not see the update there, try to buy iPhoto. iPhoto may show for free, so you do not have to pay again.
    Backup your iPhoto library, if you do not have a current backup.
    Uninstall iPhoto by deleting it from the Applications folder, otherwise you cannot buy it again. But do not empty the Trash, so you can put iPhoto back, if need be.
    Launch the App Store, click the "Store" menu, and sign in with your current AppleID.
    Open the main page "Featured" of the App Store and search for iPhoto.
    If iPhoto is listed as "Free", click the "Free" button to buy it with your current AppleID.
    If it is not showing as free, there is no help but contacting the App Store Support to sort out the AppleID. Use this link: http://www.apple.com/support/mac/app-store/contact/
    After you update iPhoto, your iPhoto Library will need upgrading. Make a backup of your iPhoto Library, before you open iPhoto the first time after updating.

  • Macbook pro - iPhoto keep prompting to update after Yosemite update. Error message when trying to update -This update is not available for this Apple ID either because it was bought by a different user or the item was cancelled

    macbook pro - iPhoto keep prompting to update after Yosemite update. Error message when trying to update -This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled. 

    I only have 1 apple ID and the same was used to set up this early 2011 macbook pro and iPhoto app. I don't want to loose out on any photos. I tried logging out of app store and back in but no luck. PLEEAASEE HELPP!!!
    This problem has been reported by quite a few forum members, who skipped the update to iPhoto 9.5.1 while running Mavericks. In that case try to purchase iPhoto again instead of updating.
    After making your backup try the following:
    Uninstall iPhoto by deleting it from the applications folder, but do not empty the Trash.
    Launch the App Store, click the "Store" menu, and sign in with your AppleID.
    Open the main page of the App Store and search for iPhoto.
    If iPhoto is listed as "Free", click the "Free" button to buy it with your current AppleID.
    If it is not showing as free, there is no help but contacting the App Store Support, as Niel pointed out: http://www.apple.com/support/mac/app-store/contact/

  • This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled... this comes up when I go to update Iphoto after installing Yosemite... how do I fix this?

    This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled... this comes up when I go to update Iphoto after installing Yosemite... how do I fix this?

    I have resolved this issue with the apple chat support by going to the "purchases" tab in the app store - where there was a message that I had to accept updates for the apps that wouldn't update.  Once I did this, signing in for each of them, they all updated just fine.

  • After updating to Mavericks the apps store gives me the message "This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled."  How do I still update my apps??

    After updating to Mavericks the apps store gives me the message "This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled."  How do I still update apps such as iphoto??

    What happened was you never accepted these apps into your Mac App Store account.
    Drag & drop the apps in the Trash and use OS X Recovery to install them again. after installing the apps be sure to accept them into your account this time from the Purchases pane of the Mac App Store.
    OS X Recovery -
    http://support.apple.com/kb/HT4718

  • After updating to Mavericks and trying to updates for my apps I get : This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    After updating to Mavericks and trying to updates for my apps I get : This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled. My apple id has always been .mac but after the update I used .me. Are these not synonymous?

    Hi everyone yesterday I was experiencing the same problem I am glad to share its fixed now for me
    "This issue is only related to our Apple ID and to to those specific apps which we already have on phone or had installed on phone before except for those apps which we already have in purchase history AppStore>Updates>Purchase(on iPhone) History(having cloud icon next to them) it's something related to our purchase data
    *ITS NOT RELATED TO PHONE OR MAC!
    *RESETTING OR UPDATING THE DEVICE WONT MAKE A DIFFERENCE!
       (As in my case it  was on iPhone 4 7.1.1 iPhone 5s 7.0.3 and iTunes of course )
    Here is how I got it fixed
    I contacted apple support via chat method and I  asked about a solution giving my info.she told me that she submitted my application and in order to resolve this I should not be using my AppStore ID for any purchase for at least 30mins as  doing so may not resolve the issue so I checked it after couple hours and it's fixed
    (As I read in some other discussions that some people asked for solution from apple support and they told them to reset the device or so.. You may need to make your statement clear that it's appearing both on iTunes and iPhone )

  • Windows could not search for new updates after applied June 2014 Windows Updates - Error code 80244004

    After applied June 2014 Windows Updates from Microsoft (Not using WSUS server to obtain WU), our Windows Server 2012 R2 and Windows Server 2008 now getting this error message when we perform the "Check for Updates":
    Windows could not search for new updates.  Error code 80244004. 
    Richard

    Hi Richard,
    Just addition, please refer to following KB to reset Windows Update components and monitor the result.
    How do I reset Windows Update components?
    If didn’t use ESET security software, please also refer to following thread and check if can help you.
    Latest
    version of Windows Update causing error 80244004
    Hope this helps.
    Best regards,
    Justin Gu

  • After installing yosemite iphoto does not open keep getting message"This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    I upgraded to yosemite iphoto does not open keep getting message"This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    Contact App Store support. There's a link on the right hand side of the App Store Window. They're the only ones who can sort out account issues.

  • I have IMovie 10.0.03 on my computer there was an update on the app store this past Friday which crashed after attemptin This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    I have I movie 10.0.03 on My Mac  On Friday there was an update on the App store which crashed Mid Download, Now when I try and retry the download I get the Following error message,This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled< has anyone else had this problem??  Very Frustrating  Thanks.

    Well then you have the latest version of iMovie.
    Not sure how to explain the rest of your question.
    Matt

  • When trying to perform updates I get this message. This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled. What do I do?

    When trying to perform updates I get this message: This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled. What do I do? I just bought the MacBook Pro new and migrated my apps from my old MacBook Pro.

    Perform the following, stopping with the first one which works:
    1. Open the Mac App Store's Purchases tab. If you're prompted to accept them into your Apple ID, do so.
    2. Move them out of the Applications folder(they may need to be put into the Trash temporarily), and then see if you can download them for free from their individual product pages. If you're asked to buy them, see #3.
    3. Click here, contact Apple, and wait for a response.
    4. Buy them.
    (116300)

  • I upgraded to iOS x mavericks on my iMac now i cannot access my iPhoto i get this messageThis update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    I upgraded to iOS x mavericks on my iMac now i cannot access my iPhoto i get this messageThis update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled. I have not changed anything thankyou for any info.

    Please test after each of the following steps that you haven't already tried. Stop when the problem is resolved. Back up all data before making any changes. Keep in mind that no one here represents Apple or can help with customer-service issues.
    Step 1
    A purchased app can only be updated by signing in to the App Store with the same Apple ID that was originally used to buy it. There's no way around that limitation, which also applies to free apps. If you can't sign in with the buyer's ID, delete the app and reinstall it. You'll have to pay for it again, if applicable.
    Step 2
    If you get the alert when trying to update a bundled iLife app, elect the Purchases page in the App Store and locate the app in your purchase history. If there's a button marked ACCEPT on the right, click it.
    If you have a used Mac, the bundled apps were linked to the original owner's Apple ID and can't be transferred to you. Reportedly, customer service has issued redemption codes to some second owners who asked, but it's not guaranteed.
    Step 3
    If you're trying to update iLife or iWork apps that were installed from a purchased DVD, or if you have a refurbished Mac bought directly from Apple, contact App Store customer service for a redemption code. You may be asked for the part number of the DVD.
    Step 4
    From the App Store menu bar, select
    Store ▹ View My Account
    Enter your Apple ID password at the prompt. At the lower right corner of the window that opens, click the Reset button. Close the window.
    See also: remove app
    Keywords: refunded canceled

  • Just bought new Macbook Pro, can't download updates because of this message:This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    Mac app store will not download updates because of error message

    Hi,
    I also am getting this message. I bought my 15" mac book pro mid 2010 and at the same time purchased iWork. It is not showing in my purchases on Apple ID, I have never changed my Apple ID since purchase. Why would my Apps not show. There are some there but mostly free ones. I checked it under the Store menu after signing in.
    After upgrading from Mountain Lion to Yosemite  my iPhoto, iMovie, Keynote,Pages and Numbers need to update. But I get this message.
    "This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled."
    I have not changed ownership or Apple ID on my mid 2010 Mac Book Pro since purchase. What would cause this?

  • How do I solve this problem: "This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled."

    This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    Hello there, gxt88.
    It seems you are having issues downloading an application from the App Store. To troubleshoot this issue, let’s follow the steps for iTunes Store connectivity:
    First, try signing out of your account in Settings > iTunes & App Store. Once signed out, go ahead and restart your device. Once your device has restarted, sign back in to the iTunes Store and try to download the update.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    If the above did not resolve your issue, refer to the following:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Viber - the update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    VIBER does not work!
    the update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    Hi everyone yesterday I was experiencing the same problem I am glad to share its fixed now for me
    "This issue is only related to our Apple ID and to to those specific apps which we already have on phone or had installed on phone before except for those apps which we already have in purchase history AppStore>Updates>Purchase History(having cloud icon next to them) it's something related to our purchase data
    *ITS NOT RELATED TO PHONE!
    *RESETTING OR UPDATING THE DEVICE WONT MAKE A DIFFERENCE!
       (As in my case it  was on iPhone 4 7.1.1 iPhone 5s 7.0.3 and iTunes of course )
    Here is how I got it fixed
    I contacted apple support via chat method and I  asked about a solution giving my info.she told me that she submitted my application and in order to resolve this I should not be using my AppStore ID for any purchase for at least 30mins as  doing so may not resolve the issue so I checked it after couple hours and it's fixed
    (As I read in some other discussions that some people asked for solution from apple support and they told them to reset the device or so.. You may need to make your statement clear that it's appearing both on iTunes and iPhone )
    A lot of people are already facing this problem

Maybe you are looking for

  • Oracle Report in New window with submit

    Hello, I'm in urgent need of an example on how submit a page and open a Oracle Report in a new window. I've searched the forum and found similiar threads, but not exactly what I need. Basically, I have an html page with cascading LOVs in which the us

  • Error while loading entity  ORM

    entityLoad('Account') throws this error, Error while loading entity java.sql.SQLException: [Macromedia][Oracle JDBC Driver]Numeric overflow. However  entityLoad('Account',1) returns the proper record. I am using oracle 10g as a datebase. Is this a bu

  • Message 069 - Output could not be displayed (it may not be complete)

    Hi Gurus, KIndly help me please. Upon trying to print a billing document in VF31, the message Message 069 - Output could not be displayed (it may not be complete) appears and as a result I cannot print preview the document. However, I tried doing the

  • Is it possible not to update Product Stock Quantity upon ADD TO CART event?

    Greetings, Is it possible that the Product Stock Quantity (In Stock) not to be updated on Add to Cart event or when the basket still exist? And the updates/decrease of quantity will only happen when the customer have successfully paid or checked out.

  • Business consolidation

    I am creating leading ledger for company based in Dubai which is the subsidairy of indian holding company. Fiscal year of both companies is different. Will there be any issue in consolidation of these two companies in business consolidation in SAP.?