Displaying an error message  coused by check constraint

Hi,
I'm trying to replace oracle error message by my own message.
Form report is throwing an expected error like :
'Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-02290: check constraint ...'
I used the plsql block to handle with that but it doesnt set the my message. After press a button the check constraint validate a date and if data are unexpected then throwing a error which i want to replace by my own.
The process is listed below:
DECLARE
invalid_sql EXCEPTION;
PRAGMA EXCEPTION_INIT (invalid_sql, -02290);
page_error EXCEPTION;
PRAGMA EXCEPTION_INIT (page_error, -20001);
BEGIN
:p12_error := NULL;
EXCEPTION
WHEN invalid_sql THEN
:p12_error := 'In case of sql injection attack some of the statements were forbidden: INSERT, UPDATE, DELETE, DROP, ALTER, TRUNCATE, EXECUTE';
WHEN page_error THEN
:P12_ERROR := 'Please contact your administrator !!!';
WHEN OTHERS THEN
:p12_error := SQLERRM;
END;
P12_ERROR -- hidden item
Then i set the 'success message ' :
&P12_ERROR.
What is wrong that is not showing my message?It not recognoze Init pragma?.
Please give my some points on it!
Edited by: rafix on 2008-12-16 04:31

I followed Denes Kubick' way on his blog http://htmldb.oracle.com/pls/otn/f?p=31517:185:17139524101939:::RP,::
where he created process on SubmitThe process is a simple example of error handling in ApEx. It does inserting and at the
same time it handels exceptions. If an exception occurs, it will use a hidden item on the
page to store error messages. At the same time, the success message of that process
(which is what you get after pressing the "Save" button) is &P185_ERROR. item.
Returning to my previous post i got tabular form report where constraint makes error in case of writing 'insert, delete...' after save button where have been pressed. Pragma mechenism is trapping like you wrote exceptions.Ok.
So what i need configure to associate that process to trapped error?
Edited by: rafix on 2008-12-17 05:40

