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.
Similar Messages
-
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 AMAhmed_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 -
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. -
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. -
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; -
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 -
Error FRM-40657:Record Change or deleted by another user
Hi dears
Please HELP ME
I have a form with multiple blocks and relationship between them
I can insert in all of the blocks
but I can not update the exiting rows in ANY block in application.
I can update the rows from outside of the application
it returns me this error:
FRM-40657:Record Change or deleted by another user
the properties about insert allowed,update allowed and so on are all YES in all blocks
Would you please advise me about that?
Need your help
thanks
ShahramThis error occurs because the record as held in the Form is not the same as that held on the database. When Forms locks a record it checks the value of every database item on the Form with that currently stored in the database, and if the two are not the same it issues this error.
This can happen for a number of reasons e.g.
1. You may want to look at date fields and ensure the time component is being taken into account i.e. the LAST_MODIFIED column is stored as '01-JAN-2001 15:34:56' on the database but is stored as '01-JAN-2001 00:00:00' (a truncated date) on the Form.
2. Check to see if there are any database triggers which alter the values of columns.
You may need to go through every database item on the Form and compare it with the value on the database. Having found a discrepancy in values you need to determine why this occurs. -
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; -
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,
HaniThe 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 -
TextEdit Save Error Message "you don't have permission..."
TextEdit, in both Mountain Lion and now Mavericks,displays what appears to be a fake "Save "error:
"You don’t have permission to write to the folder that the file “XXXXX.txt” is in.
Your changes will not be saved until the problem is resolved."
I have repaired permissions several times with no result. The permissions are clean, not requiring fixing. I am Admin. I should be able to save anywhere, altho I have tried saving in many different places just to test.
It does not ask for the Admin password.
Here's when it happens:
1) Open a document. either new or existing.
2) Type some text in it.
3) Save -- choose destination if new and it seems to work.
4) Start typing in the document
5) After a few seconds I get the above error message that drops down from the title bar at the top of the document.
6) I have to click the OK button and I can go on typing.
Repeat
Save document, type a few characters, get error message, click OK.
Repeat all day long.
Yet it seems that my changes have been saved.
Most annoying.Wow. Why bother reading the forum if you are convinced the solution isn't going to work before even trying it?
Another viewer besides myself commented above that they repeated the process and it worked for them, so it's not exclusive to my setup.
A search for textedit revealed 97 files. The search took 12 seconds on my eight core Mac Pro.
I quit EasyFind, opened TextEdit and made a simple change in the preferences, saved and then quit TextEdit.
I searched again with EasyFind, sorted by Modified and found eight files had been changed at the exact time I quit TextEdit. One of those is the culprit. I deleted them all.
No, I don't work for EasyFind, nor do I know the people, nor do I receive compensation of any type from them. I like it and recommend it because it just plain works and I like to share good info like that with the Mac community, (BTW, it's free)
Good luck with solving it on your end. If you find a more scientific solution please share it so we can see how it should be done by a real tech support guy instead of an amateur like me. (I was an Apple Var at one time, now I do some support for my friends. I'm on about my tenth Mac, the first being a Fat Mac, and have two Macs and an iPhone at this time. No doubt I have no idea what I'm doing)
You really are funny! You must be a, oh never mind, I was going to name a political party. -
Error while saving changes in RSPC Error Stack.
Hi gurus,
I am able to make changes in the error stack in the transaction RSPC, However, when trying to save those changes, I get an error stating that the request "DTPR_* " doesn't exist. and the message is RSAODS005.
I tried searching in SDN as well in SAP notes, but in vain. Does anybody have any idea how to solve this error.
Regards,
Sree.Hi Sree,
delete Error DTP in process Chain, do modifications for Error DTP in RSA1 and add that again in process Chain and activate Process Chain.
Regards
Daya Sagar -
Has anyone else received an error message which says "File Save Error" when attempting to check out a document in the Solution Manager blueprint document store? We have a document which can be opened in display or change mode, and exported, but when trying to check out, users receive a message which states simply "File Save Error" with an "OK" button. Pressing OK closes the dialog message and the check out process cancels. Other documents checkout with no error. The error message looks like a standard Windows error, rather than an SAP error message.
Thanks for any ideas!
BobHello Thierry,
I thought I looked at this. The name was changed, but SolMan history shows the old name, with a COLON (:)... of course a name cannot have a colon in the middle.
Right on the money.... thanks for prompting me to look again.
(But SAP still should address the error message... it simply left us in the dirt.)
Thanks again!
bOB -
Premiere Pro Project Save Error
configuration: windows 7 64bit; Adobe Master Collection CS4; Windows Domain 2003; Mandatory roaming profile for student account. Students save work on a network share specific to their username (having full control of said folder).
issue: when opening an existing adobe premiere pro project, they can make changes, render, export etc. but when they click file->save it give an error:
Project Save Error
Could not open the project file with write access. The file may be locked or you may not have permission to write to this location. Select 'Save As' from the File menu to save the project to a new location.
If we do select the save as option, we can save the file to the same directory from which the original project was opened (with a different filename of course). I believe this might be an issue with a temporary / cache location premiere pro is using but I have been unsuccessful in finding any information on the temp locations and how it saves the working files.In general, PPro is not really designed for a multi-user setup... or for networking
PPro really runs best when the "owner" is the Administrator... which I don't think you can do for students
Maybe someone else will come along with other information (I am just a standalone user) but I've seen a LOT of similar messages, and don't remember any solution other than running as Administrator, with files on a local (not network) computer -
Save Error: File Type Unknown
Ok So here it is
I've been working on a project all day, saving all along and suddenly at the end of the day I go to save one last time and I get an error of "Save Error: File Type Unknown". At first I thought there was an unsupported file type somewhere in the project so I searched out all my non-video elements and they all checked out OK.
I then started shutting down the machine at lunch and that seemed to remedy the problem at first, but now I get the error at least 6 times a week - VERY frustrating. I've tried doing save as, which results in either a full crash or the same error.
I thought that maybe somehow the constant frames files were getting corrupted during the course of editing some how and started trashing those - no change still get the error.
Also I am editing HDV and rendering out ProRes. So far no one has been able to help So I'm turning to you guys!
Thanks guys!!I created a duplicate of my application on apex.oracle.com - the problem happens under APEX 4.0 as well...
It might be easier to see what is happening here.
WORKSPACE: SEATTLE_WAVE
USER: testuser
PASSWORD: mypassword10
Thank you
--rolf -
FRM-40657: Record changed or deleted by another user.
I have a forms module with a module component based on a view.
This view is a simple view with 1 base table.
This view has a 'client derived' primary key with a sequence.
This view has a instead of trigger, which is calling the table API.
There are no server derived columns etc.
When I insert a record via the form and try to update the same record
without requery, I get the message:
FRM-40657: Record changed or deleted by another user.
When I drop the trigger the error is not raised.
Any idea ?
Configuration:
Forms 6.0.5
Designer 6.0.5
Headstart 5.1
Oracle 8.1.7.4.0From Documment : 1236623.1
Cause:
1. Navigation from (Responsibility) System Administrator > Security > User > Define > Query out the responsibility, found responsibility key is <NEW_VALUE>. ..................... This is wrong Navigation
2. Found value <OLD_VALUE> is included in column role_name of the responsibility under the user by sql statement:......................................................................................... Not sure whats the old Value
select * from wf_local_user_roles
where user_name = '<user_name>'
and role_name like '%<OLD_VALUE>%';
Solution :
4. Identify the Role (responsiblity) to be changed, click 'Show' to expand the record, select a date to field 'Active To' to provide an end date to this role assignment. ..... Not sure how to get role for particular responsibility.
From Document : 1273157.1
We have created new responsibility , But now we are getting error while END_DATE old responsibility.
New Responsiblity name : BPC-160 DC Staff-New
Old : BPC-160 DC Staff
Maybe you are looking for
-
My plant is under excise duty exemption for 10 years, presently there is no excise duty now the customer wants the excise duty to be nil. but he wants the registers ie., rg23 to updated as if he has paid excise duty to know his benefit from exemption
-
How to make one album show up for multiple artists?
I'd like some albums to show up under multiple artists in iTunes in Windows. Say for example "The Basement Tapes" by Bob Dylan and The Band. It would be nice to see this album under both these artists. Or to have "Two Men With the Blues" show up u
-
I was resetting my iphone 4 at itunes and it locked and now blinks on and off the logo and will not allow me to reset it. What do I do now to reset it.
-
Lightroom KEYWORDS searchable in SPOTLIGHT?
I was looking through the discussion boards but couldn't find an answer...here's my question. If I enter keywords into Adobe Lightroom and save the metadata back to the original file, can spotlight search by these keywords??? I know in Tiger this did
-
Error run message when installing spectrasonics Trillian
I have recently purchased Spectrasonics Trillian but I'm having trouble installing...... When i run the installer for Ohmnisphere I am met with the following message Install failed! The following install step failed: run preflight script for Trilian