FRM-40501 When updating a form

Hello everyone,
I need some help with a master-detail form I am working on.
The master is based on a table, let's call it t1 and there are no problems with it.
The detail is based on a view (v1) , getting data from two tables ( let's say t2 and t3). T2 is just an intersection table of a many to many relationship between t1 and t3.
I wrote a trigger (instead of) on v1, and everything works in SQL+.
Whenever I try to update a value from t3 in my detail data block, I get FRM-40501.
I did a search on this board, applied all the suggested changes ( all my blocs have primary keys, the form has serializable isolation mode , the key property set to "updateable") but the error keeps coming back.
Inserting new rows works, delete does not.
Any other suggestions ?
TIA
BN
PS Versions are 8.1.7.0 Enterprise edition and Forms (32 bit) 6.0.8.8.0

I have a similar problem, I'v been searching for this error and I found that is a BUG (#380655), there is a patch to solve this, but i did4n find it at internet, may be if you have the CD's patches can solve this BUG.
See you !

Similar Messages

  • FRM-92102 when accessing a form using a Load Balancer

    Greetings.
    We have two oracle application servers version 10.1.2.0.2 on windows 2003 running forms and reports. When just one a server is running everithing works fine, but when I start the second server the clients receive the message "FRM-92102 : A network error has occurred.The Forms Client has attempted to re-establish its connection to the Server 5 times without success.Please check the network connection and try again later" when the first form is called. In our coniguration the F5 Load Balancer is redirecting requests to the Apache ports in both Oas Machines, we are not using the webcache port. I read the note "FRM-92102 When Using A Software Load Balancer With Forms [ID 465583.1]" but this note applies when webcache is used. Our LBR is set using "insert cookie" persitent mechanism.
    I have the following questions:
    What configuration is needed in OAS files in order to use a LBR and avoid the FRM-92102 error?
    How can I debug or trace FRM-92102 issues?
    Thanks!
    Ramiro Ortiz.

    FRM-92102 is the result of the client not getting a response from the server (mid tier). This generally means only one of a couple of things:
    1. The mid tier which parented the Forms session is not responding. This could be because it is overloaded, the web server (OHS or WebCache) is failing, or something else is preventing the client from getting a response.
    2. Client requests are being routed to the wrong mid-tier server. This is usually the result of improper load balancer configuration or an LB failure. However, generally in this case FRM-92101 would result. If you are using an unpatch 10.1.2 installation, as I believe you are (10.1.2.0) then seeing either error may be possible.
    Regarding the note that discusses using Oracle WebCache for load balancing, regardless of whether you are using an Oracle product or hardware or whatever for loadbalancing, the same concept will apply. The load balancer must have session binding enabled. Understanding whether or not this is the problem should be fairly easy to determine. Simply shutdown one server. If everything works correctly, restart the second server. If the problem now occurs, you can likely assume you have a session binding issue and should likely refer to the load balancer's documentation or their Support group.
    Also, important to understand is that if the load balancer is designed to alter the header information in any way, the likelihood of failing Forms sessions is high. Forms is expecting very specific information in the header exchange. Some intermediate servers (load balancers, ssl accelerators, firewalls, etc) have been known to intentionally or unintentionally alter the header. Again, contact the vendor.
    If you are seeing that the client console is reporting 5 retry attempts, yet you have not set "networkRetries" in formsweb.cfg, this often suggests a critical tcp/ip failure. Often, but maybe not always, the result of a damaged header or other misconfiguration or failure outside of Forms.

  • FRM-10256 when running a form generated with headstart

    I have installed Headstart 2.1.2.0.2 on an Oracle8 Enterprise 8.1.6 database. I'm using Designer 6.0.3.8.0 and Forms 6.0.8.8.0. I can access the Headstart supplied applications (eg. Foundation, Utilities, Demo), and I can generate forms from within Designer without error. When I try to run my new form I get the message 'FRM-10256: User is not authorised to run Form Builder Menu' followed by 'FRM-41810: Error creating menu'. The form displays correctly, but without any menu. I haven't installed Developer on the database, it runs solely from the file system. Can you help?

    To quickly solve your problem, set the generator preference Menu-Roles->Generate Menu Security to NO. (on Application level).
    After generation menu should be loaded but with no security check.
    The better way, of course, is to use menu security but the solution is more complex.

  • FRM-41032 when converting a form from 6i to 9i

    We get "FRM-41032 Cannot set ENABLED attribute of current item" when using GO_ITEM move the cursor to another item and then setting the enabled property for the item we left. This used to work in 6i. If we place a dummy item at the start of the block, the error goes away but then our queries are messed up. We are using Forms 9.0.4.0.19.
    Thanks,
    Dave Ball

    Setting the database property to "no' on the dummy item fixed it! We have a when-new-block trigger that calls a program unit that enables certain fields depending on the role. To do this, within the program unit, we have a go_item followed by a set-block-property to the former item. This worked in 6i but in 9i, the dummy item is needed. Thanks for your help.
    Dave

  • Conditional Redirct when Updating a Form

    In my form's update button I'm running several validations. If one of the validations doesn't pass I need to completely bypass the default update and call a procedure. This procedure does part of the update and then redirects to a different form. I can't use the standard redirect on successful submission because I don't want it to redirect each time.
    I have tested and when the condition is met it is calling the procedure, just not doing the redirect.
    Any suggestions?
    Here is the code in my update button:
    declare & set variables
    if v_user1 is not null then
    v_sup1 := pkg_proj_manage.fcn_get_sup(v_user1);
    end if;
    if v_user2 is not null then
    v_sup2 := pkg_proj_manage.fcn_get_sup(v_user2);
    end if;
    if v_user3 is not null then
    v_sup3 := pkg_proj_manage.fcn_get_sup(v_user3);
    end if;
    if v_user4 is not null then
    v_sup4 := pkg_proj_manage.fcn_get_sup(v_user4);
    end if;
    if v_user5 is not null then
    v_sup5 := pkg_proj_manage.fcn_get_sup(v_user5);
    end if;
    v_ok := pkg_proj_manage.fcn_verify_end_dates(v_projnum, to_char(v_estenddate, 'MM/DD/YYYY'), to_char(v_enddate, 'MM/DD/YYYY'));
    if pkg_proj_manage.fcn_val_type(v_type, v_stage) <> 'Y' then
    v_message := pkg_proj_manage.fcn_val_type(v_type, v_stage);
    v_ok := 'N';
    end if;
    if pkg_proj_manage.fcn_check_status(v_status, v_user1, v_eststdate, v_estenddate, v_stdate, v_enddate) <> 'Y' then
    v_message := pkg_proj_manage.fcn_check_status(v_status, v_user1, v_eststdate, v_estenddate, v_stdate, v_enddate);
    v_ok := 'N';
    end if;
    v_statusdate2 := pkg_proj_manage.fcn_status_date(v_status, v_statusdate);
    if v_statusdate2 is not null then
    p_session.set_value(p_block_name => 'DEFAULT', p_attribute_name => 'A_STATUS_DATE', p_value => v_statusdate2);
    end if;
    if pkg_proj_manage.fcn_val_enddate(v_enddate, v_status) <> 'Y' then
    v_message := pkg_proj_manage.fcn_val_enddate(v_enddate, v_status);
    v_ok := 'N';
    end if;
    if pkg_proj_manage.fcn_val_dates(v_enddate, v_stdate) = 'N' then
    v_ok := 'N';
    v_message := 'The actual end date must be equal to or after the actual start date';
    end if;
    if pkg_proj_manage.fcn_val_dates(v_estenddate, v_eststdate) = 'N' then
    v_ok := 'N';
    v_message := 'The estimated end date must be equal to or after the estimated start date';
    end if;
    if pkg_proj_manage.fcn_rescind_status(v_status, v_ok, v_sup, v_sup1, v_sup2, v_sup3, v_sup4, v_sup5) <> 'Y' then
    v_message := pkg_proj_manage.fcn_rescind_status(v_status, v_ok, v_sup, v_sup1, v_sup2, v_sup3, v_sup4, v_sup5);
    v_ok := 'N';
    end if;
    if v_ok = 'R' then
    pkg_proj_manage.prc_redirect_dateform(v_projnum, to_char(v_estenddate, 'MM/DD/YYYY'), to_char(v_enddate, 'MM/DD/YYYY'), v_type,
    v_stage, v_user1, v_user2, v_user3, v_user4, v_user5, v_sup, v_status, v_desc, v_group, v_request, v_dept, v_dept2, v_dept3,
    v_liason, v_liason2, v_liason, v_notes, v_requestor, to_char(v_stdate, 'MM/DD/YYYY'), to_char(v_eststdate, 'MM/DD/YYYY'), to_char(v_statusdate, 'MM/DD/YYYY'));
    return;
    elsif v_ok = 'Y' then
    doUpdate;--- This is the default handler
    p_session.set_value(p_block_name => 'DEFAULT', p_attribute_name => 'A_V_MESSAGE', p_value =>' ');
    end if;
    if v_message is not null then
    p_session.set_value(p_block_name => 'DEFAULT', p_attribute_name => 'A_V_MESSAGE', p_value => v_message);
    p_session.set_value(p_block_name => 'DEFAULT', p_attribute_name => '_STATUS',
    p_value => 'There is an error with your entry');
    return;
    end if;
    end;

    I have a similar problem, I'v been searching for this error and I found that is a BUG (#380655), there is a patch to solve this, but i did4n find it at internet, may be if you have the CD's patches can solve this BUG.
    See you !

  • Getting FRM-18108 and FRM-10102 when opening a form with Form Builder

    Hi,
    we're migrating from Forms 6i to Forms 10g. If I try to open a form in Form Builder 10g, FRM-18108 and FRM-10102 are appearing. I checked registry entries on my XP-System (FORMS90_PATH) and everything seems to be similar to the old Forms environment.
    Any ideas ?
    Thanks,
    Markus

    Hello,
    FRM-18108: Failed to load the following objects.
    Cause:  Forms could not load the foreign references specified.
    Action:  Verify that all the referenced forms and object libraries are present.
    FRM-10102: Cannot attach PL/SQL library %s.
    This library attachment will be lost if the module is saved.
    Cause:  The library you specified is locked by other users, the library name is invalid, or the library module could have been moved from or not exist in the FORMS90_PATH directory list.
    Action:  Check the library name and try again later.
    Francois

  • FRM-40010 when opening custom form in Forms6i

    Hello,
    I'm running an instance of the E-Business Suite 11.5.10.2, which uses Forms Developer 6i. I recently upgrated to patchset 19, and now, I go to my custom apps login URL, and get the following error:
    http://ppc-oradev.purchasingpwr.com:8000/dev60cgi/ifcgi60?config=ppc
    FRM-40010: Cannot read form d:\oracle\oradevappl\xxppc\forms\US\xxmenu.
    I have added the following to my appsweb.cfg and appsweb_oradev_ppc-oradev.cfg file:
    [ppc]
    lang=US
    fndname=
    userid=
    prodTop=d:/oracle/oradevappl/xxppc/
    formName=xxmenu
    pageTitle=Purchasing Power, LLC
    splashScreen=No
    width=700
    height=550
    archive=f60all.jar
    pageTitle=PPC
    lookAndFeel=oracle
    colorScheme=Blaf
    separateWindow=false
    java_appletname=PPC
    HTMLpageTitle=Purchasing Power Custom
    HTMLpostApplet=<P>Copyright &#169;1998, 1999, 2000, 2001, 2002 Oracle Corporation
    This was working fine before the Developer 6i Patchset 19 upgrade.
    Any help at all would be appreciated!
    Zach

    This seems to be a configuration problem specific to the eBusiness-suite. I would try to get an answer in this forum OA Framework

  • 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?

  • FRM-18108:when openning my form(6i) with forms(9ids)

    Hi every one,
    i applicate the FMA wizard to upgrade my formtest from forms6i to forms9ids, when i try to open my formtest with forms9ids, i have this error:
    frm18108-can't load the objects .......
    Regards

    hi,
    my forms90_path key in base regestry have less than 256 char,
    but i try to open my formtest first wich call some pl/sql libraries and some objects library wich are defined in forms6i.
    Do you try to tell me that, i must recompile this objects before my formtest?.
    Regards.

  • Having troble focusing when updating swing form type application

    I'm writing a piece of code where it is necessary to allow the end-user to unmask a password. I want the focus to return to the text field/password field however because it is necessary to call repaint() using the ActionListner calling requestFocusInWindow has very little effect. This is because repaint que's and is run by run by the thread that was running the ActionListner, (I hope I'm making sense). I don't do GUI often for obvious reasons. Please look at the Box bellow and tell me if you have a solution.
    import javax.swing.*;
    import javax.swing.text.Document;
    import javax.swing.text.PlainDocument;
    class Blah extends Box {
      protected final Document doc=new PlainDocument();
      JTextField jtf=new JTextField(doc,null,10);
      JPasswordField jpf=new JPasswordField(doc,null,10);
      JCheckBox jcb = new JCeckBox("switch");
      Blah(){
        super(BoxLayout.X_AXIS);
        jcb.addActionListner(new LayoutAction(this));
        this.invalidate(); //Makesure that doLayout is called (not verbosely necessary)
      @Overrides
      public void doLayout(){
        this.removeAll();
        /*This is the main function of the code */
        if(jcb.isSelected())this.add(jtf);
        else this.add(jpf);
        this.add(jcb);
        super.doLayout();
    } class LayoutAction implements ActionListner {
      JComponent owner;
      LayoutAction(JComponent owner){
        this.owner=owner;
      public void actionPerformed(ActionEvent e){
        this.owner.revalidate();
        this.owner.repaint();
    }

    Hey thanks... That helped out with another situation similar to this I was having trouble with... Turns out it's the revalidate() that makes requestFocus() usless thus I changed the code to have teh request focus in the overriden doLayout().... I'm sure this doesn't matter to you much more than you were being helpful.
    So thanks!!! :)

  • 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

  • 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-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: 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 --

  • One block based on two table when update/insert result in FRM-40654

    Hi,
    I ahve a multi line block based on two tables.
    Customers - AFCUSTOMER
    Maintenance - AFMAINT
    Some customers exist when maintenance doesnt so in my where clause i have
    AFCUSTOMER.CUSTID=AFMAINT.MAINT_CUSTID(+) AND AFCUSTOMER.CUSTBRANCHID=1 AND AFCUSTOMER.CUSTSTATUSID=2
    I have primary key set as the AFMAINT table primary key and have set DML data targetr name as AFMAINT.
    I am displaying customer name (from AFCUSTOMER) and type of payment (from AFMAINT) on screen and i want to change the type of payment which then uses pre update trigger to fil in the primary key of AFMAINT.
    Querying works fine and displays all records. But when i try to insert a record into the AFMAINT table by changing the type of payment list item i get FRM-40654 Record updated by another user. I have checked and block status is QUERY right before the list item is changed.
    Any ideas on where i am going wrong.

    But when i try to insert a record into the AFMAINT table by changing the type of payment list item i get FRM-40654 Record updated by another userWhen you start editing a record which is already stores in the database forms "rereads" the record from the database and check id all values in the database are the same as in the form. If there is some difference, forms assumes that someone else changed the record after you did the query.
    The main causes for that are:
    -Some database-trigger which changes the value of a column which is included in the form
    -numeric column with a higher precision in forms, than in the database
    -a block based on a view or "select from clause" which does not return the same values as inserted/updated through forms.
    I guess you run into the third issue. Check all the values in the forms-items after your dml and compare them to the values saved to the database, there will be some difference. If you find it, correct the error, if one, or re-read the data in the POST-UPDATE-trigger.

Maybe you are looking for

  • File-Receiver channel needs 15 hours to write a 12 MB file

    Hi, we use PI/700 SPS 5. I implemented a small scenario File -> XI (with xsl-Mapping) -> File. When I load in a file with 12 MB it took about 15 hours till XI writes the transformed file. The XSL-Transformation is quit simple! The audit-protocol is o

  • PDFs washed out when exported from Indesign

    I have a grayscale picture on a B&W background. Looks great in Indesign, but when exported to PDF the blacks are washed out. I have tried it several times. I am using Indesign CS, exporting to Acrobat 5, print, on compression I have chosen 'do not do

  • Viewing how many pages a PDF has in a large (pdf) file list.

    Hello, Is it possible to view how many pages a PDF has in a huge file list in Windows Explorer? Thanks in advance ! ( for example; http://img716.imageshack.us/img716/9131/voorbeeldi.jpg ) Greetz, Frank

  • NTSystem for Administrators only (on NT4)

    One more time this problem appears in the forum. Perhaps someone will answer this time. Simple application : public class TestNTUser { public static void main(String[] args) { System.out.println((new com.sun.security.auth.module.NTSystem()).getName()

  • Running the curl command on a WSA

    Has anybody tried running the curl command on a WSA? - we're running Async OS 7.1 on our S-660's and unable to run curl on it. Thanks. Greg