Home » SQL & PL/SQL » SQL & PL/SQL » How to define Package Name in Reports Builder / REP-0069 (Reports Builder)
How to define Package Name in Reports Builder / REP-0069 [message #630472] Mon, 29 December 2014 02:21 Go to next message
isteri143
Messages: 11
Registered: December 2014
Location: World wide web
Junior Member
Hi,

I am Naveen,I am New to Reports Builder, I got the error for this.Please help me to resolve this issue in Production Environment.

Complete with numeric stackflow error.


[MERGED by LF]
  • Attachment: Error.png
    (Size: 20.57KB, Downloaded 622 times)

[Updated on: Wed, 31 December 2014 00:40] by Moderator

Report message to a moderator

Re: How to define Package Name in Reports Builder [message #630473 is a reply to message #630472] Mon, 29 December 2014 02:25 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Cause: You tried to evaluate an expression that resulted in a numeric overflow (or underflow).

Resolution: The option(s) to resolve this Oracle error are:
Option #1: Re-write your expression using fewer operands.

Option #2: Make sure that your expression does not evaluate to infinity.
Re: How to define Package Name in Reports Builder [message #630474 is a reply to message #630473] Mon, 29 December 2014 02:33 Go to previous messageGo to next message
isteri143
Messages: 11
Registered: December 2014
Location: World wide web
Junior Member
Hi LittileFoot,



1) How to Re-Write expression.My Code is like this ,please guide me for this, I am New to Reports Builder actually.
function AfterPForm return boolean is
led varchar2(4);
/*cursor a is
select ledger_id from gl_ledgers where name=:led_des;*/
begin
	  /*for rec in a loop
  	led:=rec.ledger_id;
  end loop;  
  close a;*/
  IF :LED_DES = 'MBB PRIMARY LEDGER' THEN
  	LED:= '2021' ;
  ELSE  	 
  	LED:='2023';
  END IF;
  
	/*DELETE FROM XXMBB_NOSVOS_TMP_VO_NO WHERE EFFECTIVE_DATE BETWEEN 
	'01'
    || '-'
    || TO_CHAR(to_date(:N_Date,'DD-MM-YY'),'MON-YY')
  AND to_date(:N_Date,'DD-MM-YY')
  AND LEDGER_ID =  LED and name_rdf='NOSVOS';  
	COMMIT;
	DELETE FROM XXMBB_NOSVOS_BAL_TMP_VO_NO WHERE 
	PERIOD_NAME = TO_CHAR(add_months(to_date(:N_Date,'DD-MM-YY'),-1),'MON-YY')
	and ledger_id = LED and name_rdf='NOSVOS';
	COMMIT;*/
	
	--/* sumathi commented on 19-12-2014-- temp
	SRW.DO_SQL('TRUNCATE TABLE XXMBB_NOSVOS_TMP_VO_NO');
	SRW.DO_SQL('TRUNCATE TABLE XXMBB_NOSVOS_BAL_TMP_VO_NO');
	-- */

	
  insert /*+ APPEND */ into XXMBB_NOSVOS_TMP_VO_NO
   SELECT code_combination_id,
    (accounted_dr) AS accounted_dr,
    (accounted_cr) AS accounted_cr,
    EFFECTIVE_DATE AS EFFECTIVE_DATE,
    LEDGER_ID LEDGER_ID,
    'NOSVOS'
  FROM gl_je_lines
  WHERE LEDGER_ID = LED
  AND effective_date BETWEEN '01'
    || '-'
    || TO_CHAR(to_date(:N_Date,'DD-MM-YY'),'MON-YY')
  AND to_date(:N_Date,'DD-MM-YY')
  AND status ='P'
  ;     
  commit;
  insert /*+ APPEND */  into XXMBB_NOSVOS_BAL_TMP_VO_NO
	select 
	code_combination_id
	,begin_balance_dr
	,begin_balance_cr
	,period_net_dr
	,period_net_cr
	,period_name
	,ledger_id
	,'NOSVOS'
	from gl_balances
	where
	period_name = TO_CHAR(add_months(to_date(:N_Date,'DD-MM-YY'),-1),'MON-YY')
	AND ledger_id = LED
	and currency_code = 'MYR'
	and actual_flag = 'A';
	COMMIT;
  return (TRUE);
end;

: Re-write your expression using fewer operands.

Option #2: Make sure that your expression does not evaluate to infinity.

[EDITED by LF: applied [code] tags]

[Updated on: Mon, 29 December 2014 03:45] by Moderator

Report message to a moderator

Re: How to define Package Name in Reports Builder [message #630477 is a reply to message #630474] Mon, 29 December 2014 02:44 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Your error has nothing to do with Reports Builder. It would fail anywhere.

As you posted unformatted code, it is difficult to read (have a look here, it'll show you how to do it). Moreover, it contains a lot of commented code; please, remove it as it is - obviously - irrelevant.

In order to debug it, run that code in SQL*Plus - it'll tell you which command raised the error - then fix it.
Re: How to define Package Name in Reports Builder [message #630482 is a reply to message #630477] Mon, 29 December 2014 03:41 Go to previous messageGo to next message
isteri143
Messages: 11
Registered: December 2014
Location: World wide web
Junior Member
Hi Foot,

Still The error says like this i have changed the Expression.
REP-1425:'afterform':Error Running DO_SQL Package,'Error Parsing the SQL Statement.
ORA-01426: numeric overflow

Thanks
Naveen
Re: How to define Package Name in Reports Builder [message #630483 is a reply to message #630482] Mon, 29 December 2014 03:48 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
It appears that TRUNCATE results in ORA-01426. Which database version do you use? Does this help? The author says that applying a patch to the database resolves the bug. If you can't/won't do that, there's a workaround.
Re: How to define Package Name in Reports Builder [message #630529 is a reply to message #630483] Mon, 29 December 2014 19:02 Go to previous messageGo to next message
isteri143
Messages: 11
Registered: December 2014
Location: World wide web
Junior Member
Hi Foot,

I am using the Database is Oracle SQL Developer, here the Requirement is like Before insert the values in Database I need to remove the Database table and insert new values. Here i have provided the code below.Please suggest me to resolve this issue. I am new to Reports Builder ,Please assist me Step by Step.Which one is suggested to impliment for this issue.

-----------------------------------------------------------------------------

DELETE FROM XXMBB_NOSVOS_TMP_VO_NO WHERE EFFECTIVE_DATE BETWEEN
'01'
|| '-'
|| TO_CHAR(to_date(:N_Date,'DD-MM-YY'),'MON-YY')
AND to_date(:N_Date,'DD-MM-YY')
AND LEDGER_ID = LED and name_rdf='NOSVOS';
COMMIT;
DELETE FROM XXMBB_NOSVOS_BAL_TMP_VO_NO WHERE
PERIOD_NAME = TO_CHAR(add_months(to_date(:N_Date,'DD-MM-YY'),-1),'MON-YY')
and ledger_id = LED and name_rdf='NOSVOS';
COMMIT;

----------------------------------------------------------------------------------------

SRW.DO_SQL('TRUNCATE TABLE XXMBB_NOSVOS_TMP_VO_NO');
SRW.DO_SQL('TRUNCATE TABLE XXMBB_NOSVOS_BAL_TMP_VO_NO');



When I am Using Delete the following error is came.
REP-0069: Internal Error
REP-57054: In-Process job terminated:Executed successfully but there were some errors when distribute the output.
REP-50159: Executed successfully but there were some errors when distribute the output.

When I am Using Truncate the following error is came.
REP-1425:'afterform':Error Running DO_SQL Package,'Error Parsing the SQL Statement.
ORA-01426: numeric overflow

Please suggest me for this issue.

Thanks
Naveen

[Updated on: Mon, 29 December 2014 20:06]

Report message to a moderator

Re: How to define Package Name in Reports Builder [message #630537 is a reply to message #630529] Tue, 30 December 2014 00:15 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Create a stored procedure which will do DELETE or TRUNCATE (try both; why not?) and then call that procedure from the After Parameter Form trigger. See what happens.
REP-0069 : Internal Error,REP-57054: In process Job Terminated [message #630595 is a reply to message #630472] Wed, 31 December 2014 00:18 Go to previous messageGo to next message
isteri143
Messages: 11
Registered: December 2014
Location: World wide web
Junior Member
Hi All,


How to resolve this issue in Production Environment.


REP-0069: Internal Error.
REP-57054: In-process job terminated:Executed successfully but there were some errors when distribute the Output
REP-50159: Executed successfully but there were some errors when distribute the output.

Thanks
Isteri
Re: REP-0069 : Internal Error,REP-57054: In process Job Terminated [message #630598 is a reply to message #630595] Wed, 31 December 2014 00:34 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Who knows? You didn't say what you did, which Reports version you use on which operating system.
Re: REP-0069 : Internal Error,REP-57054: In process Job Terminated [message #630599 is a reply to message #630598] Wed, 31 December 2014 00:38 Go to previous messageGo to next message
isteri143
Messages: 11
Registered: December 2014
Location: World wide web
Junior Member
Hi Foot,

I am using Reports Builder I need to Delete the Table data and Insert the values but when i was trying to compile the code its getting that kind of error. Please assist me to resolve the issue.

069: Internal Error.
REP-57054: In-process job terminated:Executed successfully but there were some errors when distribute the Output
REP-50159: Executed successfully but there were some errors when distribute the output.

Thanks
Isteri
Re: REP-0069 : Internal Error,REP-57054: In process Job Terminated [message #630600 is a reply to message #630599] Wed, 31 December 2014 00:42 Go to previous message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Ah, we are continuing the old discussion; didn't realize that earlier. I've merged these two topics. Next time, please, don't open a new one, just post a new message in the old topic.




I bet you didn't do what I suggested previously, did you? Create a stored procedure which will do the job? How about doing it now?
Previous Topic: deadlock detected while waiting for resource
Next Topic: SQL*Net message from db link Doubt
Goto Forum:
  


Current Time: Fri Apr 26 06:14:59 CDT 2024