Home » Developer & Programmer » Forms » ORA-1403 Err For Multiple time
ORA-1403 Err For Multiple time [message #166866] Mon, 10 April 2006 01:42 Go to next message
keyurna
Messages: 5
Registered: April 2006
Location: pune
Junior Member
Hi all,

I have Master-Detail form. The problem is that I have filled the all req. fields of Master table. And at detail i have 6 not null constraint columns where i have check for all null in when-validate-item. In that i have filled only 1st item and tring to save the record. The when validate item trigger of each itemof detail block shows the ORA-01403(NO DATA FOUND) error 6 times. SO how to break the loop and show the message once.

Hope so u can understand my english.
please guide me.
keyur.

Re: ORA-1403 Err For Multiple time [message #166886 is a reply to message #166866] Mon, 10 April 2006 02:54 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please post the code that you have in your WVI trigger. I think you need to have a 'raise form_trigger_failure' in your trigger.

David
Re: ORA-1403 Err For Multiple time [message #166906 is a reply to message #166886] Mon, 10 April 2006 03:52 Go to previous messageGo to next message
keyurna
Messages: 5
Registered: April 2006
Location: pune
Junior Member
Hi there!!
The below code for WVI on Action Req field in same type i have written the trigger for rest of not null field.
declare
	al_id Alert := null;
	al_button number := null;	
begin
	  if :maint_wo_dtl.wo_action_req  is null then
		al_id := Find_Alert('CAUTION');
		set_alert_property(al_id,alert_message_text,'The Action Required can not be blank.');
		al_button := Show_Alert(al_id);
		raise form_trigger_failure;
 	end if;
Exception
	when no_data_found then
	:maint_wo_dtl.wo_action_req := 'DONE';
  when others then
  message('Code--' ||dbms_error_code || 'text -- '||dbms_error_text);
  message('Code--' ||dbms_error_code || 'text -- '||dbms_error_text);
  raise;
end;

Keyur

[Updated on: Mon, 10 April 2006 21:23] by Moderator

Report message to a moderator

Re: ORA-1403 Err For Multiple time [message #167029 is a reply to message #166906] Mon, 10 April 2006 22:55 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Do you really need the 'no_data_found' exception? Try running your form without them.

David
Re: ORA-1403 Err For Multiple time [message #167039 is a reply to message #167029] Mon, 10 April 2006 23:53 Go to previous messageGo to next message
keyurna
Messages: 5
Registered: April 2006
Location: pune
Junior Member
Dear David,
I have not used the 'No-DATA-FOUND' Exception first. But as i have seen error ORA-01403 then i have userd.
Re: ORA-1403 Err For Multiple time [message #167045 is a reply to message #167039] Tue, 11 April 2006 00:10 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Try this code and tell me what messages are displayed please.
declare
   al_id       Alert          := null;
   al_button   number         := null;
   l_msg       varchar2 (100) := 'maint_wo_dtl.wo_action_req WVI - ';
begin
   message (l_msg || 'start');
   pause;

   if :maint_wo_dtl.wo_action_req is null then
      message (l_msg || 'in IF');
      pause;
      al_id      := Find_Alert ('CAUTION');
      message (l_msg || 'alert found');
      pause;
      set_alert_property (al_id, alert_message_text, 'The Action Required can not be blank.');
      message (l_msg || 'alert message set');
      pause;
      al_button  := Show_Alert (al_id);
      message (l_msg || 'after alert');
      pause;
      raise form_trigger_failure;
      message (l_msg || 'should not see this one');
      pause;
   end if;

   message (l_msg || 'end');
   pause;
exception
   when others then
      message (l_msg || 'others - ' || dbms_error_code || ':' || dbms_error_text);
      pause;
      raise form_trigger_failure;
end;
David
Re: ORA-1403 Err For Multiple time [message #167090 is a reply to message #167045] Tue, 11 April 2006 05:11 Go to previous messageGo to next message
keyurna
Messages: 5
Registered: April 2006
Location: pune
Junior Member
dear sir,
I have tried as u told me that gives me error code = -1403 and error text as 'ORA-1403 no data found'.

Please guide me this type of error i have found at first time in my two years + exp.

keyur.
Re: ORA-1403 Err For Multiple time [message #167208 is a reply to message #167090] Tue, 11 April 2006 19:54 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I said:
Quote:

Try this code and tell me what messages are displayed please.
What messages were displayed, and in the order in which they were displayed please.

David
Previous Topic: Please guide me installing oracle forms10g and oracle9i.
Next Topic: FORMS 10 MENU
Goto Forum:
  


Current Time: Fri Sep 20 06:54:13 CDT 2024