Share |

FRM-40508: Unable to insert record

You are trying to insert a record in Oracle Forms, but this fails for some reason.

You can see the actual error message if you press shift-F1. Alternatively, you can go to the help menu and choose 'Show last error'.

Basically, this is a catch all error message. The real problem is shown in the 'Last error message' dialog which is displayed by pressing Shift+F1.

Some common errors include:
  • Unique key violation
  • Incorrect foreign key to parent key relationship
  • A NOT NULL field which was left blank
  • A trigger which generates a (custom) error
So basically you have to search for the actual error message, it will help you identifying the root cause.

If the 'Last error message' dialog box shows up empty, you will have to trace your session in order to identify the problem.
 Was this information helpful?  Yes No
If it was not helpful, please take some time to explain why. This is not to ask questions, you can do so in the forum.

Welcome to our forum for Oracle error: FRM-40508 Add your own message



One of the reasons for this error could be lack of table space. Check this first.
 
i m developing an application for hospital management system.In that ,for doctor module , i m creating two tables..In first table,doctor1, i m including r_id,patient_type and date column.
And in second table doctor2, i m including r_id,disease,medicine and dosage column. In first table r_id is primary key and in 2nd one r_id is ref key to doctor1 table..so when i m trying to insert the record it shows error FRM-40508: Unable to insert record , I have made master-detail form for these two tables...so please do help me....
 
If you press Shift+F1, what is the error returned.
You need this error in order to determine what's wrong.

It can be lack of tablespace, a not null field which is not filled in, privilege problem, ...
 
I support the banner system. user trying to save a record in UAAPYAR form and got the error.
FRM-40508:Oracle Error: unable to insert record.
I have researched and found the exact error is
ORA-01631: max # extends(100) reached in table uimsmgr.UABPYAR

Should i increased the table size or what?. Please let me know.
I appreciate for your help.

thanks,
Yes, you have to alter the table to allow more extents.

alter table uabpyar storage(maxextents unlimited);
 
Anybody face the following error on oracle please do the required steps as given below.
error: FRM-40508, KCS , Oracle error, INSERT error.

If you press Shift+F1, what is the error returned. Then do the necessary steps to recover the problem. It can be insufficient table space, try to store NULL value to NOT NULL field, privilege problem, etc.


 
hi , i am vivek , i am using oracle 10g.
i have created a master detail blocks in a form threw the block wizard using join condition.
in the join condition , i have joined 4 columns that are common in both the table i.e. of master and detail block.
i don't have any relationship between the table , the relationship is only threw join.
form builder automatically creates the three program unit and the other trigger.
but the form is not inserting the data , neither showing the data that already exist in the table threw query. it is giving FRM-40508 ERROR while saving the data.
my tables have sufficient space and have all the field set to store null value in both the table.
i am not getting the solution , please do give a solution.
What error do you get when pressing shift+F1
hello sir ,
i got the solution.
actually i have added few field in the block which were not database item , by changing them to database item , i recovered the error.
 
I cannot get error by pressing shift+F1....i am using forms6i..

please advice
The best way to proceed in this case is to trace the session.

Ask your dba to enable tracing for the username that is connected to the database.
 
I already increased my table sized but its still the same, unable to insert record.
what should I do.
 
I already increased my table sized but its still the same, unable to insert record.
what should I do.
 
hi i am ramesh i am useing form 6i when im going to insert record then i got this error and when i press shift+f1 then i got actual error which is 01656 i have no idea about this error plz tell me what do i have to do
Check out following link:
http://dbmotive.com/oracle_error_codes.php?errcode=01656

There is a problem with the maxextents of a cluster your table is in
 
how can i increase the extent size plz tell me r
alter cluster cluster_name storage(maxextents unlimited)
 
Without any info, we can't help you
 
frm:40508:oracle error:unable to insert record

After getting this error i entered Shift+f1 n i got below error....wat to do now?.....plz reply

ORA-02291: integrity constraint (SYSTEM.ID_FK) violated - parent key not found
You are inserting a record which has a relationship to a parent table.
You are trying to insert a value for the foreign key column for which no record exist in the parent table.

Either insert the parent record first, of use a different value for you foreign key column.

You can check out the related error in our database using following link:
http://dbmotive.com/oracle_error_codes.php?errcode=2291
 
Hi,

I study Oracle forms. I maked a simple table L (l_id number, photo long raw) and maked
a form for this table with load_photo button.
So when I enter data into both fields, all is ok, and photo appears, but i can't€ save it
in a table - frm-40508: Oracle error: unable to insert record.
(The null field is inserts via sql command promt)
Please tell me whatI have to do to solve this problem
 
