Ошибка ora 305500

I want to generate report in Excel File using oracle forms 10g and implement trigger when-button-pressed. When button press then getting following error:

40735: when-button-pressed trigger raised unhandled exception ORA-305500

Code:

declare
  application ole2.obj_type;
  workbooks ole2.obj_type;
  workbook ole2.obj_type;
  worksheets ole2.obj_type;
  worksheet ole2.obj_type;
 cell ole2.obj_type;
 arglist ole2.list_type;
 row_num number;
 col_num number;
 fontObj ole2.obj_type;

cursor rec is SELECT so.descr saleorgdescr,ih.invdate invdatemaster, ih.docNUM docnum,
   TO_CHAR(ih.invdate,'mon-yyyy') invmonth
FROM ARMINVHEAD ih, SDMSALEORG so
WHERE
ih.status='69'
AND  TO_DATE(ih.INVDATE,'DD-MM-RRRR')
              BETWEEN
                   TO_DATE('01-01-2008','DD-MM-RRRR') 
              AND  
                   TO_DATE('01-01-2009','DD-MM-RRRR') 
order by IH.INVDATE, ih.docnum;

procedure SetCellValue(rowid number,colid number,cellValue varchar) is
begin
arglist := ole2.create_arglist;
ole2.add_arg(arglist,rowid);
ole2.add_arg(arglist,colid);
cell:= ole2.get_obj_property(worksheet,'Cells',arglist);
fontObj := ole2.get_obj_property(cell,'Font');
ole2.destroy_arglist(arglist);
ole2.set_property(cell,'value',cellValue);
ole2.set_property(fontObj,'Size',16);
ole2.set_property(fontObj,'BOLD',1);
ole2.set_property(fontObj,'ColorIndex',7);
ole2.release_obj(cell);
end SetCellValue;

procedure app_init is
begin
application := ole2.create_obj('Excel.Application');
ole2.set_property(application,'Visible',true);
workbooks := ole2.get_obj_property(application,'workbooks');
workbook := ole2.Get_Obj_Property(workbooks,'add');
worksheets := ole2.get_obj_property(application,'worksheets');
worksheet := ole2.Get_Obj_Property(worksheets,'add');
ole2.set_property(worksheet,'Name','Emp Sheet');
end app_init;

procedure save_excel(path varchar,filename varchar) is
begin
OLE2.Release_Obj(worksheet);
OLE2.Release_Obj(worksheets);
-- Save the Excel file created
If path is not null then
Arglist := OLE2.Create_Arglist;
OLE2.Add_Arg(Arglist,path||''||file_name||'.xls');
OLE2.Invoke(workbook, 'SaveAs', Arglist);
OLE2.Destroy_Arglist(Arglist);
end if;
end save_excel;

begin
app_init;
row_num:=1;
col_num:=1;
SetCellValue(row_num,col_num,'saleorgdescr');
col_num:=col_num + 1;
SetCellValue(row_num,col_num,'invdatemaster');
col_num:=col_num + 1;
SetCellValue(row_num,col_num,'docnum');
col_num:=col_num + 1;
SetCellValue(row_num,col_num,'invmonth');
for i in rec loop
row_num:=row_num + 1;
col_num:=1;
SetCellValue(row_num,col_num,i.saleorgdescr);    
col_num:=2;
SetCellValue(row_num,col_num,i.invdatemaster);    
col_num:=3;
SetCellValue(row_num,col_num,i.docnum);
col_num:=4;
SetCellValue(row_num,col_num,i.invmonth);   
end loop;    
save_excel('C:excel_export','emp_data');       
OLE2.Release_Obj(workbook);
OLE2.Release_Obj(workbooks);
OLE2.Release_Obj(application); 
end;

How to solve this problem in oracle forms 10g?

I am using oracle forms 10g with Oracle Apps ERP Module

