Urgent: frm-40508 error
Hi I cannot commit to the database using the form I am working on. I have tried commiting using the SQL prompt and it works fine. The tablenames I am using in the form are dynamic, I am wondering if this could be the problem? Is there a certain way one must commit a record using forms if the table name is dynamic?
ie: 'tbl_':global.envchg'_name'
Thanks a bunch
Sean
I don't know where you are specifying the table name to use, but I guess it is in the form's block property sheet. In order to perform DML on a variable table I think you may well be beter to put the processing into a PL/SQL procedure in the On-Delete, On-Insert, On-Lock and On-Update triggers. This may use Dyanminc SQL or a series of IF/ELSIF statements to determine which table to use.
Similar Messages
-
Please help with FRM-40508 error
Hello everyone.
I designed a form. I get a frm-40508 error.
Tables for this form are valid and exist.
I have no idea what else could cause this error.
Any suggestions are welcome.
Thanks in advance,
SonyaHi
Is the table you are trying to insert into in the same Schema as the user you are compiling and running the form as?
eg. If you created the table as USER 'SCOTT', are you compiling and running the form as 'SCOTT'?
If the schema is the same for the table creation and the compilation/running of your form then I'm a bit stuck.
If, however, they are different then what you will need to do is grant a public synonym for your table and then grant Select, Insert, Update, Delete privelliges (as appropriate) to the user/role accessing the table/running the form.
HTH.
Simon -
Error FRM-40508 - Please help urgent !!!
Hi All,
I'm trying to design a form (Forms 6i) having 3 data blocks. Values from 3 different table are returned to the related fields in the blocks. At the bottom of form, I've created a "push-button" to take these values and add into 4th table.
I gete rror FRM-40508. I trapped error and found that its actually trying to insert into table of "First Data Block", which it should not. My Insert statement in the Trigger of push-button (when-button-pressed) doesn't refer to that table.
However, I found that, in designer mode, if I click on the push-button I see the first block's name in the Block Name space (upper right hand corner). I don't understand this but feel that that is the problem.
Please help ASAP.
Thanks
Prashant
nullHere is the fun.
I created one more data block manually. Creted push-button and following insert stmt in "When-button-pushed" trigger. (real table names changed to dummy)
===========================================
declare
seqno number:=0;
begin
select DUMMY_SEQ.nextval into seqno from dual;
insert into LOG_dummy(
ID, GROUP_ID, ANSWER_ID, QUESTION_ID, ANSWER_TEXT
values
seqno,
:sur.survey_id,
:sur_ans.answer_id,
:sur_quest.question_id,
:sur_ans.answer_desc
commit;
clear_form(No_Validate);
END;
=============================================
The error pops up because of "commit". When I pressed shift-F1 it shows that it can't insert into one of the data blocks. The insert stmt shown there is nowhere in my code of trigger. If I remove "Commit" from above, I Don't get error but record doesn't get inserted either in the table mentioned above :-(
I don't understand what's going on... If anybody in US is willing to help, I can call and talk on phone. I've to finish it this week, any case and I'm stuck on this :-(
~ Prashant
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by ahmed gaber ([email protected]):
are the 3 blocks related with 3 tables ,
and you'r trying to insert the values in another table ?
if yes : so what is the code you wrote in the trigger? to know the answer.
and try to check if there is any not-null columns required ok//<HR></BLOCKQUOTE>
null -
[SOLVED] FRM-40508:ORACLE error: unable to INSERT record
Hi all,
I have migrated this form from 4.5 to 10g (Version 10.1.2.0.2 ). This form inserts a record into the database table when all the fields in the form are filled and a button Save is presed.
At the time when I press the Save button, I get this error. FRM-40508:ORACLE error: unable to INSERT record
So I went on to see the "Display Error" from help and found to be the database error, inserting into a table.
The error message is ORA-00932: inconsistent datatypes: expected DATE got NUMBER
The form where I press Save button has 3 date fields and I checked the properties of them and they are Date only.
I also generated to object list report and tried to find some answer, but no use.
Please help me in debugging this form.
Edited by: Charan on Aug 18, 2011 4:05 PMI think you need to get a description of the table and compare all the "database" columns in the form with the ones in the database table to see that the types match. Somewhere there's a mismatch. Also check the block(s) "query data source columns" and see if there's any
columns in there that the type does not match the table. (check the sizes of things too while you're at it.) -
Oracle errors frm-40508 &ora-02291
hello
i m having a problem
i have two tables for my project with one of em master and the other a detail one
i m using developer 2000 for frontend
when i try inserting data in the forms developed i encounter an error frm-40508 which says "unable to insert record" the corresponding ora error is ora-02291 which says "integrity constraint violated - parent key not found"
i have a primary key in my master table which is used to connect it to details table through foreign key.feilds for the primary key in master and foreign key in details are same
i dont have any such problem if i input data through sql command insert
plz suggest me some solution to this problem
thnx
nipunHi,
Just try watching is therer ar no unique indexes on that table where u are doing an insert. another reason might be the composite primary key or the combination that might be confusing you.
U can try out adding an exception block to the trigger and try raise when-dup-val-on-index exception
Thanks,
Vishal -
Oracle forms error frm-40508: unable to insert record
Hi Everyone,
I have been having this problem for 2 weeks and I realize that I spent alot of time I couldn't get to fix the problem so I need your help.
Here is my situation. First, I installed Oracle 10g in my laptop with Oracle forms10g and Oracle forms904i. I had oracle_home folder as the top level structure then I have inside oracle folder, Oracle10g in it own folder, Oracle9i release2 in it own folder. then I created the user account "student" using the system/manager account finally I granted privilleges as follow:
GRANT ALL PRIVILLEGES
TO student
WITH ADMIN OPTION;
this was working perfecty I didn't need to grant objects privilleges such as
GRANT INSERT, UPDATE, DELETE
ON customers
TO student;
Then I created a form Application prototype and it works well I could Insert, Update and Delete but now I am creating an e-commerce application prototype I created an new account using a system/manager account as I did previously and grant all privilleges. When I try to grant object privileges the message that I receive says ORA-01919 : role 'INSERT' doesn't exist
When I run the application I am unable to insert the record through forms I get message frm-40508 Orcle error: unable to insert record.
I deinstall the Oracle and clean my laptop and did a clean installation using only Oracle Server10g and Oracle Developer10g I am getting the same message frm-40508.
Can someone please help me on this. the insert command that I am running is a simple one such as
INSERT INTO customers
VALUES( block_name.field_name, ....);
COMMIT;frm 40735:When button pressed trigger raised unhanded exceptionplease help me to solve this>
The FRM-40735 is a generic Unhandled Exception. Please post the full error message so we can better help you.
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Unable to insert into table Showing error FRM-40508
I want to insert data in text items of form into a table by using procedure in program unit. i declared all the parameters and calling this procedure in When-button-pressed trigger of push-button.it is not showing any compilation error, but run time error FRm-40508 ORACLE Error: Unable to insert the record.
The Table Structure:-
PROB_ID VARCHAR2(50)
PERSON_NAME NOT NULL VARCHAR2(50)
MODULE NOT NULL VARCHAR2(100)
START_DATE DATE
VERSION NOT NULL VARCHAR2(50)
ASSIGNED_BY VARCHAR2(100)
FUNCTIONALITY VARCHAR2(4000)
ERR_TYPE VARCHAR2(150)
ERR_COMPONENT VARCHAR2(100)
ERR_LOCATION VARCHAR2(250)
PROB_DESC VARCHAR2(4000)
PROB_SOLTN VARCHAR2(4000)
STATUS VARCHAR2(100)
END_DATE DATE
and the code is in When-button-pressed
Declare
v_pname char(5);
v_mod char(6);
v_datetime VARCHAR2(9);
v_pid varchar2(50);
v_version varchar2(50);
v_assign varchar2(50);
v_func varchar2(50);
v_etype varchar2(50);
v_ecomp varchar2(50);
v_eloc varchar2(50);
v_pdesc varchar2(50);
v_psoltn varchar2(50);
v_status varchar2(50);
v_edatetime varchar2(50);
uname varchar2(50) := 'fcclog';
pwd varchar2(50) := 'fcclog';
con varchar2(50) := 'orcl';
cursor c1 is select prob_id from log_table;
BEGIN
-- Creating the unique Problem ID by adding all the item value
v_pname := :log_table.pname_lst;
v_mod := :mod_table.mod_name;
v_datetime:= to_char(:log_table.start_date);
--:log_table.prob_id := v_pname||v_mod||v_datetime ;
v_pid := v_pname||v_mod||v_datetime ;
for r in c1 loop
if v_pid = r.prob_id then
v_pid := v_pid + 1;
end if ;
end loop;
:log_table.prob_id := v_pname||v_mod||v_datetime ;
v_pid := :log_table.prob_id;
-- Inserting into database--
v_version := :log_table.version;
v_assign := :log_table.assigned_lst;
v_func := :log_table.funct_txt;
v_etype := :log_table.err_type;
v_ecomp := :log_table.err_component;
v_eloc := :log_table.err_location;
v_pdesc := :log_table.prob_desc;
v_psoltn := :log_table.prob_soltn;
v_status := :log_table.status;
v_edatetime := :log_table.end_date;
log_insert(v_pid,v_pname,v_mod,v_datetime,v_version,v_assign,v_func,v_etype,v_ecomp,v_eloc,v_pdesc,v_psoltn,v_status,v_edatetime);
commit;
exception
when others
then
DBMS_OUTPUT.PUT_LINE(SQLERRM);
rollback;
end;
And the Code in Procedure (log_insert) of Program Unit.
PROCEDURE log_insert(
p_pname varchar2,
p_mod varchar2,
p_datetime VARCHAR2,
p_pid varchar2,
p_version varchar2,
p_assign varchar2,
p_func varchar2,
p_etype varchar2,
p_ecomp varchar2,
p_eloc varchar2,
p_pdesc varchar2,
p_psoltn varchar2,
p_status varchar2,
p_edatetime varchar2)
IS
BEGIN
insert into fcclog.log_table(PROB_ID,PERSON_NAME,MODULE,START_DATE,VERSION,ASSIGNED_BY,FUNCTIONALITY,ERR_TYPE,ERR_COMPONENT,ERR_LOCATION,PROB_DESC,PROB_SOLTN,STATUS,END_DATE)
values(p_pid,p_pname,p_mod ,p_datetime,p_version,p_assign,p_func,p_etype,p_ecomp,p_eloc,p_pdesc,p_psoltn,p_status,p_edatetime);
END; -
Hi All
i have a table in that table
i have colums
customer_name
customer_id
customer_add
customer_contact_no
hI HERE customer_name is unique_key
i want when i type duplicate customer_name then (which is already stored in database)
message('customer already exist');
but i get this error frm:40508
please guide
thanks and regards
vikasIn PRE-INSERT trigger check if the Customer already exists or not if exists then give a message as:
declare
cursor c_exists is
select 1
from customer
where customer_name = :customer.customer_name;
begin
open c_exists;
fetch c_exists into v_exists;
close c_exists;
if v_exists = 1 then
message('customer already exist');
raise form_trigger_failure;
end if;
end;You can also do the same is WHEN-VALIDATE-ITEM trigger for customer_name.
Hope this helps.
Edited by: Arif Khadas on Apr 15, 2010 4:10 PM -
About the FRM-40508 ORACLE ERROR, Unable to insert'
Dear Friends:
I use the Toolbar button to insert one record -- do_key('CREATE_RECORD') in the Toolbar_actions procedure, and then, input the value for this record, and then, click the "Save" button -- commit_form; in the when_button_pressed trigger. There will be the problem FRM-40508 ORACLE ERROR, Unable to insert' .
Please kindly help to fix it...........Hi,
See...just for a test, please give whatever u input in the form, give the same in the sql query
like
insert into tablename etc in sql builder and see what happens,
This error will come,
if input value does not meet the datatype in the table or
if u fail to input value for not null column or
access rights pbm(check whether you have rights to insert in to the table)
Regards
Priya -
Oracle Forms6i
Hai All
I have an error while iam inserting data into a table through my forms.
I have two blocks in my form namely Leader, Member
This is my statement in my save button
If :Global.Mode = 'QUERY' then
update hierarchy_tree set unitid = :unit_id,empl_leader= :empl_code,empl_member=:emplcode,
fromdt=:from_date,todt =:to_Date;
elsif :Global.Mode = 'ADD' then
insert into hierarchy_tree (unitid,empl_leader,empl_member,fromdt,todt) values
(:unit_id,:empl_code,:emplcode,:from_date,:to_date);
end if;
commit;
I have taken data from two blocks.
When i press the save button
I have an error
Frm-40508 oracle err unable to insert record.
Thanks In Advance
Srikkanth.M
Edited by: Srikkanth.M on May 10, 2010 12:37 PMSrikkanth,
Instead of
insert into H_Table (unitid,empl_leader,empl_member,fromdt,todt) values (:unit_id,:empl_code,:emplcode,:from_date,:to_date);use
FORMS_DDL('INSERT INTO H_TABLE(UNITID, EMPL_LEADER, EMPL_MEMBER, FROMDT, TODT) VALUES(''' || :UNIT_ID || ''', ''' || :EMPL_CODE || ''', ''' || :EMPLCODE || ''', TO_DATE(''' || TO_CHAR(:FROM_DATE, 'DD-MON-YYYY') || '''), TO_DATE(''' || TO_CHAR(:TO_DATE, 'DD-MON-YYYY') || '''))');So that we can change the insert / update statements as per our need. That means assign the insert statement in to a variable, and then run that insert statement using FORMS_DDL built-in.
Hope you understand.
Regards,
Manu. -
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 urgentI 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. -
hi dear all
when i click on "Run Form Web" i received following error
FRM-99999 Error 18121 please help me in this matter its urgent
thanksnothing here in the forum is urgent !
this is a little bit from google :
http://ftp.unex.es/oradoc/oracle9ias_release_1/doc/a90460/toc.htm
http://www.oracle.com/technology/documentation/forms/6idocs/relnotef_p17_s.pdf -
Getting FRM-40010 Error While opening new form .fmx
Hi,
Oracle apps : 11.5.10.2
Forms : Forms 6.0
I'm creating a custom form by using one oracle apps table.I created a basic form by using template.fmb and then saved it to directory "/dir1" and run this form by connecting to oracle apps database.
When I try to open .fmx from this directory ('/dir1') I'm getting FRM-40010 error.When I checked FORM60_PATH = It's showing /u01...../au/11.5.0/resource.I don't see "/dir1" in that path?
Do I need to modify forms60_path ?
Do I need to register this form before running as it's using table from Oracle apps schema?
Thanks,
KiranWhen I try to open .fmx from this directory ('/dir1') I'm getting FRM-40010 error.When I checked FORM60_PATH = It's showing /u01...../au/11.5.0/resource.I don't see "/dir1" in that path?You need to set FORMS60_PATH and include /dir1 in this path.
https://forums.oracle.com/forums/search.jspa?threadID=&q=FRM-40010+&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Do I need to modify forms60_path ?Yes.
$ export FORMS60_PATH=$FORMS60_PATH:/dir1
Do I need to register this form before running as it's using table from Oracle apps schema?Yes.
https://forums.oracle.com/forums/search.jspa?threadID=&q=Register+AND+Custom+AND+Form&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=Custom+AND+Form&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
FRM-18108 Error when opening a form with subclassed objects
Dear Group,
I have 2 forms in Oracle Forms 6i. One of the forms contains an object group. The other form contains the object that I subclassed it to.
When I open the form that contains the subclassed object group, I get the FRM-18108 error.
If I open the form with the original object group, then open the subclassed form, there is no error.
Does this mean I must always open the original form in order to work on the one with the subclassed object group?
I hope there is an simple solution to what is something I am missing in my Oracle Forms setup.
Thank you in advance.
EmadHi Duncan.
Your suggestion worked.
Thank you for the fast response!
Truly,
Emad -
FRM-40737 Error, While using COMMIT_FORM
Hi,
Please guide for the following:
In a form, I have two data blocks,namely master and detail.
In PRE-INSERT trigger of master block, I am using GO_BLOCK('detail').
The form has a SAVE_BTN also, in save_btn i am using COMMIT_FORM.
When user clicks save-btn , FRM-40737 error is generating.
Please help.
Regards,You can't use go_block in a pre-insert trigger - it is a restricted built-in.
When you commit, the Form will save all the changes regardless of which block they are in.
Steve
Maybe you are looking for
-
Error when posting a SOAP request
Hi all, Facing error when posting the SOAP request and after entering the Server Username and password giving error that http not found and url The URL i follow is http://<hostname>:<port>/XISOAPAdapter/MessageServlet?version=7.0&channel=:BusinessSys
-
Error in COR1 - Material not allowed to use
Hi, Material is in the stock "unrestricted use " but does not allow to use in a production process order. All related options are verified for example : MB51, MMBE, Date of production is prior to use, Quality is OK, Not in blocked stock, not reserved
-
Adding fields in the transaction FS10N ( G/L Account LIne Item Display
Hi all, in G/L Account Balance Display( FS10N) once i get list display when i click CUMULATIVE DISPLAY button it will go to G/L Account LIne Item Display list Here i have to add CUSTOMER field (sold to party or partner) And NAME field in the lis
-
Bug APEX 4.2 Instance Settings
Hi I upgraded my APEX instance from 4.1 to 4.2 and now I can't go to (INTERNAL) Manage Instance->Instance Settings I see only ORA-28817: PL/SQL function returned an error. :( Who can help me ? Regards
-
Can an error be forced in the Post method of Create Purch. Req. ME51N
Hello Developers, I need to prevent the Posting from ME51N after displaying errors in custom code. I created an enhancement at the beginning of the Post method to perform edits but even after a message type "E" occurs the PR number displays on the sc