hi i m using oracle 6i when i m updating one field of my record i get this error frm:40509:oracle error.unable to insert record wht should i do now??? plz help me out..........
 
hii i m using oracle 6i when i m updating one field of my record i get this error frm:40509:oracle error.unable to insert record and when i press shift+f1 i got the message ORA-00904: invalid column name which shows that my trigger is taking my form block as the target instead of database table how should i overcome from this prob??? plz help me out
You need to change the property of your block to tell to use the table instead of current block
 

Enter your message  INSERT INTO INV(CO_NAME,CUST_CODE,NAME,TYPE,DOC_DATE,DOC_NO,CUST_NAME,ADD1,ADD2,ADD3,ADD4,CREDIT_LIMIT,CREDIT_UTILISED,CREDIT_AVAILABLE,SL_NO,CO_CODE,YEAR) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17) 

i dint know what is the error in this query

There is no such column CREDIT_AVAILABLE in the table INV

Go to your database schema and do a describe of the invoice table.

If the formentioned column is not there, it might be removed, or a patch script was not run which creates this column.

 

1) If the column was removed, you need to change the form to reflect this change

2) If this is a new version of an application, you might need to run a database patch script which creates this column

 

 

 

Enter your message  INSERT INTO INV(CO_NAME,CUST_CODE,NAME,TYPE,DOC_DATE,DOC_NO,CUST_NAME,ADD1,ADD2,ADD3,ADD4,CREDIT_LIMIT,CREDIT_UTILISED,CREDIT_AVAILABLE,SL_NO,CO_CODE,YEAR) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17) 

i dint know what is the error in this query

There is no such column CREDIT_AVAILABLE in the table INV

Go to your database schema and do a describe of the invoice table.

If the formentioned column is not there, it might be removed, or a patch script was not run which creates this column.

 

1) If the column was removed, you need to change the form to reflect this change

2) If this is a new version of an application, you might need to run a database patch script which creates this column

 

 

Enter your message  Actually i am running a form and i am not entered that above query anywhere in my project so how can it build the query automatically.

Your form contains a block, which is normally based on a database table.

The query will be generated automatically.

Open the form and check if you have a block based on the INV table

 

Enter your message

Hi, I am Mandhir and using 10g oracle database and form 6i. I have created a data entry form.If I enter data thru DBA password it works fine but if a user is asked to feed it gives error FRM-40508.I ave given all grants to the user. Pl help

If you press Shift+F1 or choose help/show last error what error is shown?

 

Hi i am developing an emp form for that i want one example procedure program that to find

emp id from the table if it exists ........

 

Hi i am developing an emp form for that i want one example procedure program that to find given specific emp id from the table if it exists if not rise error........

 

Hi i am developing an emp form for that i want one example procedure program that to find given specific emp id from the table if it exists want to show the details of emp, if not rise error........

 

Hi,

 After given the data whatever i want to insert into table i got an err messge ORA - 40508 Unable to Insert the Record. Please help me for the same..

 

We are upgrading Oracle from 9i to 11g so I have converted oracle forms from 5.0 to 6i. Most of the forms are working fine and few had issues but I took care of those.

I have a master detail form where I am getting this error after I made changes to the existing record and while saving the record. This form has been created with one content canvas and with a tab canvas.  After I made changes in the one of the tabs or in the main canvas I am getting the error.

The display error shows "ORA-00001: unique constraint (RAV.RAVDLRI_UK) violated". The changes i made is in other block. But it looks like it is trying to insert into this table which already have that dealer information in that table. I do not understand why it is trying to insert a record instead of updating the existing one. I have noticed that the record status on that block was set to INSERT, even when I query the existing record.

Could some one help me on this?

 

 

Sir,

I HAVE CREATED A FORMS UNDER WHICH  D_BOM_MASTER IS MASTER TABLE, D_BOM_CHILD IS DETIAL TABLE AND THIRD TABLE IS D_BOM_MST_CHILD_WT_EST IS NEW TABLE AND THE COLOUMN PART_NO IS NOT NULL & CALLED AND REFERED FROM MASTER TABLE PART_NO, COMP_NO IS ALSO NOT NULL & CALLED AND REFERENCED FROM DETAIL TABLE, RM_CODE IS NOT NULL, TYPE IS NOT NULL AND CALLED AND REFERENCED FROM MASTER TABLE.

