FRM-40401:No changes to save

When I write insert or update statement manually the statement is getting executed.But I am getting error as in subject line.
I dont want to see that error message.If row inserted/updated I want to show message 'One row inserted/updated'.
Please can any body tell about this by using a simple dept table.
Actually I am making database item 'no' in property palate.
I am a beginer.

If you do the insert in plsq code Forms does not know about the change -- as opposed to when you use the built in functionality by inserting a record thru a database block -- so it gives you this error.
One way of avoiding the error is to have a hidden database block and make the insert there with PLSQL code.

Similar Messages

  • FRM-40401 No changes to save  error

    Hi,
    I have updated one table from form by writing update statement on the when-button-pressed triger.This update statement is doing its job fine and the table is updated.but iam finding 'FRM-40401: No Changes to save 'message in my console . Please tell me why it is coming when changes are made into tables and wat should i do to avoid this . i have written on-error trigger on form level to suppress this message.What effect itcan have on my working.
    Kindly take it on urgent basis.
    regards,
    rajesh

    Usually in Forms, you do not write SQL update statements to update your table. Instead, you create a base-table block, fetch the rows into the block, make your changes, and then commit. Forms automatic processing takes over and creates the update statements for you.
    What you have done is bypassed the default automatic processing, and Forms is complaining. I would try to re-do the form and use a base-table block.

  • How can i hide frm-40401 no changes to save

    hi all,
    i would like to hide frm-40401 no changes to save
    i create a (form level trigger/block level) to hide a built in message
    ON-MESSAGE
    declare
    msgnum number := message_code;
    begin
    IF msgnum = 40401 THEN
    Message('my own message.');
    end if;
    end;and still message appear what can i do?
    Thank's all
    Edited by: Ahmed_Arafa on Jan 20, 2012 9:40 AM

    Ahmed_Arafa wrote:
    hi all,
    i would like to hide frm-40401 no changes to saveCreate a form level trigger named Pre-Form
    and write the following code
    :SYSTEM.MESSAGE_LEVEL := 5;Hope this will help you

  • How to supress FRM:40405 no changes to save

    Guy,
    How do I supress the forms runtime message
    FRM:40405 no changes to save, I get this message when ever I press the save button irrespective of whether the records are inserted or changed .

    I agree that you shouldn't cover up potential problems. I didn't mean to suggest that. I think there can be valid reasons for suppressing messages sometimes.
    For example, I've used :SYSTEM.MESSAGE_LEVEL := '5'; before to suppress FRM-40401 or FRM-40405 - can't remember which one, it's been a while. In my case I was using exec_sql in forms to retrieve data from a DB2 table and insert it into an Oracle table. In this case forms didn't recognize that work was actually being done and would give the FRM-40401 or 40405 error at the end of the process, even though the records had been successfully inserted.

  • Supressing FRM:40405 no changes to save

    Guy,
    How do I supress the forms runtime message
    FRM:40405 no changes to save, I get this message when ever I press the save button irrespective of whether the records are inserted or changed .

    Abdetu wrote:
    Thanks Tony for reply,
    I tried this in the ON-Error
         IF ERROR_TYPE = 'FRM' AND ERROR_CODE = 40405 THEN NULL;
              ELSE
         alert_message := message_type||'-'|| To_Char(error_code) || ': ' || error_text;
              BEGIN
              select msg_desc
              into   alert_message
              from   cde_message
           where  msg_code = temp1;
              EXCEPTION
                   WHEN OTHERS THEN NULL;
           END;
         END IF;
         Regards,
    Abdetu..Using WHEN OTHERS THEN NULL is a huge bug in your code.
    If you even gonna use when others, you always use it with RAISE FORM_TRIGGER_FAILURE, other than that you're not displaying the error messages for the rest of the errors and you're not raising FORM_TRIGGER_FAILURE.
    Your code should look like this:
    IF ERROR_TYPE = 'FRM' AND ERROR_CODE = 40405 THEN NULL;
    ELSE
      MESSAGE(ERROR_TYPE||'-'||ERROR_CODE||': '||ERROR_TEXT);
      RAISE FORM_TRIGGER_FAILURE;
    END IF;Tony

  • FRM-40405 (No Changes to apply)

    When i open a form through menu and save record i am getting the message 'FRM-40405 No changes to apply'.
    I am not geeting the error while running the form independently i.e not calling through menu. commit_form built is used in key-commit trigger.
    I am using OAS 4.0.8 and Forms 6i with Patch 1.

    I think in this case, you issued a commit without actually changing any data, so the commit was not necessary. Many Times I had to do this and did not want to see this error.
    What you can do to overcome this is to create a forms 'on error' trigger. Then trap the error like follows -
    DECLARE
    errnum NUMBER := ERROR_CODE;
    errtxt VARCHAR2(80) := ERROR_TEXT;
    errtyp VARCHAR2(3) := ERROR_TYPE;
    BEGIN
    IF errnum = 40301 THEN
    Message('Your search criteria identified no matches... Try Again.');
    ELSIF errnum = 40350 THEN /* no records found */
    null;
    ELSIF errnum = 41026 THEN /* FIELD OUTPUITING*/
    Message('This field is calculated');
    ELSif errnum=40401 then /* double commit somewhere */
    null;
    ELSif errnum=40505 then /* double commit somewhere */
    null;
    ELSif errnum=41050 then /* Record has been saved already */
    null;
    ELSIF errnum=41008 then /* Undefined Keys */
    null;
    ELSIF errnum=40100 then /* beyond first record */
    null;
    ELSIF errnum=40200 then /* field protected against update */
    null;
    ELSIF errnum=40352 then /* beyond last record */
    endif;

  • No changes to save error message

    Hello All,
    I am using Oracle forms and db 10g. I want to have more than one forms simultaneously open. When I save a record in the third form I get a "No changes to save" error message twice. I know that the error comes from the other two forms. I tried to set the error message level to a higher value but I still get the error message.
    So my question is :
    Can I get rid of the "no changes to save" error message while having more than one form opened at the same time.

    have a look at this solution http://talk2gerd.blogspot.com/2006/12/best-practices-on-error-and-on-message.html
    snippet:
    DECLARE
      V_Error_Code       NUMBER;
      V_Error_Text       VARCHAR2 (2000);
      V_DBMS_Error_Code  NUMBER;
      V_DBMS_Error_Text  VARCHAR2 (2000);
    BEGIN
      V_Error_Code      := Error_Code;
      V_Error_Text      := Error_Text;
    V_DBMS_Error_Code := DBMS_Error_Code;
      V_DBMS_Error_Text := DBMS_Error_Text;
      IF V_Error_Code IN (40401, 40405) THEN
        || 40401, 40405 - no changes to save / apply  get filtered
        NULL;
      ELSIF V_Error_Code IN (-1034, -3114) THEN
        || -1034, -3114 - not connected to database
        Message ('Not connect to database, exiting Form');
        Exit_Form (no_validate);
      ELSIF V_Error_Code IN (40508, 40735)
      AND   V_DBMS_Error_Code BETWEEN -20999 AND -20000 THEN
        || -20000 errors are raised by RAISE_APPLICATION_ERROR
        || They are handled in a different way
        Show_and_Log_DB_Error (V_DBMS_Error_Text);
      ELSE
        || All other errors went into Show_and_Log_Error, where they
        || get inspected, analyzed and logged.
        Show_and_Log_Error (V_Error_Code);
      END IF;
    END;

  • FRM-40401 Can't be handled !!!

    Hi..
    I was just wondering how could I trap this error that pops up, taking into consideration that I tried the On-Message and On-Error triggers but it didn't work..
    There's one more thing that the data block on the form doesn't depend on any table in the database (I created it manually) , so may be this is the problem ?
    thanks in advance,
    Regards,
    Hani

    The FRM-40401 error is just telling you that you don't have any changes to commit to any table in your datebase. Somewhere in your code your trying to do a commit_form and the form doesn't see any database changes to be made. Building a block manually isn't a problem, but if you want your data to be saved in a database table somewhere then you have to base the block on a database table.
    That being said, you can eliminate the error by checking to see if any changes need to be applied to the database before you commit.
    Create a form level trigger KEY_COMMIT.
    In it put:
    IF :SYSTEM.FORM_STATUS = 'CHANGED' THEN
    COMMIT_FORM
    END IF;
    This will work wither your block is based on a table or not.
    Hope this helps,
    Travis

  • How to change default save as location

    hi,
    how to change default save as location in acrobat 7.0?

    Why is Acrobat involved in this process at all? Why don't you save directly the pdf from your email program directly where you want it to be? Acrobat is just adding another step to this process.

  • I have created a form in InDesign, exported to a pdf, created an editable form and saved.  When I open the form and make changes and save, the reopen the changes are there.  If try to email this form as an attachment after editing, the attachment is alway

    I have created a form in InDesign, exported to a pdf, then created an editable form and saved.  When I open the form and make changes and save, then reopen the changes are there.  If try to email this form as an attachment after editing, the attachment is always minus the edits.   ????

    Hi chuck,
    If you ave created the form and then filling it yourself and saving the form, the filled data should be there when you reopen the same form.
    Can you please send the form to me at [email protected]  so that I can have a look.
    Regards,
    Rave

  • Woundering how to change the "save as dialog / window" in Reader X ?

    Hi
    I am woundering if there is possible to change the "save as window" in Adobe Reader X. I want this to be the same as the "open window", where you get more browse options.
    Regards Frode - Netscenario.no

    You may use the forum for Adobe Reader.

  • My biggest 'pain' at the moment is that every time I go to change then save a Photoshop CS3 file it says 'cannot save as the file as it has been left open or is in use by another application'

    My biggest 'pain' at the moment is that every time I go to change then save a Photoshop CS3 file it says 'cannot save as the file as it has been left open or is in use by another application'

    Rule Number One - NEVER go directly uinto the iPhoto library - there are no user servicable parts in it and making any change no matter how small can corrupt your library and cause data or photo loss
    Exactly how were you trying to save a copy of your iPhoto library?
    Albumdata.xml does not contain your photos - and again NEVER make any changes to the content of the iPhoto library - no dragging - no changes - never go into the library
    We need to know exactly what you did
    And probalby the easiest solution is to load your backup from before you messed things up
    For reference after you get things working
    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • I keep getting a warnin that my pages document could not be auto saved. The file has been changed by another application. Click save anyway to keep your changes and save the changes made by the other application as a version, or click revert to keep the c

    I keep getting a warning stating that the document could not be auto saved in pages. The file has been changed by another application. Then it says click save any way to keep your changes and save the changes made by the other application as a version, or click revert to keep the changes from the other application and save your changes to a version.
    What in the heck does all that mean, and why are they trying to behave like a Windows product or a Microsoft office product. I just don't get it.
    Why is another application changing my documents? It's like they've created a virus within their own programs. It's a pain in the neck and makes no sense.

    I am also having the issue of a warning saying "could not be auto-saved in Pages. The file has been changed in another application. I then hit "save anyway", the warning will go away for a time, sometimes minutes, sometimes hourr, but then the warming reapprears saying the same thing. This is not the case with all Pages documents but it is the case with many.
    Working with a Retina Macbook Pro and current software
    These are newly created documents

  • Using iPhoto 09, 8.1.2 How do I re-route saving pictures to the hard drive? Currently am saving to files on 'my' partition, and would like to change to save to a shared file so both partitions can view and access.

    Using iPhoto 09, 8.1.2 How do I re-route saving pictures to the hard drive? Currently am saving to files on 'my' partition, and would like to change to save to a shared file so both partitions can view and access.

    Drag the Library from the Pictures folder to the Users/Shared folder. I would point out that folks doing this on 10.6 and later frequently meet permissions issues. You might do better moving it to an appropriately formatted External Disk.

  • How to change and save a new file in Edge web Lumira server for Team ?

    Hi Lumira folks,
    I've installed SAP Lumira 1.0, Edge edition and View a sample 'Dairy Wholesaler-Sample"
    I'd like to change it and save as new file, but "Save" button is disabled and when I put my mouse over the button,
    it says "Save Option is disabled in this version".
    Is there any idae how to change and save as a new file in Lumira Edge ?
    Many Thanks.
    JH

    I've just found the reason as below.
    http://scn.sap.com/community/lumira/blog/2015/03/20/lumira-server-for-teams-edge-edition-version-compatibility
    The current version of Lumira
    server for teams is 1.0. This version uses Lumira 1.22 as its 'engine' as this
    was the version of Lumira Desktop that was shipped at the same time.
    Hence with the current Lumira
    version compatibility; namely that a newer version of the product can open an
    older document, but an older version cannot open a newer document, care must be
    taken when deploying Lumira server for teams.
    Lumira server for teams is only
    compatible with Lumira desktop 1.22. If you intend to deploy Lumira server for
    teams, ensure your desktop users do not move to a later version of the desktop.
    Content created in a later version of Lumira desktop can be uploaded and shared
    via Lumira server for teams, but it cannot be viewed or edited online in the
    browser.
    Ensure desktop users disable the
    auto update capabilities in the desktop preferences, and set the update to
    none.

