FRM-40501 Error and HeadStart 3.4.2W

I'm migrating and old application made with Designer 1.3.2 and HeadStart 3.4.2W to Oracle 8i Release 8.1.6 and in many forms screens at commit time i'm receiving the message FRM-40501 "Unable to reserve records to update or delete". Any Clue, Anyone.

This is the same problem as posted by Chuck, right?
ORA-01410
<p>I am not familiar with using instead-of triggers, so maybe someone else will help out here... Can you describe -- what does the instead-of trigger do?
<p>But: I am sure the problem is in the form, and not with corrupt indexes.
<p>Your Add_Table procedure is just setting up the record in the block to be added to the database. Everything looks normal there.
<p>But what have you changed in the form since it was working? Have you added some SQL statements? Maybe added a trigger to the block? Commit-time processing? Answer these things and maybe someone can help some more.
<p>It sounds like the rowid that Forms automatically sets after an insert is not being set, and you have added something (maybe inadvertently) that tries to update the record immediately after it is inserted. And the first thing that happens when you change a record is that Forms automatically issues a lock on the record (the select for update). This process uses a rowid, but your form has bypassed the process that sets the rowid.
<p>Good luck with Forms. It is frustrating at first, but it gets better. And Oracle is a great dbms to work on.

Similar Messages

  • FRM-40501 Error When Attempting To Change Check Box Value

    I am getting a FRM-40501 error when attempting to update/change a check box value. There are a few factors in my form setup that could be the problem, I will list them below:
    My initial problem was that my INSERT statement would not trigger to fire (based on an IF statement) when my check box value was not initially set to the value of 'Y', even though the initial value was set to 'Y' in the property palette (value when checked was set to 'Y' and value when unchecked was set to 'N'). So, to remedy this I placed a specific literal select of 'Y' and aliased it back to the name of my check box name in the data block query, like: SELECT 'Y' CB_SELECT_SCHOOL FROM user_schools. Then I changed the check box to a database item (value to Yes when it was No before my "SQL select cheat" in the data block query). This made the initial value 'Y' and satisfied my IF statement before my INSERT statement in my trigger. However, now I can not update the check box item.
    Does anyone know a better way to satisfy the initial value of my check box to 'Y', even though in the initial value parameter for my checkbox is set to 'Y' and forms is not really setting the initial value (when the check box is not set to a database item)?
    Thanks in advance.
    Kyle

    I have fixed my issue.
    I have reverted the check box to not be a database item, removed the "SQL cheat" of selecting 'Y' aliasing my checkbox name in the datablock SQL, and changed the initial value of 'N' in the check box property palette. This will force a change by the user making the check box value of 'Y', satifying my insert when-button-pressed trigger to fire and update the selected row.

  • FRM-40501 - Even if there is only one user

    Hi experts!
    When we try to updated a value of a database item in Forms 10g runtime, it throws FRM-40501 error and the values are not getting commited. Only one user is accessing the database. Query Allowed, Insert allowed and update allowed are set to yes in the block. Is there any property to be set to make it work?
    The same code works well in Forms 6i but not in 10g Forms. Plz help me out..
    Thanks in Advance,
    Natz...

    FRM-40501: ORACLE error: unable to reserve record for update or delete.
    Cause:  A fatal error occurred while trying to select the record for update.
    Action:  Pressing [Display Error] provides more information, if it is available. You can also try to update or delete this record later. If necessary, contact your DBA.
    Hard to say why this is happening because you haven't provided much information.
    * Have you tried pressing the Display Error?
    * What is your form doing when the error occurs?
    * Does this only happen to certain records? If so, your DBA will may need to unlock them.
    * Are you using lock_record built-in?
    * Have you tried creating a simple form and seeing if the problem still occurs?

  • Tracking changes and reserved record errors FRM-40501,ORA-00054,FRM-40400

    Forms [32 Bit] Version 10.1.2.2.0 (Production)
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    I'm working on a form with a lot of post-query triggers, and filling in values from selects, etc. I keep getting the message asking me to save changes when I haven't manually changed anything after just doing a querying and cancelling it (f8 to find record, f7 to cancel) Is there a way I can track what oracle thinks has changed so i can find out whats causing it?
    Possibly related, when I start up my form it starts in enter query mode, hitting f8 queries all records, but when I do so, im sometimes getting a FRM-40501 error saying oracle is unable to reserve record for update. (Just checking now this seems to have gone away so maybe someone else also had it open, shared environment) I assume this is also being caused by the fact that something is being changed in/after the query.

    I keep getting the message asking me to save changes when I haven't manually changed anything after just doing a querying and cancelling it
    This error will come when you are assigning any value to the DATABASE ITEM in the post query trigger.
    Appropriate solution:- Please check the properties of the items to which you are assigning values in the post query trigger.
    FRM-40501 error saying oracle is unable to reserve record for update.
    You generally get this error when you try to update the same record which is used somewhere else or in some other screen/block/canvas.
    Appropriate solution:- If you have 2 blocks based on same table then please make sure you are not updating the same record in one block while that recors is active/queried in other block.
    Or this may occur if you are using same record somewhere else.
    Please mark if it helps

  • Form with view having instead-of-trigger gives FRM-40501 and ORA-02014

    I created a data-entry from with a 'view' as datas-source block. This view gives crosstab query results with a data from a single base-table but it is complex and uses decode and aggregate funciton 'max' just to create group by in a crosstab query. I have created a instead of trigger on this view to update or insert a record in base table. A test to update base table works fine at SQl prompt. A test to insert at SQL shows '1 row created' but in fact when I query the database, it does not show newly inserted row. Also, when I compile and run this form, I get FRM-40501 and ORA-02014. Help!!!
    I know that DML operations on a view with DECODE, aggregate functions or group by can not be performed but I thought the "instead of" trigger on the view to update the base table should eleminate this restriction and hence pusued further but now stuck!
    BTW: I can post details of base table, view, and instead of trigger, if you want to see them to further decipher the problem. Just let me know. Thanks!
    VERSIONS: Forms in developer suite v10.1.2.0.2 on Windows XP 64 bit desktop - ; Backend database: 9.2.0.8 on Windows 2003 EE server
    Edited by: user8647268 on Aug 19, 2009 1:19 PM
    Edited by: user8647268 on Aug 19, 2009 1:25 PM

    I just forgot to ask you one question: In my experience with forms, I have captured before_value and after_value and implemented logic based on results many times. This form I am working on is kinda first multi-record form where I have a tabular page with date and about 7 other columns forming a grid of cells, which users wanted. Each line is a record from a view. I tried relying on forms to do DML on underlying table and since the underlying table is a paritioned table, I ran into FRM-40509 and ORA-00936, where returning ROWID becomes problematic. I found a note 167550.1 which says to set Key mode to 'Updateable' or 'Non-Updateable' but not 'Unique' or 'Automatic' as a solution #1. Solution#1 failed i.e. the errors persisted. The note also says in that case, implement Solution #2, which is to write explicit trigger to do each of the DML on view. Here I run into kinda problem: In a tabular form with say 31 records each row having 7 cells which is like capturing 217 before values..that is too many. Addressing them with ':old.xxx' or ':new.xxx' which works in instead of trigger, does not work in trigger inside forms. Without checking these before and after values, it inserts rows with nulls for empty cells where we wnated it to skip and do nothing. So iam looking for a way to capture before value using some kinda standard form mechanism..Do you have any suggestions! (Sorry for long explanation but that is the only way to do it..)

  • FRM-40200 and FRM-40501 in Enter-Query-Mode

    Some strange behaviour in Enter-Query-Mode:
    Although the help states
    About Designing Forms for Querying+
    +.. To make a "query-only" block, set Query Allowed to Yes and Delete Allowed, Insert Allowed, and Update Allowed to No. ..+
    I get FRM-40200: Field is protected against update.
    System.Mode says, we are currently in ENTER-QUERY.
    Setting insert- and update-allowed to TRUE, I get
    FRM-40501: ORACLE error: unable to reserve record for update or delete.
    The entered character flashes and is erased immediately.
    Any ideas?
    Forms 10gR2
    Items are base table, all transactional properties aund query_allowed are true, query_length is ok.
    2 Things that happen before the initiation of the enter-query-mode:
    . data-source is changed to another view; column names are ok.
    . all block-items are disabled and not navigable at start-up of form and re-enabled and made navigable before entering the block.
    The values of block and item-properties mentioned above are take at WHEN-NEW-ITEM-INSTANCE and no further trigger fire.

    I think you are not meaning just the KEY-ENTQRY-Trigger, that to easy
    IF INSTR(:SYSTEM.TRIGGER_BLOCK, '_DETAIL') = 0
    +               AND :SYSTEM.TRIGGER_BLOCK NOT IN ('VZG_KOPF','KONTROLL','BUTTONS','TEMP')+
    THEN
    +     ENTER_QUERY;+
    END IF;
    .. but the rest is a lil bit, let's call it bulky; including pll and db-packageges.
    I hoped to get a clue, if somebody has a similar expeience, in what direction to search. It's strange.
    And, as I noticed today, it's not a problem of all forms of the app. Not even of all the forms called from the same "environment" (same globals, same menu-form from which they are opened). To me it looks like Enter-Query does not work in the forms where I switch the block-data-source from a view to a globally temporary table. That (this switching) is not a new feature and Enter-Query worked in the past. Althoug we had some changes in the temp tables in the last weeks there are no problems in querying the data in the forms. Recompilation of pll and fmb, no improvement. And either Enter-Query woks in a form or it does not.

  • Support for Headstart?/FRM-40735 Error

    Hello,
    I am a consultant for Oracle, but I am very new to Oracle
    Applications and Headstart. I have a client with questions on
    Headstart, however this is outside the area of expertise of my
    group.
    I would like to ask 2 questions:
    1. It is my understanding that Oracle World Wide Support does
    not handle calls on this. Can someone tell me how (if possible)
    my client can get support for Headstart ?
    2. Also, the client is experiencing an error with forms
    generated by Headstart. If they hit the up arrow key at the top
    of a form they get the error message 'FRM-40735 ON-ERROR trigger
    raised unhandled exception PROGRAM_ERROR'. This problem is
    solved if they generate a .plx file. Is there another way to
    resolve this or is it required to do this for all forms created
    via Headstart?
    Any help would be greatly appreciated !
    Thank you !
    null

    Sorry, I just realized this was not for Oracle employees. Please
    disregard my previous message !!
    Dana Wheeler (guest) wrote:
    : Hello,
    : I am a consultant for Oracle, but I am very new to Oracle
    : Applications and Headstart. I have a client with questions on
    : Headstart, however this is outside the area of expertise of my
    : group.
    : I would like to ask 2 questions:
    : 1. It is my understanding that Oracle World Wide Support
    does
    : not handle calls on this. Can someone tell me how (if
    possible)
    : my client can get support for Headstart ?
    : 2. Also, the client is experiencing an error with forms
    : generated by Headstart. If they hit the up arrow key at the
    top
    : of a form they get the error message 'FRM-40735 ON-ERROR
    trigger
    : raised unhandled exception PROGRAM_ERROR'. This problem is
    : solved if they generate a .plx file. Is there another way to
    : resolve this or is it required to do this for all forms created
    : via Headstart?
    : Any help would be greatly appreciated !
    : Thank you !
    null

  • "FRM-40501: Oracle error: Unable to Reserve Record For Update or Delete"

    "FRM-40501: Oracle error: Unable to Reserve Record For Update or Delete"
    as I can unblock a session in the graphical surroundings of administration of the BD 10g of Oracle

    From experience with this problem since the blocked customer form has been coded not to wait for the updating session to complete then there is likely no waiter on the system now so you cannot find the blocking session.
    What you need to do is determine what row the Form was going after then using SQLPlus issue an update on the row. If the blocking session has not yet committed then this update will wait. Now if you look for blocking sessions you will be able to find it and make a determination if the session should be killed or if someone needs to call the user and ask he or she to flip through their screens and get out of the blocking screen.
    Applications screens written not to wait on currently being updated data need to also be written to expose the information necessary to identify the row(s) in question.
    HTH -- Mark D Powell --

  • FRM-40501 ORACLE error: unable to reserve record for update or delete when

    Hello.
    I have two tab pages and one item on each page. Second tab page item, is mirror item of the first one. I use synchronize property on the mirrored one.
    When i try to update mirrored one i get that error: FRM-40501 ORACLE error: unable to reserve record for update or delete when.
    How can i solve that?
    Thanks

    hi dejan,
    the error u r getting means that the record cannot be locked. This is ussually caused if u had locked the record from somewhere else (u or another user) or when forms cannot find corresponding column to the base table to lock the record.. U probably r facing the second situation. I'm not sure that forms can commit a change to an item that is synchronized cause synchronized items ignore their base table attribute and just copy their value from the other item.
    Why don't u try Copy Value from Item property using <block_name>.<item_name> syntax and your item will have a value copied from the other item but u will have no problem with the db transactions. I suppose..
    hope this helps,
    teo

  • FRM-47023: No such parameter named G_QUERY_FIND Exists and frm-40105 error

    I have a problem in forms FRM-47023: No such parameter named G_QUERY_FIND Exists and frm-40105 error please can any one tel me the reason for this ....G_QUERY_FIND parameter is present in my form.fmb
    it is very urgent

    I have to call the page
    fnd_message.set_string('SRNO'||:xxecms_Related_Objects.SR_NUMBER);
                             fnd_message.show;
                   --          IF m is NULL THEN
         fnd_function.execute(FUNCTION_NAME=>'CSXSRISV',
    OPEN_FLAG=>'Y',
    SESSION_FLAG=>'Y',
    OTHER_PARAMS=>'SR_NO="'||:xxecms_Related_Objects.SR_NUMBER||'"');
    I have to go to the page to view where this sr is created.

  • Getting FRM -18103 , and FRM 10039 error after installing oracle Froms

    Hi,
    I tried to install the Oracle Developer Suite 10g (10.1.2.0.2) on a Windows XP SP2 64 bit machine . After the installation, when I try to start the form, I get the following Error
    FRM-18103: Failed to initialize the Development Environment
    and
    FRM -10039 Error.
    Any suggestions ?
    I checked the path
    for the user variable path, the value is :
    ;C:\oracle\product\Developer\bin;C:\oracle\product\Developer\jdk\jre\bin\classic;C:\oracle\product\Developer\jdk\jre\bin;C:\oracle\product\Developer\jdk\jre\bin\client;C:\oracle\product\Developer\jlib;C:\oracle\product\Developer\jre\1.4.2\bin\client;C:\oracle\product\Developer\jre\1.4.2\bin;C:\app\feroz\product\11.2.0\dbhome_1\bin;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;c:\apacheant\bin;C:\Program Files (x86)\Java\jre6\bin;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\lib;c:\bea\jdk160_18\bin;%M2%
    for the system variable path , the value is :
    C:\oracle\product\Developer\bin;C:\oracle\product\Developer\jdk\jre\bin\classic;C:\oracle\product\Developer\jdk\jre\bin;C:\oracle\product\Developer\jdk\jre\bin\client;C:\oracle\product\Developer\jlib;C:\oracle\product\Developer\jre\1.4.2\bin\client;C:\oracle\product\Developer\jre\1.4.2\bin;C:\app\feroz\product\11.2.0\dbhome_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;C:\oracle\product\ODAC\bin;C:\oracle\product\Client\bin;C:\oracle\product\Client\jre\1.4.2\bin\client;C:\oracle\product\Client\jre\1.4.2\bin;C:\oracle\product\10.1.0\Client_1\bin;C:\Business Objects\common\3.5\bin\NOTES\;C:\Business Objects\common\3.5\bin\NOTES\DATA\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files (x86)\cvsnt;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;c:\apacheant\bin;C:\bea\jdk160_18\bin;;C:\Program Files (x86)\WinMerge;C:\Business Objects\BusinessObjects Enterprise 11.5\win32_x86;C:\Brief\;C:\Program Files (x86)\QuickTime\QTSystem\
    Thanks

    I had the same error today. The problem was that I set up the ORACLE_HOME to a fixed value on my windows environment but have multiples Oracle homes (for a variety of products installed, like database, developer suite, etc.). So you need to delete or remove the ORACLE_HOME environment variable and problem solved. Try it and let me know. Cheers.

  • FRM-92102 error when accessing Forms and Peoplesoft simultaneously

    We are receiving an FRM-92102 error when we access Peoplesoft and then our web forms application simultaneously.
    Here is the error message:
    Java Plug-in 1.6.0_11
    Using JRE version 1.6.0_11 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\SICARDT
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    RegisterWebUtil - Loading WebUtil Version 10.1.2.3
    Loaded image: http://gdocdev.ic.gc.ca/gdoc/images/gdoc.gif
    Loaded image: http://gdocdev.ic.gc.ca/gdoc/images/gdoc.gif
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Reconnecting (try 1 of 5)...
    Reconnecting (try 2 of 5)...
    Reconnecting (try 3 of 5)...
    Reconnecting (try 4 of 5)...
    Reconnecting (try 5 of 5)...
    oracle.forms.net.ConnectionException: 500
         at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
         at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
         at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
         at oracle.forms.net.HTTPNStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at oracle.forms.net.HTTPConnection.connect(Unknown Source)
         at oracle.forms.engine.FormsDispatcher.initConnection(Unknown Source)
         at oracle.forms.engine.FormsDispatcher.init(Unknown Source)
         at oracle.forms.engine.Runform.initConnection(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    Can you provide more information? For example:
    1. Does one or both apps use SSO?
    2. Does one or both apps use SSL?
    3. Are both apps being called from the same browser session? Remember that just because you may have two browser windows open does NOT mean they are running as separate sessions. If you started the second browser using java script, CTRL+N, or a URL shortcut, then they are likely same session.
    This error suggest that there is a critical tcp/ip failure:
    oracle.forms.net.ConnectionException: 500+
    If the browser to run Forms and PS is the same session, there is likely a session ID conflict. Try opening one browser using the shortcut created for the browser (usually found on the desktop). Do not use a shortcut which contains an embedded URL. Open one of the apps. Then, do the same again to start the second app. If possible, run one app from IE and the other from Firefox (or other browser).

  • FRM-0 error w/Java Plug-In and JRE_1.5.0_13

    We are having problems running Forms 10gR2 over IE 6.02, using JRE 1.5.0_13. We've been running fine with JRE 1.5.0_06, but JRE 6 has been finding its way onto our user machines, and the Java 6 plugin forces our forms to run in JRE 6, which causes definite problems.
    I've found Sun's workaround, allowing Forms to request JRE 1.5, causing the form to run using the most recent release of JRE 1.5 installed on the client machine. This is great, except with JRE 1.5.0_06 installed, Sun displays a warning -- each time our application is loaded -- indicating that we are not running the most recent version of JRE 1.5, and that installing said version will prevent this warning from appearing in the future.
    So we tried installing JRE 1.5.0_13, and as promised, the warning no longer appears. (Now, there appears a one-time warning, indicating that the application is running in an older version of Java.) Unfortunately, JRE 1.5.0_13 gives the same problems we were seeing with JRE 6!
    Specifically, we are running a custom Java bean, that automates MS Word. The bean is loading, but at one point a FRM-0: error is raised, with no further details. No stacktrace in the Java console, no trace file on the app server, or on the database.
    I'm fairly certain that the lack of information is caused by an unhandled Java exception that's occurring in a form-side PL/SQL package. I've seen how to handle these, but have yet to add such handling to my code. Given that I can run the same code in a previous version, I am not sure that handling the error will allow my code to proceed normally.
    In the meantime, while reviewing the Forms 10gR2 Client Platform Statement of Direction, I'm noticing that Oracle has not certified IE7 past JRE 1.5.0_06. Although I am running IE6, I'm wondering what the problem Oracle encountered with 1.5.0_06? I can run without problems using JRE 1.5.0_13 on Firefox, but my organization refuses to deploy Firefox to our end users.
    Any suggestions, or similar experiences that anyone could share would be greatly appreciated.
    Thanks,
    Eric Adamson
    Lansing, Michigan

    It's getting almost impossible to keep the jre from installing
    6 even if you install the jre 5 from your own server. It somehow is
    immediately redirecting it to install the latest jre 6 from sun.
    And even worse, it will try to install google desktop and google toolbar
    with it! unbelievable!
    If a person knew all the possible sun download and update
    domain names then one could perhaps stop this from happening
    by putting appropriate entires in the hosts file so that it couldn't
    reach sun.

  • No commit-message (FRM-40400) == Bug in Headstart

    Hello,
    On committing on or more business rules are violated the 'message-window' appear.
    After correcting the errors and committing the changes i'm not getting the usual
    'commit-message' (FRM-40400). This only happens after on or more business rules are violated.
    This is caused by a bug in the procedure 'QMS$FORMS_ERRORS.PUSH'. Below the solution i have implemented (the complete procedure is displayed). I'm using version 6.5.4.0 of the library 'qmslib65.pll.
    PROCEDURE Push
    ( p_msg IN VARCHAR2
    , p_error IN VARCHAR2 DEFAULT 'I'
    , p_msg_type IN VARCHAR2 DEFAULT ''
    , p_msgid IN NUMBER DEFAULT 0
    , p_loc IN VARCHAR2 DEFAULT '') IS
    -- Purpose Show message to the end-user, standard procedure for the Oracle Forms
    -- Generator of Designer/2000 to pass the display and handling of a message
    -- to a user created procedure.
    -- Usage Called by the Oracle Forms Generator code
    -- Parameters : msg Text message
    -- error ERRor or WARNing
    -- msg_type ORA, API or user TLA
    -- msg_id Id of message
    -- loc Location where error occured
    -- Remarks
    v_msg VARCHAR2(2000) := p_msg;
    v_error VARCHAR2(2000) := p_error;
    v_servermsg VARCHAR2(2000) := DBMS_ERROR_TEXT;
    l_empty_errorrec hil_Message.message_rectype;
    BEGIN
    IF p_msgid != 0
    THEN
    g_errorrec.severity := p_error;
    ELSIF ((SUBSTR (v_msg, 1, 11) = 'API Error: ')) OR
    ((INSTR (v_servermsg, 'ORA-20999') <> 0) AND (v_msg IS NULL)) OR
    (INSTR (v_msg, 'ORA-20999') <> 0)
    THEN
    -- error returned from the API, just display no further action required ?
    HandleServerAPIError (p_msg);
    -- M. Kappel
    /* 11-apr-2001
    - Allow check of v_servermsg even if v_msg contains data.
    - With new-style cdm ruleframe, v_msg contains 'ORA-20998'.
    We never looked at v_servermsg because v_msg was not null.
    - With old-style database trigger business logic, v_msg contains only text.
    If we still never look at v_servermsg, we don't identify that the error is
    a 20998 and therefore we raise an alert 'Transaction Failed' instead of
    showing the 'Errors in this Transaction' window.
    -- ELSIF ((INSTR (v_servermsg, 'ORA-20998') <> 0) AND (v_msg IS NULL)) OR
    -- (INSTR (v_msg, 'ORA-20998') <> 0)
    -- THEN
    On committing on or more business rules are violated the 'message-window' appear.
    After correcting the errors and committing the changes i'm not getting the usual
    'commit-message' (FRM-40400). This only happens after on or more business rules are violated.
    When one or more business rules are violated application error ORA-20998 is raised. To
    detect this DBMS_ERROR_TEXT is used ==> DBMS_ERROR_TEXT contains ALWAYS the text of the
    LAST (dbms-)error (the text contains 'ORA-20998').
    Even when no business rules are violated it's possible that DBMS_ERROR_TEXT contains 'ORA-20998'.
    In that case no FRM-, MNU-, PLS-, SRW-, ORA- or REP-messages are displayed, because the error is
    treated as a voilation of one or more business rules. To avoid this 'v_error = E' is added to the IF-clause:
    when one or more business rule are violated this procedure is called to display an error (p_error ==> E);
    for displaying the FRM-, MNU-, PLS-, SRW-, ORA- and REP-messages this procedure is called to display an
    information (p_error ==> I).
    When Designer generates code to validate p.e. check-constraints it will call this procedure too. See the example
    below:
    IF (:FUNCTIES.MIN_LEEFTIJD < :FUNCTIES.MAX_LEEFTIJD) THEN
    NULL;
    ELSE
    qms$forms_errors.push('CBB-00219', 'E', 'OFG', 0);
    qms$forms_errors.raise_failure;
    END IF;
    In this case the procedure is called to display an error. To avoid that the error is incorecctly treated as a
    violation of one or more business rules '(p_msg_type != 'OFG' or p_msg_type is null)' is added to the IF-clause.
    ELSIF v_error = 'E'
    AND (p_msg_type != 'OFG' or p_msg_type is null)
    AND ( INSTR (v_servermsg, 'ORA-20998') <> 0
    OR INSTR (v_msg, 'ORA-20998') <> 0
    THEN
    HandleServerApplError (p_msg);
    -- error returned from the API, just display no further action required ?
    ELSIF ((INSTR (v_servermsg, 'ORA-20000') <> 0) AND (v_msg IS NULL)) OR
    (INSTR (v_msg, 'ORA-20000') <> 0)
    THEN
    -- error was raised by old Headstart code with raise_application_error
    -- strip ora-20000 : , check if code (get message) or message
    HandleOldHeadstart (v_servermsg);
    ELSIF (SUBSTR (v_msg, 1, 3) IN ('FRM', 'MNU', 'PLS', 'SRW', 'ORA', 'REP'))
    THEN
    HandleOracleError (v_msg, v_error);
    ELSE
         HandleApplError(v_msg, v_error);
    END IF;
    Display_Error (g_errorrec);
    g_errorrec := l_empty_errorrec;
    END Push;

    you can create a KEY-COMMIT form level trigger with the following :
    declare
    msglvl varchar2(3) := :system.message_level ;
    begin
    :system.message_level := 5 ;
    commit_form ;
    :system.message_level := msglvl ;
    end ;
    or put instruction : clear_message; before the commit_form ;

  • FRM-41085 when opening headstart form qms0006f

    Hi,
    I am upgrading an 6i Forms environment to an 10g Webforms environment. Currently the application is running fine, except for all the Headstart forms (f.e. qms0006f, Preferences). If I open this form, I first get FRM-41085: Error getting Group Row count
    And after that another error: QMS-00100 Unhandled exception ORA-06502: PL/SQL numeric or value error ORA-01403: no data found in PL/SQL Program Unit qms$form.init
    I have deployed this application on a linux appsserver, and it creates this error. However, if I run it on my windows development environment I am able to open the form. Connected as the same user on the same database.
    I compiled the Headstart forms, that are supplied by Headstart itselves, so the form is not generated from Designer.
    Anyone any idea? (If there are still some Oracle consultant reading this Headstart forums?)
    Kind regards,
    William

    wronde wrote:
    Hi,
    I am upgrading an 6i Forms environment to an 10g Webforms environment. Currently the application is running fine, except for all the Headstart forms (f.e. qms0006f, Preferences). If I open this form, I first get FRM-41085: Error getting Group Row count
    And after that another error: QMS-00100 Unhandled exception ORA-06502: PL/SQL numeric or value error ORA-01403: no data found in PL/SQL Program Unit qms$form.init
    I have deployed this application on a linux appsserver, and it creates this error. However, if I run it on my <font face="tahoma,verdana,sans-serif" size="1" color="#000">windows</font> development environment I am able to open the form. Connected as the same user on the same database.
    I compiled the Headstart forms, that are supplied by Headstart itselves, so the form is not generated from Designer.
    Anyone any idea? (If there are still some Oracle consultant reading this Headstart forums?)
    Kind regards,
    WilliamIt's very long now, I have the issue which is similar to what you have faced, Anybody can answer it?

Maybe you are looking for

  • Image text is missing in InDesign CS4

    Hi everybody, I am using InDesign CS4 with MAC OS X 10.5.8. I encountered a problem that the Text is missing in the eps image, when imported on InDesign document. Refer below screenshot. I have used "Times New Roman" Type1 font in InDesign document.

  • Switch to changeove method occuring in next fiscal year instead of next per

    In configuration of depriciation keys, changeover method 5 (changeover after end of planned useful life) is used, but problem is switch to changeover method occurs in first period of next fiscal year, instead of immediate next period after the end of

  • Cant get my pc to recognize my bb

    For some reason my pc can't recognize my bb.  It works on other pc's but not the one I use regularly.  Are there any programs that may interfere with the recognition.  I've downloaded desktop mananger and bb device software a few times, always removi

  • Pass parameters via POST in WDPortalNavigation.navigateAbsolute method

    Hi, how can i pass parameters via POST method from WD Application using WDPortalNavigation.navigateAbsolute method Should i pass the parameters as part of the NavigationTarget URL or they should be passed via different parameter? Thanks, Yuly Roberma

  • Why are the colors suddenly negative?

    The colors on my iMac g4 10.4.4 are suddenly inverted...they look like photo negatives..I've tried to change it back in System Preferences and by shutting down and restarting but nothing helps...the colors are still all wrong...there must be somethin