FRM-40735: POST-QUERY trigger raised unhandled exception ORA-01403 [message #186524] |
Tue, 08 August 2006 05:52  |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
Sir I use this code in post query event
:partyname :='';
:CHQBANK :='';
:repchq:='';
:chqdate:=null;
:chqbank:='';
:PARTYNAME :='';
select YEARID,TITLE,STDATE,CLDATE,CLOSINGSTATUS into :yearid,:yeartitle,:ysdate,:yedate,:YSTATUS from yeartable where stdate<=:entdate and cldate>=:entdate;
if :partyid is not null then
select title into :PARTYNAME from partytable where partyid=:partyid;
end if;
:repchq :=substr(:cheqno,10,8);
if :CHEQNO is not null then
SELECT nvl(CHARTOFACC.title,' ') INTO :chqbank FROM CHEQMASTER,CHEQDETAIL,CHARTOFACC WHERE CHEQDETAIL.serialid=CHEQMASTER.serialid AND CHEQMASTER.accid=CHARTOFACC.accid and CHEQDETAIL.CHEQNO=:CHEQNO;
end if;
sir when :CHEQNO not null system give me right result but when :CHEQNO is null then system give me this error
FRM-40735: POST-QUERY trigger raised unhandled exception ORA-01403
If I revome this code
if :CHEQNO is not null then
SELECT nvl(CHARTOFACC.title,' ') INTO :chqbank FROM CHEQMASTER,CHEQDETAIL,CHARTOFACC WHERE CHEQDETAIL.serialid=CHEQMASTER.serialid AND CHEQMASTER.accid=CHARTOFACC.accid and CHEQDETAIL.CHEQNO=:CHEQNO;
end if;
then system run right
please give me idea how I solve this error
thank
aamir
|
|
|
Re: FRM-40735: POST-QUERY trigger raised unhandled exception ORA-01403 [message #186555 is a reply to message #186524] |
Tue, 08 August 2006 08:27   |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
mfa786 wrote on Tue, 08 August 2006 06:52 |
SELECT nvl(CHARTOFACC.title,' ') INTO :chqbank FROM CHEQMASTER,CHEQDETAIL,CHARTOFACC WHERE CHEQDETAIL.serialid=CHEQMASTER.serialid AND CHEQMASTER.accid=CHARTOFACC.accid and CHEQDETAIL.CHEQNO=:CHEQNO;
sir when :CHEQNO not null system give me right result but when :CHEQNO is null then system give me this error
FRM-40735: POST-QUERY trigger raised unhandled exception ORA-01403
|
Padwan:
Without using exception handling, this is the expected result.
|
|
|
|
|
|