Error-message (qms$trans_error)

We use headstart 6.5.1
In case a Business Rule fails we get the (expected) error-window
showing what is wrong.
In one form we just get the blank error-window, without showing
the error-messages. The only thing we can do is to close the
form (and losing all the changes).
The BR's (and FK and PK constraints) for the same records work
fine in other forms (this means the capi and tapi are OK).
What can be the problem.

Roel,
This is a "bug" in Headstart. I changed the code so that when an error needs to be shown on an invalid item, the error is shown through a popup, and not the error-screen.
Greetings,
Kristof

Similar Messages

  • HST60: qms$trans_errors.display_messages does not activate error window

    Using qms$trans_errors.display_messages; does not activate the error window. The window is popped but is not activated and no errors are shown. When activating the error window the errors are shown.
    Help needed.

    I have the same problem...
    My scenario is:
    I have a form with one block, a control block that collects data then from a when-button-pressed trigger on a button also on the control block, I call server-side code that updates tables (using the Tapi upd/ins/del procedures) but when a BR error occurs and returns to the form , the error block pops-up but is greyed out, only when I click on the block do the errors appears ok.
    NOTE: this only happens the first time the server code is run any subsequent times the error block displays fine.....
    code in ON-ERROR at form level:
    /* CGAP$TES_SEQUENCE_BEFORE */
    begin
    qms$event_form('ON-ERROR');
    end;
    code in ON-ERROR at block level:
    /* CGAP$OLES_SEQUENCE_BEFORE */
    begin
    qms$event_ctrl_block('ON-ERROR');
    end;
    I tried the sychronize and then moving to the block after the on-error code , but it made no difference.
    Regards David Short.

  • How can i dispaly an Error Message from Server Side To form

    Hi All,
    How can i dispaly an Error Message from Server Side To form side .
    i try several ways nothing succed.
    i put the error in stack and after call the procedure from form i added
    Qms$Trans_Errors.Display_Messages;
    and because it is an error not informantional error the error screen displayed and enter
    in infinite loop acts like flashing .
    can any one help me please i use C/S Headstart6i and Designer 6i
    thanks alot
    radi

    hi,
    thanks alot lauri.
    yr code work only using information message but in error message its still the same .
    the error window still flash and enter in infinite loop of executeing the same triggers.
    thanks again
    radi

  • When window closed shows qms$trans_errors window

    Hello,
    I want to report the following problem, regarding qmslib65.pll, revision 6.5.1.12.
    To show the problem, I do the following actions:
    1. In my form I delete a record (which has details record, that are not shown in the form)
    2. I try to close the window and I see an popup window, asking me if I want to save the changes
    3. I answer Yes and due to the restricted relation between this record and its details I see a popup window, telling me that this delete action is not allowed.
    4. The next thing that happens is that the form is showing me the qms$trans_errors window with no information at all.
    My guess is that this is due to the qms$window.when_window_closed procedure, present in the qmslib65.pll, especially the follwing code:
    if l_last_window
    then
    if qms$errors.show_message('QMS-00158')
    then
    commit_form;
    if name_in('system.form_status') <> 'QUERY'
    then
    go_block('QMS$TRANS_ERRORS');
    raise form_trigger_failure;
    end if;
    else
    exit_form(no_validate,full_rollback);
    end if; -- show message
    end if; -- last window
    Notice the go_block('QMS$TRANS_ERRORS') line. In my opinion the violation of the FK restricted constraint is not handled by any business rule (qms$transaction) and therefore the go_block('QMS$TRANS_ERRORS'); statement is obsolete in this case.
    What I want to do know is create a workaround to avoid showing the qms$trans_errors window if no business rule is violated, when closing the window. Any ideas?
    With regards,
    William de Ronde

    This is known bug #2283122. It was fixed in Headstart patch 6.5.2.2, which is available via the supplement option.
    Basically, we added a bit of code to check the number of messages on the cg$errors message stack just before going to the QMS$TRANS_ERRORS block. We now only go to the block if the number of messages is > 0.
    Regards,
    Lauri

  • Error message does't show at modal form

    Hi,
    Can anybody tell me when and where the error should be displayed when the form is a modal form.
    Please help me!
    Kind regards
    Edward de Ridder

    I replay to my own message because I did not find the problem but I have a workaround that maybe interest some of you.
    Copy the procedure DisplayServerQMSError from an early version of qmslib to qmslib65 qms$errors. Change than the call qms$trans_errors.Display_messages in the procedure unhandled_exception to DisplayServerQMSError and it works fine by me.
    Of course there are nicer ways to do this, please tell me if you know one.

  • Qms$trans_errors windows not active

    Designer 9.0.2.7
    Headstart 6.5
    Oracle 8.1.7 database
    When errors are raised from tapi's en capi's the error window works fine.
    When I raise an error from a stored procedure the error window is raised but is NOT ACTIVE. The user first has to click somewhere in the error screen to see the error message.
    Any ideas?

    More information
    Form with a button which executes a stored procedure on the database.
    Somewhere in the stored procedure a message is raised with: qms$errors.show_message
    When I push the button the message is raised from the server into the qms$trans_errors windows. The problem is that this window is not active. I've found out that the Form navigates from the qms$trans_errors windows back to the main window. Why?? I don't know, How?? I wish i knew.
    If i put the call to the stored procedure in the on-commit trigger (instead of in a button) the problem does not occur.
    Meine

  • Custom Error Messages

    I've read numerous posts and blog entries regarding customizing oracle error messages to provide a more user friendly output. However, I have a slightly different scenario here that I'm hoping for some help on.
    I'm building a new application that sits on an existing database. Within the database there are thousands of tables and triggers containing validation that raise application errors for messages we've created, for example raise_aplication_error(-20101,'SSL-01010'). In a separate table we have a list of our error codes and messages. In forms we have a function that picks up our code from the error message and translates to our message which is then displayed to the user. I need to do something similar in APEX.
    I've created a very simple test table, trigger and page that generates an error when you try to update or delete it. And I've created a customer error page (page 200) to display the user friendly message. I'd like to populate an item on this page with our error code if it's there.
    In the Error Page Template section of the template I added the following code which searches for SSL or QMS in the message:
    <input type="hidden" value="#MESSAGE#" id="P0_ERRMSG"></input>
    <script type="text/javascript">
    str=document.getElementById("P0_ERRMSG").value
    search_term = "SSL";
    str_check = str.indexOf( search_term );
    if (str_check==-1) {
    search_term = "QMS";
    str_check = str.indexOf( search_term );
    if (str_check!=-1) {
    str_val = str.substring(str_check,str_check + 9)
    url_location = "f?p=&APP_ID.:200:&APP_SESSION.::NO::P200_ERROR_MESSAGE:"+str_val
    window.location = url_location;
    url_location = "f?p=&APP_ID.:200:&APP_SESSION.::NO::P200_ERROR_MESSAGE:"+str
    window.location = url_location;
    </script>
    The error displayed on the screen, without this template change, is:
    "ORA-20001: Error in multi row delete operation: row= 1, ORA-20101: SSL-01010 ORA-06512: at "SWIFT_OWNER.APEX_CONS_TEST_BTRG", line 3 ORA-04088: error during execution of trigger 'SWIFT_OWNER.APEX_CONS_TEST_BTRG', delete from "SWIFT_OWNER"."APEX_CONS_TEST" where "ID" = :p_pk_col"
    As you can see our error code is contained in this output.
    However, #MESSAGE# is just "multi row operation failed" which means our error code is never picked up. I can't see how to access the full error message in the template.
    If there is an easier way of doing this I'm open to suggestions.
    Thanks
    Sara

    I think I've resolved this myself (with reference to a few different forum posts!) by changing the javascript in the Error Page Template to:
    <script language="javascript">
    function getElementsByClass(searchClass,node,tag) {
    var classElements = new Array();
    if ( node == null ) node = document;
    if ( tag == null ) tag = '*';
    return node.getElementsByTagName(tag);
    function show_error_text() {
    errorElements = getElementsByClass("ErrorPageMessage",document,"div");
    if (errorElements.length > 0 ) {
    errorText = errorElements[0].innerHTML;
    search_term = "SSL";
    str_check = errorText.indexOf(search_term);
    if (str_check==-1) {
    search_term = "QMS";
    str_check = errorText.indexOf( search_term );
    if (str_check > 0) {
    errorText = errorText.substr(str_check);
    errorText = errorText.substr(0,errorText.indexOf("ORA")-1);
    errorText = errorText.replace(/#/g,"~");
    url_location = "f?p=&APP_ID.:200:&APP_SESSION.::NO::P200_ERROR_MESSAGE:"+errorText;
    window.location = url_location;
    show_error_text();
    </script>
    We know our error codes will always start with SSL or QMS. So this will pass the bit of the Oracle error we're interested in to P200_ERROR_MESSAGE or the full Oracle error if it hasn't been raised by some of our code.

  • Printing custom error Messages in Messages column in WEBADI Excel Template

    I have created a Custom PL/SQL API and Custom integrator to upload data in our Custom Table for Receipts and Payments.
    Im printing error messages using the RAISE APPLICATION ERROR in the Messages Column of webadi upload spreadsheet. However the error message is getting truncated to 100 characters. Does anyone know why ?
    eg: In my PL/SQL API code is RAISE_APPLICATION_ERROR(-20001,V_MESSAGE);
    I saw in oracle that v_message length can be 2048 bytes (512 characters)..then why is it truncating it
    Thanks

    I think I've resolved this myself (with reference to a few different forum posts!) by changing the javascript in the Error Page Template to:
    <script language="javascript">
    function getElementsByClass(searchClass,node,tag) {
    var classElements = new Array();
    if ( node == null ) node = document;
    if ( tag == null ) tag = '*';
    return node.getElementsByTagName(tag);
    function show_error_text() {
    errorElements = getElementsByClass("ErrorPageMessage",document,"div");
    if (errorElements.length > 0 ) {
    errorText = errorElements[0].innerHTML;
    search_term = "SSL";
    str_check = errorText.indexOf(search_term);
    if (str_check==-1) {
    search_term = "QMS";
    str_check = errorText.indexOf( search_term );
    if (str_check > 0) {
    errorText = errorText.substr(str_check);
    errorText = errorText.substr(0,errorText.indexOf("ORA")-1);
    errorText = errorText.replace(/#/g,"~");
    url_location = "f?p=&APP_ID.:200:&APP_SESSION.::NO::P200_ERROR_MESSAGE:"+errorText;
    window.location = url_location;
    show_error_text();
    </script>
    We know our error codes will always start with SSL or QMS. So this will pass the bit of the Oracle error we're interested in to P200_ERROR_MESSAGE or the full Oracle error if it hasn't been raised by some of our code.

  • Headstart error message... getting user response

    Hi,
    I'm trying to get an error message to come up in headstart.
    I've so far managed to get normal error messages to popup and inform the user of an error. This is fine. My problem now is, I need to ask the user a 'Yes' / 'No' question (or 'OK' / 'Cancel') and use their response.
    I've tried:
    if qms$errors.show_message('Question here?','Q') then
       --code if Yes/OK
    else
       --code if No/Cancel
    end if;but this doesn't seem to work. It brings up an error message, but only with the 'OK' button and nothing else!
    Any help greatly appreciated.
    Thanks.

    Try using:
    Create an entry in the QMS_MESSAGE_PROPERTIES (e.g. with code = 'ABC-00001') with SEVERITY = 'Q' and an entry in QMS_MESSAGE_TEXT
    And then use
    qms$errors.show_message( p_mesg => 'ABC-0001' )
    The second parameter of qms$errors.show_message is param0 and that has nothing do to with "Q". Maybe you can use the parameter p_errtp => 'Q', but I remember vaguely that that is not working...
    HTH
    Roel

  • Windows Vista: Ipod Error Message, no longer read by PCs

    Hello,
    I have a 5th generation black ipod video with 30GB of memory.
    The other day I hooked it up to my laptop (Toshiba, 4 months old) that it's been functioning on with no problems whatsoever. This weird error message flashed twice about it not being able to sync because of some software problem.
    Eversince then, the only thing I can charge my ipod on is the family treadmill in the basement (~_~) as no other computer in the house recognizes it. I can't even charge it through the wall sockets, either.
    I have changed the ipod cord, still no luck. I've also reset the device about 3 or 4 times and uninstalled, restarted the laptop then reinstalled itunes. I would like to reset it back to factory settings but that's impossible as computers/laptops don't pick it up. I live very far from a Mac store...
    What's a girl to do? I can't live without my Busta Rhymes and Wu-Tang Clan!
    Any advice would be greatly appreciated! Thanks!

    you have to update Vista go to this site and up-date http://windowsupdate.microsoft.com

  • Error message into a Variable.

    Dear users,
    I have a rather usual (unusual from the weekend beers for me though!!) query which I can't figure out a proper way to implement.
    My requirement is like this:
    I have a message class in which I want to define a text 'Employee number & not found'.
    I want to use this in the program, but not to raise this error. Instead, I want to move this error message with the Employee number into a Character(200) variable.
    So instead of using MESSAGE e0xx(messageclass) USING employee number, I would like to move the error text into a variable which looks like:
    lv_text = e0xx(messageclass) USING '1234'   which stores the text 'Employee number 1234 not found' in lv_text.
    How would I acheive it??
    Thanks, V!

    Try tis way
    message e999(00) with i_emp-empno into lv_text.
    press f1 in message will provide you more details

  • IPod seen by windows, not by iTunes+ weird error message

    I have a first generation 2GB iPod nano and i use windows xp. I can't load any music because iTunes doesn't see my iPod and an error message pops up that reads like this: "iTunes: iTunes.exe corrupt file. The file or directory \iPod_Control\iTunes is corrupt and unredable. Please run the checkdisk utility." I've tried everything, reinstalling iTunes, different versions, reinstalling OS, resetting iPod, even on another computer, same problem. Other than that, the iPod works normally, it's just lacking music..
    and why is there no email adress from apple for service qustions? 10x

    I still don't get it, how can I put it in disk mode if I CANNOT see the iPod in iTunes..?
    Did you read the document i linked you to? here's another link to it:
    Putting iPod into Disk Mode
    whereabouts in that procedure in that document (that you get to by clicking that link) does it say that you have to connect it to iTunes to put it into disk mode?
    ... never mind ... i guess you've fixed it anyway ...

  • Error message iPod cannot update b/c all of the playlists no longer exist

    Hello. I have been getting this error message. "Songs on the iPod "MAR(the name of my iPod)" cannot update because all of the playlists selecting for updating no longer exist." And my playlists are still on the left side in my iTunes. They do exist. I have a feeling ths might have to do with the fact that on vacation the person I was visiting gave me a gift of putting all of his music that would fit into the external hard drive part of my iPod, and for the past week or so I have been putting that music onto my 40 GB portable hard drive at home. I suspect I took a vital folder out of my iPod by accident. Right now I have the folder iPod_control if I open my iPod up in My Computer. Am I missing something? Right now my iPod is empty because iTunes made a composite playlist last week and I deleted it thinking I could get my real playlists back. Can you help me, or reccomend a site/someone who can? Thank you.
    PC   Windows XP  

    hiya!
    And my playlists are still on the left side in my iTunes. They do exist.
    let's just doublecheck this. folks get this message if they have "automatically update selected playlists only" selected in their itunes "ipod" preferences tab. so bring up that tab ("edit > preferences", click "ipod" while the ipod is showing up in the source list), and do a playlist by playlist crosscheck of the playlists selected in that tab, and the playlists showing up in the itunes sourcelist.
    is there any playlist selected in the preferences tab that isn't showing up in the sourcelist?
    love, b

  • Windows Blue Screen Error Message Appears As Soon As IPod Connected

    Everytime I connect my IPod to my computer, I get the Windows Blue Screen error message. Thought it was the cable, so plugged cable in by itself. No problem. Uninstalled IPod and ITunes software and then plugged in IPod, still got the Blue Screen. The Blue Screen says something about "recent plugged in device problem". It is not the cable, it must be the IPod. Did not have this problem when I bought it. Tried it on labtop and get the same error message. I can't do updater or anything that requires me to plug the IPod into a computer because the Blue Screen appears immediately. When I unplug, the Blue Screen remains and locks up the computer so I have to restart each time. I have tried everything I can think of. Please help.

    Hi Mike thank you for replying,
    I am not able to start the computer in safe mode, safe mode with networking, last good known configuration etc, Each time it quickly blue screens and restarts about two secs into the process.
    I was unable to try a clean OS install from the disk as it gave the blue screen error shown in the original post. The same thing happened when I tried to use the repair option on the XP home disc. So i can't get into the computer at all to start diagnosing the fault, the only clue I have is the error message, and after searching the internet I haven't found much enlightenment from that yet.
    If you can help me out or suggest where to search it would be much appreciated.
    Thx

  • IPod Error Message: "The disk could not be read from or written to."

    Hello!
    I was syncing my sister's video iPod (30GB) and this error message pops up "Attempting to copy to the disk. "SARAH'S IPO" failed. The disk could not be read from or written to."
    I have restored it three times already, but once it starts putting the music and files back onto the iPod it pops up with that error message. I have updated to the latest version of iTunes and iPod software available. My OS is Windows XP.
    Is this something serious? Will I be able to fix it myself or will I need to send it in to be fixed by Apple? Will that be expensive? We didn’t get the Apple replacement plan. D=
    Any help would be greatly appreciated. Thank you in advance. ^_^
    PowerBook G4   Mac OS X (10.4.3)   15" PowerBook 1.5 GHz PowerPC G4, 1.5GB RAM - Windows XP with iPod 5 Generation

    Okay I went thru that entire list and here's what I got...
    (1) My OS is XP and is running fine.
    (2) I've updated my windows
    (3) I don't know of any software that might be interfering.
    (4) There are no damaged files.
    (5) My Windows hard-drive is not damaged and I've tried restoring my iPod's disk thru iTunes but it still doesn't work.
    (6) I don't have an iPod photo and I can't find the folder to delete the cache if if I did.
    (7) The USB cord is firmly connected into my USB port and my iPod
    (8) My music is on my external hard-drive so I need to keep 3rd-party hardware connected
    (9) I will try another USB cord to see if that works.
    Is there anything else that I can do? Can Apple fix this?
    Please let me know.

Maybe you are looking for

  • Vendor block code for release order creation but no purchase order creation

    The client has a vendor block code which when applied to a vendor through vendor block screen should allow release order creations against existing contracts and ARC but it should not allow purchase order creation. However, it is allowing purchase or

  • Offline in fiori lauchpad

    Hi experts, I have  a requirement where i need to implement offline feature for applications in fiori lauchpad. For example suppose i login to the fiori launchpad , say i have 5 - 6 applications. Now i need those applications to run when i go offline

  • Opening link in new window from cfgrid

    Hi all, I am using the following code to create a link to a more info page for the selected row of data: <cfinput type="button" name="MoreInfo" value="More Info" width="100" tooltip="Click here to view more information on the selected data" onClick="

  • Sortdump when checking number of records of an SAP table

    When trying to check number of records in an SAP table from SE16, that ends with shortdump as below. SQL error in the database when accessing a table. Database error text........: "601 Could not continue scan with NOLOCK due to data movement." Intern

  • Cannot open Aperture library

    I have multiple Aperture 3 libraries. I have the most current version of Aperture (3.5.1) and OS10.9.1. I can open all my libraries except one - the one I need for Christmas! I have tried all threee repair steps multiple times. Sometimes it gets as f