Help for a trigger that may have null

hi i am having a trigger for the following table
SQL> desc know_how_page_cfg;
Name Null? Type
CFG_ID NOT NULL NUMBER(11)
WOAD_REF NUMBER(11)
WYCD_REF NUMBER(11)
GLOSSARY_REF NUMBER(11)
TIP_REF NUMBER(11)
WOAD_VPATH VARCHAR2(1024)
WYCD_VPATH VARCHAR2(1024)
GLOSSARY_VPATH VARCHAR2(1024)
TIP_VPATH VARCHAR2(1024)
VPATH NOT NULL VARCHAR2(1024)
INTRO_BLURB NOT NULL VARCHAR2(1024)
and the trigger is
CREATE OR REPLACE TRIGGER INSERTKNOWHOW_REF BEFORE INSERT ON
     know_how_page_cfg FOR EACH ROW
BEGIN
SELECT ASSET_ID into :NEW.WOAD_REF FROM ASSET WHERE VPATH
= :NEW.WOAD_VPATH;
SELECT ASSET_ID into :NEW.WYCD_REF FROM ASSET WHERE VPATH
= :NEW.WYCD_VPATH;
SELECT ASSET_ID into :NEW.GLOSSARY_REF FROM ASSET WHERE VPATH
= :NEW.GLOSSARY_VPATH;
SELECT ASSET_ID into :NEW.TIP_REF FROM ASSET WHERE VPATH
= :NEW.TIP_VPATH;
END;
the trigger is working fine if i am inserting all the values.
as you noticed that they might be null too.if i am not inserting the value of any of the vpaths the trigger is returning the nodata found error.
how can i execute the trigger so that it works though one of the values are not inserted.
please help me.

Hi,
IF the select is not returning any rows and you want to continue then you can put all the SELECT in this block and catch the error and continue.
BEGIN
-- Your selects statments
EXCEPTION WHEN NO_DATA_FOUND THEN
NULL;
END;     -- END OF BLOCK
thanks