Trying to generate excel file in forms 4,5.
It works with this syntax:
CURSOR C1 IS
select G.GOVS_LOAN_ID LOAN,
G.GOVS_FROM S_N_FROM,G.GOVS_TO S_N_TO,G.GOVS_TYPE TYPEE,
DECODE(G.GOVS_TYPE,1,’PN’,2,’CANCELED’,3,’GUARANTEE’,4,’CONTRACT’) Type_Of_Document,
G.GOVS_ENTRY_DATE Entry_Date,
(nvl(G.GOVS_PN_AMOUNT,0)* GOVS_PN_NB) PN_AMOUNT_USD,
DECODE(G.GOVS_TYPE,1,’1.5′,3,10000,4,10000,2,0) Indirect_Taxe,
nvl(g.govs_gov_amount,0) Total_stamped_amount_lbp,
g.govs_cust_name Customer_Name
from bbsd_govs_stamps G
where g.govs_entry_date between :FROMDATE and :TODATE
and g.govs_from between :FROMM and :TOO
order by G.GOVS_ENTRY_DATE,G.GOVS_FROM ;

STAPMS C1%ROWTYPE;
PROCEDURE FIELD (COLUMN NUMBER,
RROW NUMBER,
DATA VARCHAR2) IS
BEGIN
args := ole2.create_arglist;
ole2.add_arg(args,rowcount);
ole2.add_arg(args, COLUMN);
cell := ole2.get_obj_property(worksheet,’Cells’,args);
ole2.destroy_arglist(args);
ole2.set_property(cell,’Value’, DATA);
ole2.release_obj(cell);
END FIELD;
begin
application := ole2.create_obj(‘Excel.Application’);
ole2.set_property(application,’Visible’,’True’);
workbooks := ole2.get_obj_property (application,’Workbooks’);
workbook := ole2.invoke_obj(workbooks,’Add’);
worksheets := ole2.get_obj_property (workbook,’Worksheets’);
worksheet := ole2.invoke_obj(worksheets,’Add’);
rowcount := 0;
for rec1 in C1 loop
if ( rec1.typee = 2 and rec1.Total_stamped_amount_lbp = 10000) then
cp_solde := nvl(:AMOUNTSOLDE,0) ;
:AMOUNTSOLDE := nvl(cp_solde,0) ;
else
cp_solde := nvl(:AMOUNTSOLDE,0) — nvl(rec1.Total_stamped_amount_lbp,0);
:AMOUNTSOLDE := nvl(cp_solde,0) ;
end if;
:AMOUNTSOLDE := nvl(cp_solde,0) ;

