The EXCEPTION didn't work correctly

I made that code :-
CREATE OR REPLACE FUNCTION qq (v_id NUMBER)
RETURN NUMBER
IS
sal NUMBER;
BEGIN
SELECT salary
INTO sal
FROM employees
WHERE employee_id = v_id;
RETURN sal;
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line ('NO such ID for any Employee in this company ');
END;
and when I executed it like that :-
SQL> BEGIN
2 DBMS_OUTPUT.put_line (qq (942));
3 END;
4 /
NO such ID for any Employee in this company
BEGIN
ERROR at line 1:
ORA-06503: PL/SQL: Function returned without value
ORA-06512: at "HR.QQ", line 10
ORA-06512: at line 2
SQL> ed
Wrote file afiedt.buf
1 BEGIN
2 DBMS_OUTPUT.put_line (qq (142));
3* END;
SQL> /
3100
PL/SQL procedure successfully completed.
why the exception line :-
NO such ID for any Employee in this company
come with the error below :-
BEGIN
ERROR at line 1:
ORA-06503: PL/SQL: Function returned without value
ORA-06512: at "HR.QQ", line 10
ORA-06512: at line 2
I want the exception Line - that I wrote - only appear without oracle errors ........ how can I do that ?

Put a RETURN statement inside you exception handler or raise an error.
You can do:
raise_application_error (-20012, 'NO such ID '||to_char(v_id)||' for any Employee in this company ');                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • We have a very big issue here, Patch Tuesday didn't work correctly yesterday, and the patches took all the free drive space away.

    Hello
    We have a very big issue here, Patch Tuesday didn't work correctly yesterday, and the patches took all the free drive space away.
    Before we started with the Patches, we had one Gig of free space on our hard drive, now we are down to less than 10 Megs!!!
    What happened is that the patches didn't work, we had to try them 7 times, and every time they created a 'temporary restore point' which we don't know where that point is.
    The server has crashed twice since, we were able to place it back online but we're afraid it will crash again.
    We have several customers on that server, we are very worried,
    Can you please help us?
    Thank you

    Hi,
    Hope the below article be helpful:
    Clear space on your hard drive by deleting old Windows uninstall folders
    http://news.cnet.com/8301-13880_3-9862223-68.html
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    And as far as I know, we could not use diskpart to extend C drive, 3rd party utilities may work, please go through the below thread:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/03068ecb-7edd-43d8-bc68-12bc466c583f/how-to-extend-the-windows-2003-c-drive?forum=winservergen
    Regards,
    Yan Li
    Regards, Yan Li

  • TS1717 Ever since I downloaded and installed iTunes64Setup.exe  v. 6.0.1, it crashes on my Windows 7 system, with the useless message, "iTunes has stopped working.  A problem caused the program to stop working correctly.  Windows will close the program an

    iTunes64Setup.exe, even after multiple times of uninstalling and reinstalling with even a fresh download crashes with the message:
    "iTunes has stopped working.  A problem [unspecified] caused the program to stop working correctly.  Windows will close the program and notify you IF a solution is available."  I cannot get out of this loop and it renders my iPad HD useless.  I tried calling the Apple Store but was referred by an automated system to this web site.  I tried looking up the problem in the FAQ but it didn't help.
    merylew

    Hi there Nok Saensanoh,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    -Griff W.

  • Problem with iTunes. I have Windows 8 on a new laptop. Installed latest version of iTunes. Can play music in My Library but when I click on Itunes Store I get the message "iTunes has stopped working. A problem caused the program to stop working correctly.

    I have a new laptop with Windows 8 as operating system. Installed latest version of iTunes ontop computer. I can play music in My Library but when I click on iTunes, I get the message " iTunes has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify if a solution is available."
    Anyone know what is the cause and if there is a resolution? Have tried to re-installing iTunes and have also tried restoring laptop to an earlier date.

    iPad not appearing in iTunes
    http://www.apple.com/support/ipad/assistant/itunes/
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    iTunes for Windows: Device Sync Tests
    http://support.apple.com/kb/HT4235
    IOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    Apple - Support - iPad - Syncing
    http://www.apple.com/support/ipad/syncing/
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi Syncing
    http://support.apple.com/kb/ts4062
    The Complete Guide to Using the iTunes Store
    http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Best Fixes for ‘Cannot Connect to iTunes Store’ Errors
    http://ipadinsight.com/ipad-tips-tricks/best-fixes-for-cannot-connect-to-itunes- store-errors/
    Try this first - Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    This works for some users. Not sure why.
    Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
     Cheers, Tom

  • HT4356 Mavric doesn't support my 5 years old Big Screen Display, OR? Tried to connect my Mac Book Pro after installing Mavric, The Screen didn't work as before. I could only see the Desktop but not the movies for example. What can I do?

    Mavric doesn't support my 5 years old Big Screen Display, OR? Tried to connect my Mac Book Pro after installing Mavric, The Screen didn't work as before. I could only see the Desktop but not the movies for example.
    <E-mail Edited by Host>

    It appears what happened is the installer though it was looking at a empty drive and just went ahead and installed.
    I of course am assuming here you didn't use Disk Utility to format the drive first before installing, that would wipe out your files and programs for sure.
    So what to do, what to do.
    Well there is hope for you as long as the drive wasn't Filevaulted.
    I'll explain. When a hard drive writes data for the first time to a drive, it starts at the very top and works it's way down.
    When OS X was installed the first time, it was at the top of the drive, unless you upgraded then the upgraded OS X could have been written elsewhere.
    Now when you just reinstalled OS X, the new OS went on the top of the drive, overwriting any data that was there previously, so what was there you have lost forever which is about 8GB or so. If it was the previous OS there, then your more in luck because only the old OS X was overwritten.
    The remaining space on the drive still can have a copy of your files, provided it's not overwritten yet.
    It's because when a hard drive deletes data or reformats, it doesn't remove the data off the drive or overwrites it immediately, it's just made so it's SPACE is available for new files to be written there.
    So technically one can recover the deleted data off a non-encrypted/scrubbed hard drive with special software.
    The way it does this is it reads the 1's and 0's of the files themselves, and through a lot of figuring out, can tell what that file is and what it belongs too.
    So what you will have to do is this:
    Create a data recovery/undelete external boot drive
    or if you don't have the skills, then take it to a local PC/Mac tech and they can do a direct image of the drive and then you can run Data Rescue on it to rebuild your files.

  • So I download photoshop cc (2014) and when I go to open the program, it gives me an error message and shuts the program down. It says," A problem cause the program to stop working correctly. Windows will close the program." Can someone help me please?

    So I download photoshop cc (2014) and when I go to open the program, it gives me an error message and shuts the program down. It says," A problem cause the program to stop working correctly. Windows will close the program." Can someone help me please?

    I've got the same issue and it affects all my adobe software.  You are not alone as I have seen several postings looking for the answer to this help request.

  • I bought an IPAD air from state and the screen is not working correctly and right now i'm in Egypt ,can i send my ipad to service in Egypt and the warranty will work in Egypt or what?

    i bought an IPAD air (32 gb wifi only) from USA just one month ago and the screen is not working correctly(picture attached) and right now i'm in Egypt ,can i send my ipad to service in Egypt and the warranty will work in Egypt or what?

    Have you tried a soft-reset to see if that fixes it ? You might be able to get warranty service in Egypt for your iPad, but the warranty includes :
    IMPORTANT RESTRICTION FOR iPHONE AND iPAD SERVICE.
    Apple may restrict warranty service for iPhone and iPad to the country where Apple or its Authorized Distributors originally sold the device.
    As it's wifi-only you should have a better chance of it being serviced under warranty, but there are no guarantees, it might depend upon the repairer.
    Egypt authorised service providers : https://locate.apple.com/eg/en/

  • I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.

    I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.

    JackieMars71 I would recommend reviewing your installation log files to determine if there are any errors during the installation process.  You can find information on how to locate and interpret your installation log files at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html.  You are welcome to post any specific errors you discover to this discussion.

  • "iTunes has stopped working.  A problem caused the program to stop working correctly.   Windows will close the program and notify you if a solution is available."

    Whenever I connect to the iTunes store i receive an error message "iTunes has stopped working.  A problem caused the program to stop working correctly.   Windows will close the program and notify you if a solution is available."    This causes iTunes to close.  I am using iTunes version 10.5.0.142 on a Windows Vista (64) PC.  I have reinstalled iTunes selecting the "repair" option and also uninstalled and reinstalled iTunes.  Any help will be deeply appreciated.  Thank you.  Below is the result of the diagnositc.
    Microsoft Windows 7 x64 Home Premium Edition Service Pack 1 (Build 7601)
    HP-Pavilion BN474AV-ABA HPE-150t
    iTunes 10.5.0.142
    QuickTime not available
    FairPlay 1.13.35
    Apple Application Support 2.1.5
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 4.0.0.96
    Apple Mobile Device Driver 1.57.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.3.494
    Gracenote MusicID 1.9.3.106
    Gracenote Submit 1.9.3.136
    Gracenote DSP 1.9.3.44
    iTunes Serial Number 002FAD94098CD0E0
    Current user is not an administrator.
    The current local date and time is 2011-11-13 22:08:54.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    NVIDIA, NVIDIA GeForce GT 220
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: 2cb3fff3fa771d265b0f8ffdcca13b55
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name: {F4A2029C-16AA-4BDF-8DB7-9EC2A75B5991}
    Description: Realtek PCIe GBE Family Controller
    IP Address: 192.168.1.6
    Subnet Mask: 255.255.255.0
    Default Gateway: 192.168.1.1
    DHCP Enabled: Yes
    DHCP Server: 192.168.1.1
    Lease Obtained: Sun Nov 13 21:09:29 2011
    Lease Expires: Mon Nov 14 21:09:29 2011
    DNS Servers: 192.168.1.1
    Active Connection: LAN Connection
    Connected: Yes
    Online: Yes
    Using Modem: No
    Using LAN: Yes
    Using Proxy: No
    SSL 3.0 Support: Enabled
    TLS 1.0 Support: Disabled
    Firewall Information
    Windows Firewall is on.
    iTunes is NOT enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was successful.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2011-11-13 22:02:08.
    **** CD/DVD Drive Tests ****
    LowerFilters: PxHlpa64 (2.0.0.0),
    UpperFilters: GEARAspiWDM (2.2.0.1),
    E: hp DVD A DH16ABLH, Rev 3HD9
    Data or MP3 CD in drive.
    Found 1 songs on CD, playing time 15:40 on CDROM media.
    Track 1, start time 00:02:00
    Get drive speed succeeded.
    The drive CDR speeds are: 8 16 24 32.
    The drive CDRW speeds are: 8.
    The drive DVDR speeds are: 8.
    The drive DVDRW speeds are: 8.
    The last failed audio CD burn had error code 4251(0x0000109b). It happened on drive E: hp CDDVDW TS-H653R on CDR media at speed 24X.
    **** Device Connectivity Tests ****
    iPodService 10.5.0.142 (x64) is currently running.
    iTunesHelper 10.5.0.142 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B34. Device is working properly.
    Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B3C. Device is working properly.
    FireWire (IEEE 1394) Host Controllers:
    VIA 1394 OHCI Compliant Host Controller. Device is working properly.
    Connected Device Information:
    Bruce's iTouch, iPod touch (2nd generation) running firmware version 4.2.1
    Serial Number: 1C9053CC201
    **** Device Sync Tests ****
    Sync tests completed successfully.

    Same exact thing with me.  And no help from apple.  Just dropped nearly $600 and cannot get a decent working setup.
    Apple's only suggestion was to uninstall iTunes and Quicktime, and re-install... of course (the I.T. Crowd tactic).
    The crash happens only on iTunes store access.

  • TS1424 HELLO! whenever i try to access the itunes store from the itunes on my laptop i get this message: ITUNES HAS STOPPED WORKING a problem caused the program to stop working correctly. windows will close the program and notify if a solution is availabl

    for a few weeks i have not been able to access the itunes store from the itunes on my laptop. every time i click on it it tells me it cannot access the store...not sure why. and says this: ITUNES HAS STOPPED WORKING a problem caused the program to stop working correctly. windows will close the program and notify if a solution is available.

    I had this exact same problem.  I found this fix and it worked for me. 
    Step 1:
    Browse to C:\Program Files (x86)\Common Files\Apple\Apple Application Support and copy the filen named QTMovieWin.dll. 
    Step 2:
    Browse and past that file into C:\Program Files (x86)\iTunes.
    Hope this helps you.  I wish I could remember where I saw this originally so I could thank them.
    Good Luck.
    Anthony

  • I have ad Apple ID on my iPad , when I use the apple on my iPhone for the first time, I put in my Apple ID for the iPad, didn't work. Need to create a new one. Why? How can I just use my iPad ID on my iPhone?

    I have ad Apple ID on my iPad , when I use the apple on my iPhone for the first time, I put in my Apple ID for the iPad, didn't work. Need to create a new one. Why? How can I just use my iPad ID on my iPhone?

    Hi kamfong,
    Went to Settings where?
    If you want to use your exisiting Apple ID on your iPad, you need to:
    1.     Go to Settings>iTunes & App Store and sign out the new ID, and then sign on the old one
    2.     Go to Settings>iCloud, scroll to the bottom and delete the iCloud account, and the sign back onto iCloud using the old ID
    You still have not indindated why you are saying that using your old ID originally "didn't work". What do you mean by that? Did you get some sort of error when you tried to sign on with your exisiting Apple ID?
    Cheers,
    GB

  • Adobe Photoshop CS3 has stopped working: A problem caused the program to stop working correctly.

    I recently purchased a new desktop computer and installed Adobe CS3 Master Edition on it and I get the following error:
    Adobe Photoshop CS3 has stopped working: A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
    Out of the entire suite of tools only Photoshop will not launch. The weird thing is i also had the same Adobe programs installed on my laptop and I have not made any installation updates to that machine and i am getting the same error. I have always installed the same software on my two home machines with no problem until now. Any help is appreciated.
    Thanks,
    Andy

    You'll probably going to have to uninstall, then re-install the application; but you need to provide a lot more information;
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • In my first iPhone 5, the speaker didn't work and people could not hear me on Speaker phone when I used it. When I used the video recording it did not record sound at all only a hissing/static sound, no voice.

    In my first iPhone 5, the speaker didn't work and people could not hear me on Speaker phone when I used it. When I used the video recording it did not record sound at all only a hissing/static sound, no voice. I wished for a software fix. I did a hard reset, nothing. I did a full restore to factory settings not putting my backup on and the problem persisted.
    i have been provided with this info
    You can find troubleshooting tips, how-to articles, and moderated
    > > discussion forums on our support website:
    > >
    > > www.apple.com/support
    > >
    > > iPhone: Basic troubleshooting
    > > http://support.apple.com/kb/HT1737
    > >
    I did every step in the link that i have been provided with (thank you), but I’m
    still experiencing the same issue. My experience with Apple has been
    excellent and this has been the first time I have experienced something
    like this with an Apple product. I hope we can find a quick solution.
    In order to get the iPhone 5 as soon as it launched (being a major fan of
    Apple products!), I purchased my iPhone 5 from the UK through a friend of
    mine who lives there.
    My question is: can I have the faulty device replaced within Saudi by one
    of the official resellers here (we have 3: STC, Mobily and Zain)? I want to
    avoid the disruption, complication and expense of sending it back to the
    UK.
    Could you advise whether this is possible or not, and if not how should I
    go about having the device replaced?
    Thank you in advance for your cooperation.

    Nice try! Take a hike.

  • Itunes will no longer work on my Windows 8 PC. When I attempt to start the program a message says: A problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available.

    Itunes will no longer work on my Windows 8 PC. When I attempt to start the program a message says: A problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available.  I have tried to uninstall iTunes but the Windows uninstaller will not delete the program I get a message that says: A network error occurred while attempting to read file: C:\Windows|Installer|iTunes.msi.  How do I get iTunes to work again?

    Whentrying to uninstall iTunes (the first program that must be uninstalled per the instructions) I get a message:  A network error occurred while attempting to read file: C:\Windows|Installer|iTunes.msi. I can't even uninstall iTunes?
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page).
    http://majorgeeks.com/download.php?det=4459
    Here's a screenshot showing the particular links on the page that you should be clicking:
    After clicking one of the circled links, you should be taken to another page, and after a few seconds you should see a download dialog appear for the msicuu2.exe file. Here's a screenshot of what it looks like for me in Firefox:
    Choose to Save the file. If the dialog box does not appear for you, click the link on the page that says "CLICK HERE IF IT DOES NOT". Here's a screenshot of the page with the relevant link circled:
    When the dialog appears, choose to save the file.
    (2) Go to the Downloads area for your Web browser. Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I got an error message: 'iTunes has stopped working. A problem caused the program to stop working correctly. The solution asked me to load latest version which I did many times and still not working... HELP!

    [Window Title]
    Microsoft Windows
    [Main Instruction]
    iTunes has stopped working
    [Content]
    A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
    [Close program]
    This is what I got... sorry, not very tech savvy to copy the error message onto here...
    Have tried uninstalled and re-installed iTune, updated the new version of 10.6... many times over still not working!!!
    I share the frustrations of many here. HELP!!!!!

    Hi there Nok Saensanoh,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    -Griff W.

Maybe you are looking for

  • Issue with Replacement path  variable

    Hi all, I had created a formula variable with replacement path for this i had created a variable with replacement path and i had used it in the formula but i am unable to get the value of the replaced objects can any one thru some light on this. Rega

  • Error in FPM application

    Hi All, I am getting the following error in ESS application running the time sheet. It was working fine suddently throwing error in FPM component. Can any body let me know what could be the reason. how to reslove this issue Regards viay java.lang.Cla

  • MRP run agnst remaining PIR

    Hi gurus, In strategy 40. I gave PIR for 100 units and CIR for 50 units. Result is pln ord of 50 units. In MD62 we can see 50 units remaining req. Now when Iu2019m running MRP agn I donu2019t want MRP to consider this remaining PIR req. What setting

  • Examples related to interrupts & Burst in 6534

    Hye friends, I want some examples if anybody have, But i have only 6534 card and no external device to trigger, so keep in mind that i want such examples which totally depends on 6534 only no external timers, counters etc. So the vi should contain co

  • Old version exp (8.0.5) problem

    Hi there! I4m having problem running EXP on HP-UX. When the dump file reaches 2gb the export stops with an error message saying it cannot write the output file. The OS is enabled for large files already. Does EXP 8.0.5 have a problem with large files