DATA IS HERE IN MULTI LEVEL. BECAUSE ONE PART HAS MANY COMPONENTS AND ONE COMPONENETS HAS MANY SUB COMPONETS AND SO ON. BUT EVERY COMPONENTS I.E. COMP_NO IS ALSO A PART_NO OF MASTER TABLE IN WHICH THERE DESCRIPTION IS STORED.

WHEN I TRIED TO FETCH THE ABOVE SAID FIELD DATA FROM MASTER AND DETAIL TABLE AND REST OF COLOUMN IS FEELLED AND AFTER FEELING WHEN SAVE BUTTON  IS PRESSED TEHN SHOW ERROR UNABLE TO INSER ORACLE FRM - 40508 ERROR.

CAN U HELP ME IN THIS JUNCTURE PLEASE......

 

 

Sir,

I HAVE CREATED A FORMS UNDER WHICH  D_BOM_MASTER IS MASTER TABLE, D_BOM_CHILD IS DETIAL TABLE AND THIRD TABLE IS D_BOM_MST_CHILD_WT_EST IS NEW TABLE AND THE COLOUMN PART_NO IS NOT NULL & CALLED AND REFERED FROM MASTER TABLE PART_NO, COMP_NO IS ALSO NOT NULL & CALLED AND REFERENCED FROM DETAIL TABLE, RM_CODE IS NOT NULL, TYPE IS NOT NULL AND CALLED AND REFERENCED FROM MASTER TABLE.

DATA IS HERE IN MULTI LEVEL. BECAUSE ONE PART HAS MANY COMPONENTS AND ONE COMPONENETS HAS MANY SUB COMPONETS AND SO ON. BUT EVERY COMPONENTS I.E. COMP_NO IS ALSO A PART_NO OF MASTER TABLE IN WHICH THERE DESCRIPTION IS STORED.

WHEN I TRIED TO FETCH THE ABOVE SAID FIELD DATA FROM MASTER AND DETAIL TABLE AND REST OF COLOUMN IS FEELLED AND AFTER FEELING WHEN SAVE BUTTON  IS PRESSED TEHN SHOW ERROR UNABLE TO INSER ORACLE FRM - 40508 ERROR.

CAN U HELP ME IN THIS JUNCTURE PLEASE......

 

 

Sir,

I HAVE CREATED A FORMS UNDER WHICH  D_BOM_MASTER IS MASTER TABLE, D_BOM_CHILD IS DETIAL TABLE AND THIRD TABLE IS D_BOM_MST_CHILD_WT_EST IS NEW TABLE AND THE COLOUMN PART_NO IS NOT NULL & CALLED AND REFERED FROM MASTER TABLE PART_NO, COMP_NO IS ALSO NOT NULL & CALLED AND REFERENCED FROM DETAIL TABLE, RM_CODE IS NOT NULL, TYPE IS NOT NULL AND CALLED AND REFERENCED FROM MASTER TABLE.

DATA IS HERE IN MULTI LEVEL. BECAUSE ONE PART HAS MANY COMPONENTS AND ONE COMPONENETS HAS MANY SUB COMPONETS AND SO ON. BUT EVERY COMPONENTS I.E. COMP_NO IS ALSO A PART_NO OF MASTER TABLE IN WHICH THERE DESCRIPTION IS STORED.

WHEN I TRIED TO FETCH THE ABOVE SAID FIELD DATA FROM MASTER AND DETAIL TABLE AND REST OF COLOUMN IS FEELLED AND AFTER FEELING WHEN SAVE BUTTON  IS PRESSED TEHN SHOW ERROR UNABLE TO INSER ORACLE FRM - 40508 ERROR.

CAN U HELP ME IN THIS JUNCTURE PLEASE......

 

Add your message

 Please provide your personal info 



 Please ask your message as briefly and clear as possible 

 Spam Protection 
Validation Code: o4utoao73hamkezxj


Ask Your Question

If you need more information about this particular error message, you can leave a forum message.

We are replying to this message whenever we have some spare time, so please do not consider this as a private 'solve my critical issue asap' service.

Should you need professional Oracle Assistance to make your project a success, please have a look at our consultancy services.


Spam Protection

In order to prevent automatic generation of messages, we are asking for a validation code. This code is unique and is generated every time a new message is asked.

If you do not enter the validation correctly, your message will not be recorded.


Forum Rules

Please be polite, do not USE ALL UPPERCASE, no insults, violance or any other threats.