Similar Messages

  • Displaying an error message with a link to the error field

    By default, ADF validation usually displays an alert with an error message and a link to the error field.
    I have some custom validations where I finally display the error message with this:
      public static void MessageError(String messageText){
        //String messageText="No se han encontrado estos datos";
        FacesMessage fm = new FacesMessage(messageText);
         * set the type of the message.
         * Valid types: error, fatal,info,warning
        fm.setSeverity(FacesMessage.SEVERITY_ERROR);
        FacesContext context = FacesContext.getCurrentInstance();
        context.addMessage(null, fm);
    My customer is asking for displaying a link to the error field in this kind of error alerts as standard errors do.
    Is there any way to get this ?

    Can't you include this in your message?
    You may want to check Duncan's blog https://blogs.oracle.com/groundside/entry/get_more_from_your_messages whichgives more inside on what you can do
    Timo

  • ITunes displays -48 error message when syncing iPod Nano on Windows XP

    My girlfriend's mom's iPod Nano ran out of charge while jogging so she decided to charge it on her daughter's iHome. The next day she went to use her iPod but it was totally empty of all music and files. When she tried to sync it to iTunes, she received an eror message stating, "An unknown error has occurred (-48)" from iTunes and a Windows message stating that some iPod folder/file was corrupted.
    If anyone receives such a message, I was able to correct it by:
    -Plugging in your iPod to your PC
    -Ignore the error messages
    -Go to My Computer
    -Find your iPod's drive letter (ie. G:)
    -Right-click on it and select Properties
    -Go to Tools Tab >Error-checking and select Check Now
    You should be able to sync your iPod as before. I do not claim to be an expert so be warned that it may not work for you. Good luck!

    Hey ermides,
    Thanks for the question. The following resource provides information if you are receiving a -50 error message when syncing:
    iTunes displays -50 error message when syncing iPod on Windows XP - Apple Support
    http://support.apple.com/en-us/ts1539
    Thanks,
    Matt M.

  • Error Message "Tape Trouble - Check VTR"

    I am using a Panasonic VTR AJ-D450(via Component and RS422 deck control @ DVC Pro 50 resolution) capturing with a Blackmagics Extreme HD and I get the following error message:
    "Tape trouble--check VTR. Do no attempt to eject tape or use transport without checking VTR first."
    The tape keeps running with this message up on the screen but the drive has stopped capturing. There are no timecode skip warnings and no other indications.
    The main problem is that the capture using Blackmagic Deck Control is perfect, this message appears only in the FC2 capture. In another topic, Aja resolved this issue with a patch.
    There are no error messages on the deck display which tells me the deck & tape are actually ok. But has anyone else experienced this and have knowledge about it?
    Thanks
    Andre

    Hello Guys,
    Thank you for the support, I had solved the problem using the Keyspan USB where the Final Cut 2 started to capture the image normally.
    I am not sure now about the compatibility between Blackmagics Decklink and RS422 of Panasonic VTRs.
    Regards,
    André Ingnez

  • HP 1610v error message: Remove and check color cartridge

    In the middle of printing, my HP 1610v All-In-One PSC just stopped and displayed an error message reading "remove and check color cartridge". I did.... but couldn't really determine what I'm supposed to be looking for though. Ink cartridge is full, clean, and seems fine. Not only can I not figure out what I'm supposed to do to fix it....I can't do ANYTHING. no printer menu access, no printing with only the black cartridge, only an orange exclamation point that ceaselessly blinks at me.
    I've tried unplugging and waiting 20 seconds
    I've put 3 different color cartridges in and the error message only went away with the EMPTY cartridge...which, of course, I couldn't print with!
    Please Help ASAP!!
    Thanks!

    Hi there iceefrost,
    This article should cover the issue you are experiencing. Give the steps outlined a shot and let us know if it helps.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Capture Error Message: Tape Trouble--Check VTR

    On certain sections of different Digital Betacam source tapes (via SDI and RS422 deck control--Sony J-30 deck @ DVC Pro 50 resolution) I get the following error message:
    "Tape trouble--check VTR. Do no attempt to eject tape or use transport without checking VTR first."
    The tape keeps running with this message up on the screen but the drive has stopped capturing. There are no timecode skip warnings and no other indications. Was wondering if this message is generated by Kona (will check with AJA on Monday) or FCP? I have successfully captured other sections from the same tape. Tape dub stock is brand new.
    Perhaps the warning is correct and some anomally is being detected on the tape at only certain capture points on the same tape. There are no error messages on the deck display which tells me the deck & tape are actually ok. These pro decks are pretty good at letting you know if there's a tape slack, tape moisture or control track problem. But has anyone else experienced this and have knowledge about it?
    Thanks
    Steve

    Sounds like the VCR is sending false signals, or they are true, and you just don't see the problem when the deck sends the message to FCP.... I'd be prone to start trouble shooting this by resetting all the parameters of the playback machine in it's on screen menu etc... I'd suppose too that if there is the slightest error being detected, the deck will kick out the capture process. So might need to have the deck sent to maintenance.
    Jerry

  • How to Re-display an error message?

    Hi,
    This may sound nuts but I was wondering if it's possible to re-display an error message, after you've checked the box that says not to display it ever again. I was syncing my iPod nano (2nd gen) and received a message saying it could not be synched because it was full. I checked the little box to suppress future messages but now would like to be alerted. I can't seem to find a way to bring the message back. Any thoughts?
    Thank you!

    I found out how -- right-click (or control click) on the iPod icon in iTunes and select 'reset warnings'. Sorry...

  • HT1766 my backup is failling to restore and displays an error message: backup either corrupt or not compatible with the device. This happened after updating to the latest software IOS7

    My backup is failling to restore and displays an error message: backup either corrupt or not compatible with the device. This happened after updating to the latest software IOS7

    I have the same issue and I KNOW my backup IS good. What happen is when you try to restore your phone apple says something like can I check for new updates and if you choose no, it just takes you back to the restore screen and a loop from then on.  If you dont update from you phone then when you back up you will have the 5.0.1 back up and then when you update to 5.1.1 and then try to restore the backup from 5.0.1 it say it EITHER corrupt or incompatible.. It is incompatible and its hard as **** to restore back to 5.0.1. I followed the restore to a T and still getting errors. I lost all text history and have to reset up email. All just because I wanted a 1.2 Gigs of "other" space back.

  • ICI - How to display custom error messages in SAP CRM

    Hello,
    we are working on a custom Contact Center which interfaces with SAP CRM Version 7 with Enhancement Package over ICI.
    The basic call functions like accepting, hanging up, holding and retrieving are fully implemented and are working already.
    Our goal is to display error messages in the CRM so that clients know there is something wrong, for example why he can't be log in successfully (e.g. the telephony server isn't reachable).
    We already found the ICI Documentation file which provides us the CRM SOAP error codes and tried to send SOAP Fault messages, but never got
    them to screen.
    Please find an attached example screenshot what we mean exactly, reproduced by trying to make a call with CRM user while BCM CDT isn't
    running in the background.
    Regarding to this topic we've the following questions:
    - Is it possible to display custom error messages on the CRM or is this functionality limited to SAP?
    - Could you provide us some further information on how to use this feature exactly (implementation details?) and how the SOAP XML should look like to get it work?
    Thank you in advance!
    Best regards
    René Holy

    NewUser7 wrote:
    Please correct me if I am wrong
    I need to create an entity adapter and attach an error handler with the adapter? or can i handle that in the event handler itself. I coulnt find any api for handling errorsYou can do it both ways but since we are talking about event handler now, then in 9.x you need to extend com.thortech.xl.client.events.tcBaseEvent class for creating a event handler. In tcBaseEvent class there are various flavors of handleError method. So use that as per my note earlier and you should be good.
    HTH

  • Display Custom Error Message in OIM 11g

    Hi,
    I'm trying to display an error message from a validation event handler but seems that am missing something. When the "oracle.iam.platform.kernel.ValidationFailedException" is thrown from a validation handler an error message is displayed: "An error occurred". If an error code is provided (see code below) then the message looks like: "An error occurred. The corresponding error code is ERR-0001". I guess that some resource bungle with corresponding messages should be provided.
    the code used:
    package test;
    public class UserGeneralValidationHandler implements oracle.iam.platform.kernel.spi.ValidationHandler
    @Override
    public void validate(long processId, long eventId, Orchestration orchestration)
                   throws ValidationException
    String errorCode = "ERR-0001";
    String message = "Simple validation message.";
    ValidationFailedException ex = new ValidationFailedException(message);
    ex.setProcessID(processId);
    ex.setErrorCode(errorCode);
    throw ex;
    Q:
    1.What is missing for complete solution?
    2.What is the algorithm that used by OIM to find default or non default resource bundle?
    3.How to change out-of-box validation messages? For a sample "The organization ABC does not exist." message is shown if non existing organization is provided during user creation and I'd like to have a different one.
    Regards
    Serge

    rename OIMUI.jar  to OIMUI.zip
    find logging_en and loggin.properties.
    Modify the "IAM-2050512" error message with your custom message
    Find Agent and agent_en.properties.
    Find Note[ERROR_SUBMITTING_REQUEST].text.  Modify the message. Make sure the message must be the same with in logging.properties("IAM_2050512")
    Deploy
    change the  OIMUI.zip to jar
    replace the existing OIMUI.jar
    login to weblogic  and redeploy OIM (oim.ear)
    no need to restart OIM server.
    Test:
    create a request in web console again, you must see the custom message when you hit the submit button
    hope this helps.
    -rad

  • Displaying Custom Error Message in ALV

    Hello Experts,
    Usually, when an error occurs in editable ALV, the standard WD ALV functionality marks the particular error cell in red and displays the error message.
    I want the same functionality for custom error messages in event ON_DATA_CHECK. I'm able to display the message, but looking for a way to mark cells as well.
    Please help....

    Hello friend,
    I think this link will help you much more clear on the coloring of the ALV concepts.
    http://help.sap.com/saphelp_smehp1/helpdata/en/5f/ec57c72a1349c8bfdda56d976e9399/frameset.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393?QuickLink=index&overridelayout=true
    Thanks,
    Sri Hari

  • Display custom error message in enhancement spots

    Hi all,
    Is there someone here who've encountered having the need to display custom error message in an enhancement spot? Could you help me please.. I can't find any reference from the net.
    Thanks in advance
    Regards,
    Aris

    Hi,
    The error message can be only displayed in enhancement spots based on thr program flow.
    You have to determine where its getting called for ex: in PBO or PAI etc.....
    You have to find the right place to display the error messages . for ex: using a memory id ......

  • Display an error message during a few seconds

    Hi!
    When submitting a form, I am displaying a error message saying that the actions performed work fine. Afterwards I would like this message to disappear after a few seconds. How can I do that ?
    in the function called by my action button that submit the form i have:
    public void saveForm() {
    // .... operations ....
    context.addMessage(null,new FacesMessage("Everything is ok"));
    }

    Hi,
    I doubt if there is anything you can do from the action method
    saveForm(), however this you can do it from the client side just
    put some seconds delay in onload method in javascript and
    redirect to some other page.
    Thanks
    Ansar

  • ADF-BC/JSF How to display acustom error message from a backing bean

    Hi all
    Can anybody provide an example of how to manipulate the list of error messages from a JSF backing bean.
    In my code I use a different navigation case and this directs the user to the page displaying the error message but I am sure that there must be a more elegant way.
    Thanks in advance
    Thanassis

    Thanks Kris
    I think you 've put me on the right track here, it's just that in my case what I really want to do is prevent my users from editing records not belonging to their own group. This is done via a selectOne table component and then the backing bean code tests if the value #{row.UserGroup} matches the #{bindings.LoggedOnUserGroup.inputValue}. If the values are equal then the beans returns the navigation case to the edit page. Otherwise it returns the navigation case for the "cannot edit" page.
    So what I am thinking is to return null and somehow raise the right kind of exception in order to display the error in the af:messages tag.
    Thanassis

  • IF_EX_ME_PROCESS_PO_CUST multiple error message in the CHECK

    Hi All
    i search a way for multiple error message in the CHECK Methode, because i check every line.
    INCLUDE MM_MESSAGES_MAC.
    ch_failed = 'X'.
    mmpur_message 'E'                                     "&1 sy-msgty
                  '00'                                    "&2 sy-msgid
                  '398'                                   "&3 sy-msgno
                  'Werk nicht in allen Positionen gleich' "&4 sy-msgv1
                  ''                                      "&5 sy-msgv2
                  ''                                      "&6 sy-msgv3
                  ''.                                     "&7 sy-msgv4
    Thanks

    Hi
    ME21N has also a Error Message BAPI for view Errors and i need multiple Messages on these step for each position