Similar Messages

  • I didn't ask for 'Timeline' on fb, but 'subscribed' to s/e for first time & that may have triggered it! don't want it! HELP!

    I subscribed to someone because my friends quota had been reached, not realizing that it might trigger me into Timeline. They say that public will be able to see my timeline on August 13!!! I DON'T WANT IT, don't want to look at it myself or have it represent me! How can i stop this!!! There is no REDRESS!!! other than exiting the entire thing...

    Everyone is going to have their Facebook profile changed to the Timeline view in the near future.
    Although you might be able to use an add-on to reformat how ''you'' see the page, that won't affect how others see your profile.
    Rather than search for "hacks" that are unlikely to help, you should think about hiding any activity you don't want shown in your Timeline. Check your general privacy settings, and also scroll through your timeline and hide whatever you want hidden. If you are an active user, this could take a while...

  • I have an IMac and opened an email that may have been infected with a virus. How do I check my IMac for a possible virus?

    I have an IMac and opened an email that may have been infected with a virus. How do I check my IMac for a possible virus? What does PPC mean?

    You would be better posting this in the Lion forum.
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion?view=discussi ons
    It's possible you email contained a virus, but unlikely.  There haven't been any reports of email viruses effecting the mac. 
    My understanding is the Apple provides security updates for all malware including viruses.
    There have been reports of a --
    -- Phoney virus checking program
    -- flash malware.
    ppc -- Power PC.   An older computer processor used by Apple.  Last Mac shipped with PPC was in 2006.
    I've read about two virus checking programs for the mac. One is clamav.  The rest are either junk or malware.
    http://www.clamav.net/lang/en/
    Security update.
    http://support.apple.com/kb/HT1222

  • I have files that may have been created in various versions of Illustrator. We need to be able to open them, but all we have is CS6 suite. I have called and been told that "technicians at adobe" could perform a paid service to find out what the files were

    I have files that may have been created in various versions of Illustrator. We need to be able to open them, but all we have is CS6 suite. I have called and been told that "technicians at adobe" could perform a paid service to find out what the files were created in and get them to be useable in InDesign 6, but I'd need an email address that was registered to our software to give the help desk person. After finding the correct email address, different adobe help number people told me to come here to ask as there is no phone support. Can anyone get me to an adobe technician that can provide a price quote for finding out what created these files and for getting them converted? Thanks.

    Sorry, I understood you to say you had the whole CS6 suite, which includes Illustrator.
    As far as finding out what the files are, sometimes you can look at them in a text editor to figure this out. See below; the, Creator Tool line. Not every software package makes it this easy, though.

  • I gave my old MacBook Pro away and no longer have access to it. I didn't think to deauthorize it first. I DO NOT want it to have access to all music in my iCloud or any music that may have been downloaded sinceI gave away the computer. It now belongs to m

    I gave my old MacBook Pro away and no longer have access to it. I didn't think to deauthorize it first. I DO NOT want it to have access to all music in my iCloud or any music that may have been downloaded sinceI gave away the computer. It now belongs to my teenage daughter,who has since been in my WI-FI area and knows that code. I had EVERYTHING removed from the computer before I gave it to her (long story), but since I hadn't deauthorized the Mac,I'm assuming even without the itunes password the iCloud material would had loaded onto her computer.My iCloud had somehow included personal voice mails under Unknown Artist that I did not want on there or shared. How can I deauthorize the Mac Laptop without having the machine available to do it on? Change the iTunes/iCloud password? I should now have my desktop computer, new PC (Aspire) laptop,Ipod Touch, and if possible my Evo 3D as well as my boyfriend's Samsung smartphone being able to access the iCloud account/library--whatever it is called. HELP

    Thanks, I appreciate the help.  I think this is one of the problems Apple is creating by changing the OS so often. I had fomer colleagues at [a major aerospace contractor] who told me that so many original files were ultimately lost because of the deadly change in the "Save As" operation that they are now afraid of every OS update. Apple has badly damaged their support base with that very prominent company (they won't update now until they've fully examined and understand changes in the pre-conditioned nature of OS computer functions), and they are a whole lot less enthaled with Mac-related equipment/software. Can't blame them, I too used orginal files that way (as easy-to-use templates), and lost some important files before I realized what was happening (to late to revert). Companies should not have to retrain employees each time an OS gets an update, it's can be very expensive several different ways. They learned a painful lesson with that one. And because I'm now retired and don't use multiple devices, I need iCloud like I need a hole in the head... but I'm told there's no way to keep Apple out of my computer. Fortunately, because of major problems when initially installing Mountain Lion, one hold-over of the hardware/software damage I experienced was that iCloud can no longer access my computer even though everything else is working fine again. That was the only "good luck" I had as a result of that expensive nightmare.

  • How do I set itunes to be my default player for every file that I have (VLC is my default player now)

    How do I set itunes to be my default player for every file that I have (VLC is my default player now)

    Mac OS X: Double-Clicking a File Opens the Wrong Application - http://support.apple.com/kb/TS2291
    -= Changing the application used to open all files of a certain kind (written with reference to OSX 10.4 but may not have changed) =-
    1) In a Finder window highlight a file of the kind you want to change the application to open that kind of file.
    2) While that file is highlighted, select File > Get Info or press command (apple or propeller icon) + i to get a file information window.
    3) In the lower part of the info window there is an "open with" menu with a list of applications.
    4) If your application is already in the box then it is the default application for opening that kind of file and you don't need to do anything more.  Close the get info window.
    5) If the application showing in the menu is not the one with which you wish to open the file then select a new application. If your application does not appear there then select the "other..." and track down the application (usually in the Applications folder at the main level of the computer).
    6) If you wish to change all files of this type to open with this application in future, make sure the "change all" button is selected.
    7) Close the get info window.

  • I have been charged for a purchase that I have not made

    Hi,
    I have been charged for a purchase that I have not made (just seen on my online banking) and it does not appear on my purchase history can anyone let me know how I get in touch with apple as I am strugglng to find any contact details for this.
    I haven't made any purchases that have cost me only free apps.
    Anyhelp much appreciated.
    Thanks

    You can contact iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    But if nothing show on your account's purchase history (you only have the one account to which that card has been attached) : http://support.apple.com/kb/HT2727
    and it's not a temporary store holding charge : http://support.apple.com/kb/HT3702
    then you may also want to contact your card issuer

  • The message "A problem has occurred trying to process your request. Please try again later. We apologise for any inconvenience this may have caused." is displyed when I try to log on to my internet banking. Please can you tell me why?

    Since upgrading to the latest version of Firefox, I'm now getting the message "A problem has occurred trying to process your request. Please try again later. We apologise for any inconvenience this may have caused." when I try to log onto my internet banking site. This occurs after going thru the first two steps of the login process. I don't get this problem when I login to all my other bookmarked sites, or when I use Internet Explorer. I'm using Windows XP. Any suggestions? (Note: I've just reloaded version 6 of Firefox, but it's not made any difference.)

    See here  >  http://support.apple.com/kb/HT1527
    From Here  >  http://support.apple.com/kb/TS1368
    More info here  >  http://www.apple.com/support/itunes/downloading/

  • I only show one iCloud on my IPhone that can do a restore. I synced it with my MacBook Pro and I think that may have messed things up. Prior to that I have several backups. Will a "genius" be able to access the info I need?

    I only show one iCloud on my IPhone that can do a restore. I synced it with my MacBook Pro and I think that may have messed things up. Prior to that I have several backups. Will a "genius" be able to access the info I need?

    If things seem to be going haywire with your phone, it seems that it MAY be a software issue.
    Now, that being said, that does not necessarily mean that it is a virus. Software issues do happen sometimes. It is probably just coincidence.
    What you need to do is restore the device using iTunes. This will fix any software issues. After you have done this, you can restore from an iCloud backup.
    iCloud does not back up the actual software, so no, the "virus" would not have gotten into the backups.
    The link below provides steps on restoring your device using iTunes as well as how to restore from an iCloud backup.
    http://support.apple.com/kb/ht1766
    Don't worry! Everything should be back to normal if you follow these steps.

  • How can I set a password for firefox so that everyone have to enter the password before executing firefox

    My younger sister executed my firefox just at this afternoon(she originally use IE), and she saw something that can't be seen. How can I set a password for firefox so that everyone have to enter the password before executing firefox?

    Also see this for an English version of Profile Password:
    *Profile Password: http://nic-nac-project.de/~kaosmos/profilepassword-en.html#PPF
    It is an extension to protect the profile with a password, but being an extension that protection can easily be bypassed by starting Firefox in [[Safe mode]].<br />
    So do not rely on it.<br />
    If you want to protect content then you have to use methods supported by the OS like a separate user account with a password or an encrypted file system.

  • I keep getting emails for iTunes purchases that I have not authorized

    I have received several emails for iTunes purchases that I have NOT authorized.  The name on the Billed To is not my name or address, but it includes my Comcast email address.  I don't know if I am being charged for these purchases through Comcast or not, but these receipts should not be coming to me.  What can i do?

    If the email is asking you to verify your account or in any way provide personal informaton, it's a fake, trying to scam you out of your account information or credit card details. Do not respond to any emails that have a link asking for personal information. Just delete the message.
    Regards.

  • How would I go about locating an ipod that may have been stolen?

    How would I go about locating an ipod that may have been stolen?

    Hey McCindy,
    Oh no! I'm sorry to hear that. The following resources outline the next best steps, including utilizing the My Support Profile website, which may have your Serial Number registered:
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/HT2526
    Thanks,
    Matt M.

  • I have asked for the access code for the Photoshop that I have purchased.

    I have applied for an access code for the Photoshop that I have purchased. I sent a payslip as well as registration as a teacher. Can I get the access code from you? I purchaed the product early last month and have not recieved any information.
    Thanking you for your time and help

    do you have a serial number?  have you installed photoshop?  are you trying to activate and are you looking for an activation code?

  • How do I scan my iMac for a virus, we may have opened an email with a virus

    how do I scan my iMac for a virus, we may have opened an email with a virus

    http://www.thesafemac.com/mmg/

  • Why is my updates tab showing an update for a game that i have never bought?

    also, why does it show a random apple id that surely isn't mine?
    added a screenshot, maybe that can help.

    I have this same issue. Nobody else has been on this computer. I tried the following link and am waiting for spotlight to re-index everything.
    http://www.ngpixel.com/2011/06/25/mac-app-store-you-have-updates-available-for-t he-other-accounts-bug/
    Whats interesting is why [email protected]'s username? I am speculating it is some sort of virus, possibly from some other app I may have downloaded directly from some developers website ...
    Anyone else experince this and have a better understanding of whats going on?

Maybe you are looking for

  • Application express installation is failed while running apxdevrm.sql scrip

    Hello Experts, i am new to Oracle Application express. My installation is failed while running the script (apxdevrm.sql). here is the command i ran as sysdba @apexins xxxxx apex apex temp /i/ installation is exited with the following error : REPORT:S

  • Scheduled status MEssage

    Hi Frnds, I saw in SXMB_MONI THAT FEW XML MESSAGEDS HAD stuck up in sheduled status. Can anyone tell me why is it stuck in sheduled status. When i try restarting it then it says the message is already sheduled. I see some more message stuck in queu b

  • Report based on two facts and dimensions

    Hello All, I have a report that comes from two facts say F1 and F2. There are certain conformed dimensions, and certain non conformed dimensions. Now say Product is a conformed dimension. Now these fact tables are at a very detail level and have mill

  • I have a mini mac and am trying to unblock plug-ins... can anyone help me

    mini mac version 5.1.10 somehow my plug ins- got blocked i am trying to unblock.... can anyone advise?

  • Parameter search help

    How can I create a parameter on the selection screen for lifnr that will allow the user to search for the correct vendor and then display the vendor name on the screen when a vendor is chosen? Should I use search help or value-request or a combinatio