ORA-1403 Err For Multiple time [message #166866] |
Mon, 10 April 2006 01:42 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
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 #166906 is a reply to message #166886] |
Mon, 10 April 2006 03:52 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
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 #167090 is a reply to message #167045] |
Tue, 11 April 2006 05:11 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
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 Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/67467.jpg) |
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
|
|
|