Maybe you are looking for

  • Adding New SAP System in System Configuration

    Hi i want to add a new system in Portal i follow the path system administration -- system configuration -- portal content -- <my folder> -- < add system template > i can successfully do this in the objects i have maintained Connector where i have giv

  • Vi to serial port to hyperterminal

    Hi guys. I am using 2 RS-232 cables to connect 2 ports together. I use 1 of the ports for hyperterminal. When I run my VI I wish to see what is displayed at the hyperterminal. However, all that I get is gibberish. May I know what is the problem? Plea

  • App-v 4.6: Internet explorer application sequenced, when Internet Explorer is started, application does not launch

    Hi, We have this app-v application which contains an activex component in Internet explorer. I created a shortcut on Q:\application to Internet Explorer during sequencing what works fine. The App-v application works fine as long as no Internet Explor

  • Can't delete folder/picture

    Good day. I have a folder "untitled folder" on my desktop, with a single photograph inside. When I try to delete the folder to the trash, I am told I can't because I "do not have sufficient privileges for some of the items". If I try to delete just t

  • Audigy 2 zs Platinum, Vista 32 Ultim

    Hello all, I'm having a problem installing the Audigy 2 zs Platinum on Windows Vista Ultimate 32 bit. The computer boots and sees the card as a "Multimedia Audio Controller" in the device manager. It offers to automatically install drivers, which (na