rowcount := rowcount + 1;
— HEADER
IF count1 = 0 THEN
— FIELD (1, rowcount, ‘From Serial#’);
— FIELD (2, rowcount, ‘To Serial#’);
—FIELD (3, rowcount, ‘Doc. Type’);
—FIELD (4, rowcount, ‘Entry Date’);
—FIELD (5, rowcount, ‘PN_AMOUNT_USD’);
—FIELD (6, rowcount, ‘Indirect Taxe’);
—FIELD (7, rowcount, ‘Total_stamped_amount_lbp’);
—FIELD (8, rowcount, ‘Cust. Name’);
—FIELD (9, rowcount, ‘Amount Solde’);

rowcount := rowcount + 5;
END IF;
—DEATILS
FIELD (9, rowcount, TO_CHAR (rec1.S_N_TO));
FIELD (8, rowcount, rec1.Type_Of_Document);
FIELD (7, rowcount, TO_CHAR (rec1.LOAN));
FIELD (6, rowcount, TO_CHAR (rec1.Entry_Date));
FIELD (5, rowcount, TO_CHAR(rec1.PN_AMOUNT_USD));
FIELD (4, rowcount,’????’);
FIELD (2, rowcount, TO_CHAR (rec1.Total_stamped_amount_lbp));
count1 := count1 + 1;
end loop;
col_r := ole2.GET_OBJ_PROPERTY( worksheet,’UsedRange’);
col := ole2.GET_OBJ_PROPERTY( col_r,’Columns’);
ole2.INVOKE( col,’AutoFit’ );
ole2.release_obj(worksheet);
ole2.release_obj(worksheets);
ole2.release_obj(workbook);
ole2.release_obj(workbooks);
ole2.release_obj(application);

end;

BUT
WHEN I ADJUST THE QUERY BY ADDING CONCATENATE ||: AS FOLLOW
CURSOR C1 IS
select G.GOVS_LOAN_ID LOAN,
TO_CHAR(G.GOVS_FROM)||’-‘||TO_CHAR(G.GOVS_TO) S_N_FROM, G.GOVS_TO S_N_TO,G.GOVS_TYPE TYPEE, DECODE(G.GOVS_TYPE,1,’PN’,2,’CANCELED’,3,’GUARANTEE’,4,’CONTRACT’) Type_Of_Document,
G.GOVS_ENTRY_DATE Entry_Date,
(nvl(G.GOVS_PN_AMOUNT,0)* GOVS_PN_NB) PN_AMOUNT_USD,
DECODE(G.GOVS_TYPE,1,’1.5′,3,10000,4,10000,2,0) Indirect_Taxe,
nvl(g.govs_gov_amount,0) Total_stamped_amount_lbp,
g.govs_cust_name Customer_Name
from bbsd_govs_stamps G
where g.govs_entry_date between :FROMDATE and :TODATE
and g.govs_from between :FROMM and :TOO
order by G.GOVS_ENTRY_DATE,G.GOVS_FROM ;
WHEN BUTTON PRESSED, I GET ORA-305500

I would appreciate your help

Thank You

Read these next…

  • Curated Did the Snipping tool usurp the print screen key?

    Did the Snipping tool usurp the print screen key?

    Windows

    Did one or some of the recent Windows 11 updates alter how the print-screen button is bound?   Been using Snagit for many years and just recently I started getting the Windows Snipping tool instead of Snagit when I push the print screen button.In the end,…

  • Curated Nerd Journey # 218 - Explaining Hard Concepts in Simple Terms with Jason Langer

    Nerd Journey # 218 — Explaining Hard Concepts in Simple Terms with Jason Langer

    Best Practices & General IT

    In a world without FaceTime, Zoom, and other screen sharing tools Jason Langer learned to communicate well out of necessity.  He had to learn to meet end users where they were in their base of knowledge (just like those of us who know what it’s like to wo…

  • Curated Spark! Pro series – 5th June 2023

    Spark! Pro series – 5th June 2023

    Spiceworks Originals

    Today’s AI contribution is a bit long, and hopefully not
    TLDR.  I kept it, because well, it is
    quite interesting what the AI decided to write. 

    Just a reminder, if you are reading the Spark!, Spice it
    up. W…

  • Curated Internet Speed -- How Fast is Fast Enough?

    Internet Speed — How Fast is Fast Enough?

    Spiceworks

    I was looking at the Speedtest Global index and seeing those average speeds for the biggest cities in the world seemed kind of slow… and of course rural areas would be much worse.It would be interesting to compare the community’s overall speeds.  How fa…

  • Curated Where are they in Windows 11?

    Where are they in Windows 11?

    Windows

    Quick and I hope easy question, I have figured out ways to do this in W11 but just wondering if there is an easier way.Where are the following in «Windows 11″1. Map Network Drive2. Add PC to a Domain3. This PC (Option)Thank you.

The message returned from the sqlerrm function having encountered an ORA-305500 error consists of the slightly cryptic:

non-ORACLE exception.

However, while I have no documented confirmation of this opinion, the fact that this corresponds with the pre-defined oracle forms exception: OLE2.OLE_ERROR defined in the Oracle forms OLE2 package, then, unless this error is thrown in another oracle product, then I would suggest that it is safe to assume that what has been encountered is an OLE2 error!

And the simplest interpretation of the error is, the developer has ignored Oracles advice on handling OLE errors!

In the Oracle Forms documentation there is a clear example on how this error should be handled and what further information should be available.

Thus it is my recommendation for anyone who encounters this error and who has the source code available for their application to get hold of the appropriate Oracle documentation: Oracle Forms Developer and Oracle Reports developer – Common built in packages – release 6i document: A73152_01.pdf currently available here: http://download.oracle.com/otn_hosted_doc/forms/forms/A73152_01.pdf

In the documentation (the best example is included in the OLE2.Last_Exception section) you will there get an explanation as to how Oracle recommends you handle this type of error:

— OLE errors are formatted as 32 bit unsigned integers and
— returned as Oracle NUMBERS. We want to extract only the
— error code, which is contained in the lowest 16 bits.
— We must first strip off the top [severity] bit, if it
— exists. Then, we must translate the error to an
— INTEGER or BINARY INTEGER and extract the error code.

Unfortunately, most people don’t follow the above advice, and if you search on Google for ‘OLE error 1004’ you will receive less hits than if you search for the original hex error number : 800A03EC.

So the advice is: If you are using the OLE2 package, make sure you add an error handler for OLE2.OLE_ERROR exception, then in the exception handler, make a call to OLE2.LAST_EXCEPTION to get the actual error number and then use the full error number in the error message rather than bothering to strip off the severity bit, etc.

In terms of actually interpreting the error, If you have a windows C compiler, you should have access to a copy of the WinError.h file where all the windows error messages are listed.

Look for the section beginning:

//
// Error definitions follow
//

//
// Codes 0x4000-0x40ff are reserved for OLE
//
//
// Error codes
//
//

Alternatively, if you don’t have access to this file, then you can download the file OLE error decoding tools from Microsoft support that lists most of the OLE errors and a very brief interpretation:
http://support.microsoft.com/kb/122957

Trying to use ole2 to import data from a spreadsheet in Oracle forms.
I keep getting ORA-305500 when I click on the button to run the ole commands.

I have stripped the code right back to the first 2 lines.  The error occurs after the second line.
What does this error mean and how do I debug it?

The lines are:

declare
  application      ole2.obj_type;
  workbooks       ole2.obj_type;
begin
application := ole2.create_obj(‘Excel.Application’);
workbooks := ole2.get_obj_property(application,’Workbooks’);

end;

Oracle Database

Jun 20, 2005

why this exception is occuring .my code is below.

Procedure Edit_File
(v_linked_file in out file_link.linked_file%type,
v_copy_status in out file_link.copy_status%type,
i_ext in varchar2) is

[code]….

View 18 Replies

ADVERTISEMENT

FRM 40735 — WHEN-BUTTON-PRESSED Trigger Raised Unhanded Exception ORA-305500?

May 8, 2007

I have a piece of code which imports data from EXCEL to ORACLE forms.But after this I am getting the exception

FRM 40735:WHEN-BUTTON-PRESSED Trigger Raised unhandled Exception ORA — 305500

My Coding is below,
PROCEDURE PROC_IMPORT_EXCEL IS
—Cursor To Get The Number Of Columns Of the table
CURSOR c_get_table_columns IS
SELECT COUNT(ATC.TBLCLMNID) FROM APPLCTN_TABLE_COLUMN ATC

[code]…

View 1 Replies
View Related

Forms :: FRM-40735 / WHEN-BUTTON-PRESSED Trigger Raised Unhandled Exception

Aug 17, 2011

I have a form which contains tabular layout which i can fill a text item with date format. I set the data type properties to «Date» with format mask «dd-mm-yyyy».When I click a «save» button, it will call a procedure to insert into table. But i’m getting this error message : «FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06502»

I did some search on google and error 06502 means numeric or value error. But I don’t understand what caused my error. Is it at my text item’s properties?

View 5 Replies
View Related

Forms :: FRM-40735 When Button Pressed Trigger Raised Unhandled Exception ORA-01843

Oct 30, 2013

I am trying to insert some values into a table from a form i get the below error;

which says not a valid month;

FRM-40735 WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-01843

after i do google i added the below one to the insert statement and again i receive the error;

to_date(to_char(sysdate,’dd/mm/yyyy’),’dd/mm/yyyy’)

My Insert Statement

insert into Invoice123
(Invoiceno, invdate, gross_tot, discount)
values
(nvl(INVOICEno(j),0),
to_date(to_char(invdate(j),’dd/mm/yyyy’),’dd/mm/yyyy’));
commit;

by which format we can achieve this!

View 6 Replies
View Related

Forms :: FRM-40735 / WHEN-BUTTON-PRESSED Trigger Raised Unhandled Exception ORA-06502

Oct 3, 2013

I have Forms 6i, installed in a system at remote location with OS Windows 7. Previously the same was installed in Windows XP it was working fine. Now in Windows 7 also its working fine for most of the things, for some data loading options its not working and showing below shown error.

FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06502

View 1 Replies
View Related

Forms :: Button Pressed Trigger

Jan 6, 2012

I have got a form with 3 buttons and when these are pressed determine who is logged in, what role they are and if they are a certain role go to another block, if they are not that role flag up a message. I think I need to create a function in the database along the lines of —

create function user_has_role (p_user in varchar2 default user, p_role in varchar2)
return boolean
as
select * from dba_role_privs where p_user = GRANTED_ROLE;
end

View 16 Replies
View Related

Forms :: How To Skip Trigger Only When Button Is Pressed

Mar 9, 2013

in my form I have a button that updates a table and I have a pre-update trigger.

is it possible to skip the pre-update trigger only when the button is pressed.

View 2 Replies
View Related

Forms :: Any Method On WHEN-BUTTON-PRESSED Trigger

May 9, 2012

I have a form of a user feedback with SMS Sending. which I gave to my all clients when ever my any client enter a feedback they press send SMS button so I got SMS if they press the button 2 times I got 2 same sms and if press the button 3 times I got 3 same sms and so on I want to restrict them and allow them to send only 2 sms of that feedback.any method on WHEN-BUTTON-PRESSED Trigger.

View 7 Replies
View Related

Forms :: How To Copy Values From One Table To Another Using When-Button-Pressed Trigger

Feb 14, 2013

I have two tables one is

1)create table abc(c_name varchar2(10),c_number number(6),c_loc varchar2(8)); —having values
2)create table temp(sname varchar2(10),sid number(4),address varchar2(10));—no having

and my question is how to insert a values into temp using when-button-pressed trigger based on abc table in oracle form.

View 16 Replies
View Related

Forms :: Open PDF File When Button Pressed?

Dec 6, 2009

I’ve a button on a form and I wrote a trigger when button pressed to open a pdf file and it worked fine this was my

declare
AppID PLS_INTEGER;
begin
AppID := DDE.App_Begin(‘C:Program FilesAdobeReader 8.0ReaderAcroRd32.exe Z:BUILTINS.pdf’,DDE.APP_MODE_NORMAL);
end;

The thing is this form is used by multiple clients and if a user has a different version of acrobat reader rather than version 8 this will not work how to do it to be uniform?

View 5 Replies
View Related

Forms :: 6i To Show Detail Block When Button Pressed?

Aug 16, 2011

Is it possible to display the detail block (different canvas) in the master block canvas, but when finished entering data into master block and a button is pressed? And i want to use some conditions in the when-button-pressed trigger. based on that it should show different canvas.

simply speaking, my aim is to use the upper part of the screen to show master block and the lower part for a detail block from the different detail blocks based on condition checked in when-button-pressed trigger.

View 6 Replies
View Related

Forms :: Implement Exception Handling In Exception Block Of A Trigger

Oct 10, 2011

I have to implement exception handling in the exception block of a trigger, Quote:exception

when ora_java.java_error then
message( ‘Unable to call out to java, ‘ || ora_java.last_error );
ORA_JAVA.CLEAR_EXCEPTION;

when ORA_JAVA.EXCEPTION_THROWN then
ex := ORA_JAVA.LAST_EXCEPTION;
message( Exception_.toString(ex));
— lv_exception := Exception_.getMessage(ex);

I get an error for the line: ‘message( Exception_.toString(ex));’I have imported the java classes FException et IObject with their methods.

I have to create a Web Service Client, so I wonder if the paragraph Quote:when ORA_JAVA.EXCEPTION_THROWN then ex := ORA_ JAVA. LAST_ EXCEPTION; is mandatory.

View 2 Replies
View Related

Forms :: Display Checkbox Selected Records In One Column Of Form / When Push Button Is Pressed

Jul 2, 2011

how to display check box selected records in one column of form when push button is pressed.

View 1 Replies
View Related

Forms :: Alert Cancel Button Gives Non Oracle Exception

Jan 20, 2011

i’ve created an alert with 2 buttons and the code for cancel button is as follows:


if alert_id = alert_button2
then
raise form_trigger_failure;
end if;

this code is in a pll and when called from a form it displays a non oracle exception message. How to do nothing when the user presses cancel on alert pop-up? apart from using null instead of raising the above exception?

View 5 Replies
View Related

Forms :: Use RAISE FORM-FAILURE-TRIGGER In EXCEPTION?

Jun 12, 2012

My requirement, if there is no record in emp table when validate the EMP_NO_CHK text field, i need to set the focus on that field (EMP_NO_CHK) itself. But while execute the following code, I got error.chieve the task.

—EMP_NO_CHK_WHEN_VALIDATE_ITEM Trigger
————————————
Declare
cursor c is Select * from emp where Emp_no = :header.empno;
c1 emp%rowtype;
n NUMBER;

[code]…

View 4 Replies
View Related

Forms :: Trigger On Save Button

Oct 31, 2013

which is the trigger that fires when we Press the Standard ‘Save’ button from the toolbar? And i want to update the record on another table which is not in data block by using this save button? @ that time i want to display message like transaction complete:1 records saved..how to do this?

View 24 Replies
View Related

Forms :: Error — Trigger Raised Unhandled Exception ORA-6508

Jul 8, 2011

I am trying to build one custom 10g form from TEMPLATE.fmb. when i try to compile my form in desktop it is giving error as Error FRM-40735: ON-ERROR trigger raised unhandled exception ORA-6508.

View 1 Replies
View Related

Forms :: FRM-40735 / ON-ERROR Trigger Raised Unhandled Exception

Dec 21, 2010

I am using forms 10g developer suite, AIX in appl server.

When I run the form on my local drive through web I am getting error that,FRM-40735:ON-ERROR trigger raised unhandled exception ORA-06508.

My fmbs & fmxs are in e:fmb, libraries are in d:applicationlib.

FORMS_PATH in Registry is C:DevSuiteHome_1cgenf61admin;C:DevSuiteHome_1forms;e:fmb;d:applicationlib

I have set the same path in default.env also.What should I update, to run the form successfully.

View 3 Replies
View Related

Forms :: ON-ERROR Trigger Raised Unhandled Exception ORA-06508

Jan 18, 2007

I am in process of migrating Oracle 6i Forms to Oracle 10g Forms.

In 6i, the Form compiles and runs without any giving any error.

In 10g it does complie without any error but gives following Runtime Error Message —

FRM-40735: ON-ERROR trigger raised unhandled exception ORA-06508

View 15 Replies
View Related

Forms :: Designing DB Application — Button Trigger?

Mar 23, 2012

i’m designing a DB_application where a user makes certain subject selections depending on what grades they have. so far ive made simple signin form as follows….

Create table Persons(
person_id number(8) constraint pk_Persons primary key,
person_pword varchar2(16) not null;

declare
user_id number(8);
user_pword varchar(16);
alert_button number;
begin

[code]…

now the next step… that SIGNED IN user is taken to a menu with links to select their topics or units. HOWEVER only a PARTICULAR link can be followed depending on what grade they’ve achieved in a NECESSARY UNIT for example to do advanced maths u need beginners maths = PASS. if = fail then user cannot proceed. heres my sql as well as the trigger ive made an attempt at…

Create table Grades(
grade_code number constraint pk_Grades primary key,
grade varchar(4) check (result in (‘fail’,’pass’)),
person_id number,
unit_code number,
CONSTRAINT fk_Persons FOREIGN KEY (person_id) REFERENCES Persons (person_id),

[code]…

i know my second trigger is poorly designed and lacking.

View 14 Replies
View Related

Forms :: WHEN-VALIDATE-ITEM Trigger Raise Unhandled Exception ORA-01422

Sep 15, 2011

I have a form (StaffDetail) with three different blcoks. One of them is an Application Assignment block which consists of nothing but Assignment Type, Staff (Name), Last Updated By and Last Updated Date.. The Assignment Type and Staff has LOVs assigned to them individually.. Assignment type lets me pick all different types except for Project Manager. As soon as I select this option, i get the following error :

FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception…

This does not even let me select any other Assignment type, then i have to go close all sessions and come back into the same screen.

Also, this form was first created and tested on the development environment and later moved to QA environment. All selections work in the development environment.. I checked for the roles in QA for individual Users..

View 2 Replies
View Related

Forms :: Frm-40735 Pre-query Trigger Raised Unhandled Exception Ora-06502

Jun 17, 2013

When i select Filnumber(DEC99) and press QUERY button, i get error»frm-40735 pre-query trigger raised unhandled exception ora-06502″.

View 1 Replies
View Related

Forms :: Ora-04062 When-validate-item-trigger Raise Unhanded Exception?

Oct 15, 2011

I have Written this code in WHEN-VALIDATE-ITEM-TRIGGER on PO_DATE field

if not( :PO_HEADER.PO_DATE IS NOT NULL ) then
:po_header.po_date := trunc(sysdate);
end if;
if trunc(:PO_HEADER.PO_DATE)>trunc(sysdate) then
displayerror.errmsg(‘PO date cannot be future date!’);

[code]…

when i am navigating through po_DATE field in the form its showing the error that

WHEN-VALIDATE-ITEM-TRIGGER raised unhandled exception.

View 2 Replies
View Related

Forms :: FRM-40735 Or Error Trigger Raised Unhandled Exception ORA-03114

Jun 13, 2010

I am using database 10g and Form 6i. We are working under client server technology. Frequently we are receiving the following error to every user at randomly when they are idle few seconds/minutes.

FRM-40735 or error trigger raised unhandled exception ora-03114

View 5 Replies
View Related

Forms :: FRM 40735 Key-next-item Trigger Raised Unhandled Exception ORA 01722

Sep 2, 2011

im updating my program and i got a error message

FRM 40735 key-next-item trigger raised unhandled exception ORA 01722

View 3 Replies
View Related

Forms :: Ora-06511 — Cursor Already Open — Trigger Raised Unhandled Exception

Apr 13, 2012

I getting a error Ora-06511 when-new-item-instance trigger raised unhandled exception.

below is the coding for the trigger when-new-item-instance : where the cursor is open? how to close it?

if :blk_master.action_status = ‘A’ then
declare
doc_slno number;

[Code]…..

View 3 Replies
View Related

Forms :: Frm-40375 / When-validate-item Trigger Raised Unhandled Exception ORA-01403

Mar 6, 2011

frm-40375: when-validate-item trigger raised unhandled exception ORA-01403.

i put a new column which is the birth date and i made a new procedure with regards to the age level for the Plan. and when i run the program, theres an error..

View 14 Replies
View Related

Forms :: Enable A Button — Capture Trigger That Fires On Pressing Exit

May 23, 2011

I have a situation where one form calls another. I am opening the other form(say B) using the below code.

declare
temp_form formmodule;
begin
temp_form := FIND_FORM (‘D:RSSQ2TestingpurposesMODULE3_MULTIPLE’);

[code]…

On Form B there is an Exit button on click of which it closes the Form B and returns to Form A

begin
close_form(‘MODULE3_MULTIPLE’) ;
end;

In my scenario on Exit from FORM B i need to enable a button on FORM A.I am not able to capture the trigger that fires when I Press the Exit

View 7 Replies
View Related

SQL & PL/SQL :: Exception At Update Trigger

Aug 14, 2012

I am writing a trigger TR_EMP on a table EMP which has columns EMP_ID, EMP_NAME, ALT_EMP_ID.

Now I am updating ALT_EMP_ID for an EMP_ID(PK) which is unique.

If ALT_EMP_ID is null
then
:new.ALT_EMP_ID = l_alt_emp_id;
end if;

As this ALT_EMP_ID is unique, same ID shouldn’t be inserted again here. When data being inserted with 2 different sessions for 2 different EMP_ID there is a possible chance of inserting same ALT_EMP_ID for both which results in Unique error. I need to handle this exception. DUP_VAL_ON_INDEX or OTHERS Execption not able to handle this.

View 4 Replies
View Related

SQL & PL/SQL :: Trigger Raised Unhandled Exception

Apr 27, 2013

I created my login as you have first to fill the form then login, unfortunately i am getting when i press the button as error frm-40735: when-button-pressed trigger raised unhandled exception ora-04063.

these are the code after fill the form

declare
sex varchar2(10);
emid varchar2(30);
begin
if :signup.gender = 1 then
sex := ‘Male’;
elsif :signup.gender =2 then
sex := ‘Female’;
[code]……..

View 10 Replies
View Related

Понравилась статья? Поделить с друзьями:
  • Ошибка ora 28040
  • Ошибка ora 28001
  • Ошибка ora 2000
  • Ошибка ora 12899
  • Ошибка ora 12705