Maybe you are looking for

  • How do you make a jumpt to URL with RRI and multiple values (RSBBS)

    I cannot for the life of me figure this out. I would like for a user to run a query on my sap portal. Put in a few restrictions, that could be multiples, example ZipCode 33333,45852,15454, CustomerAccounts = 'X', BusinessType = 'Y' etc etc... When I

  • Send birthday reminder to multiple emails

    Hey guys I was wondering is there's a way to send an email reminder to multiple email addresses. Every year we celebrate our co-workers' birthdays by surprising them within a two-week period of their birthdays, it could be before or after it, that wa

  • Neeed User Exit in Query Help

    Hi Guys We have to find the nr of days between the current date (which is report run date) the posting date of the document. We have to posting date character in the query, but we do not have the Current date in the query. So in order to find out the

  • Iphone 4 verification e-mail?

    Hey, Ever since the new 4.2 update came out for iphone 4 I wasn't able to download anything from the app store. Anytime I would try to download an app it would say something like "You havn't verified your e-mail yet, click here for instructions on ho

  • Getting JScrollPane to resize with container...

    I am tearing my hair out trying to get a JScrollPane containing a JTree to properly resize when its parent container is resized (and indeed to be sized properly when first added to the container). Currently, the scrollpane sizes itself to its child (