Iam getting the error REP-1401: '': Fatal PL/SQL error occurred. when i
When i run the report to generate xml file in report builder the following error messages are displayed.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1401: '': Fatal PL/SQL error occurred.
pls help me.Its urgent
Regards,
Kranthi
Hi;
What is EBS version? Is it custom report or not?
See below which is mention similar errors
Autoinvoice Error: ORA-1403: no data found [ID 1209403.1]
APXIIMPT - Payable Open Interface Import Fails on "REP-1401: 'cf_source_nameformula': Fatal PL/SQL error occurred. ORA-01403: no data found" [ID 222058.1]
Regard
Helios
Similar Messages
-
REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found
Hi guys,
I am getting error 'REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found ' when run the report
and i m also use formula column in my report.
can any body help me why it's coming.
following code is used in formula column plz check and verify:
function CF_3Formula return Char is
T1 VARCHAR2(100);
begin
SELECT
VAT_REG_NO INTO T1
FROM
JA_IN_HR_ORGANIZATION_UNITS JIHOU,
HR_LOCATIONS HL--,
--MTL_TXN_REQUEST_HEADERS MTLH
WHERE
JIHOU.ORGANIZATION_ID=HL.INVENTORY_ORGANIZATION_ID AND
JIHOU.LOCATION_ID=HL.LOCATION_ID AND
--Jihou.ORGANIZATION_ID = Mtlh.Organization_Id AND
-- Hl.INVENTORY_ORGANIZATION_ID =Mtlh.Organization_Id AND
-- MTLH.ATTRIBUTE10=SUBSTR(HL.LOCATION_CODE,1,3) AND
SUBSTR(HL.LOCATION_CODE,1,3)= :TO_ORG1 ;
RETURN (T1);
end;
plz help me out.Hi;
What is EBS version? Is it custom report or not?
See below which is mention similar errors
Autoinvoice Error: ORA-1403: no data found [ID 1209403.1]
APXIIMPT - Payable Open Interface Import Fails on "REP-1401: 'cf_source_nameformula': Fatal PL/SQL error occurred. ORA-01403: no data found" [ID 222058.1]
Regard
Helios -
REP-1401 Fatal PL/SQL error occur ORA-06502 numeric or value error
Hi,
I am getting following error in reports 6i
REP-1401 Fatal PL/SQL error occur ORA-06502 numeric or value error.
I have added a formula column based on other formula column
function CF_1FORMULA0005 return varchar2 is
CF_CREDIT varchar2(38);
begin
:CF_CREDIT:= :D_CARRY_F_CR+:D_HD_SUM_REP_CR;
RETURN (:CF_CREDIT);
end;
Oracle Standard formula coulmn:
function D_CARRY_F_DRFormula return VARCHAR2 is
l_dr VARCHAR2(38);
l_dr_disp VARCHAR2(38);
begin
SRW.REFERENCE(:C_FUNC_CURRENCY);
SRW.REFERENCE(:C_CARRY_F_DR);
if (:C_CARRY_F_DR = 0) THEN
ax_globe_package.g_dr_cf := TRUE;
--l_dr:= '0.00';
l_dr_disp := '0.00';
l_dr := ax_currency_pkg.display_char(:C_FUNC_CURRENCY,l_dr_disp,38);
else
-- return(ax_currency_pkg.display_char(:C_FUNC_CURRENCY,:C_CARRY_F_DR,ax_page_pkg.f_maxlength));
-- Bug2239881. Setting the carried forward totals.
IF (:P_GLOBAL_ATTR_CAT = 'JE.GR.GLXSTBKS.BOOKS' AND ax_globe_package.g_dr_cf = FALSE) THEN
ax_globe_package.g_dr_cf := TRUE;
ax_globe_package.g_dr_total := :C_CARRY_F_DR;
END IF;
srw.message(999,'G_DR_TOTAL = ' || ax_globe_package.g_dr_total );
l_dr := ax_currency_pkg.display_char(:C_FUNC_CURRENCY,to_char(ax_globe_package.g_dr_total),38);
/*select to_number(l_dr, '999G999G999G999G990D00')
into l_dr_disp
from dual;
end if;
srw.message(999,'l_dr = ' || l_dr );
return l_dr;
--return ltrim(to_char(l_dr_disp,'999G999G999G999G990D00','nls_numeric_characters=,.'));
end;
both formula column return types are character.Please help me ASAP.
Thanks,
sriharsha.Hi,
First of all: when you should use concatenation operator (||) instead of plus sign when working with strings. So, instead of
:CF_CREDIT:= :D_CARRY_F_CR+:D_HD_SUM_REP_CR; you should use
:CF_CREDIT:= :D_CARRY_F_CR||:D_HD_SUM_REP_CR; If :D_CARRY_F_CR and :D_HD_SUM_REP_CR are both numbers then consider to use to_char function before you assign value to :CF_CREDIT.
I wonder, why your CF's returns varchar's if they operates on numbers?
regards
kikolus
Edited by: kikolus on 2012-11-30 08:03 -
REP -1401 Fatal PL/SQL error occurred.
Hi All,
In my rdf report i have a formula column with the following code in it..
function CF_PO_NumberFormula return Char is
cursor cur_pending_po
is
select distinct pll.po_header_id
from
PO_LINE_LOCATIONS_ALL pll,
po_lines_all pla
where 1=1
and pll.po_line_id=pla.po_line_id
and pll.org_id=pla.org_id
and pll.org_id=5050
and pla.item_id=:inventory_item_id
and (pll.quantity-pll.quantity_received)>0
AND EXISTS(SELECT 1 FROM PO_HEADERS_ALL PHA
WHERE PLL.PO_HEADER_ID=PHA.PO_HEADER_ID
AND PHA.APPROVED_FLAG='Y'
AND PHA.CLOSED_CODE IS NULL)
order by pll.po_header_id;
po_num varchar2(4000);
begin
po_num:=null;
for rec_cur_pending_po in cur_pending_po
loop
select segment1||','||po_num into po_num
from
po_headers_all
where 1=1
and po_header_id=rec_cur_pending_po.po_header_id;
end loop;
return rtrim(po_num,',');
exception
when others then
po_num :=null ;
return po_num;
end;
when i am running the report, it is getting errored out..following is the log file message...
Arguments
P_ORGANIZATION_ID='5100'
P_FROM_DATE='2009/08/31 13:30:00'
P_TO_DATE='2009/09/02 13:30:00'
APPLLCSP Environment Variable set to :
XML_REPORTS_XENVIRONMENT is :
/app/oapps/11.5.5/opm7ora2/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to: /app/oapps/11.5.5/opm7ora2/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
AMERICAN_AMERICA.UTF8
REP-1401: 'cf_po_numberformula': Fatal PL/SQL error occurred.
Report Builder: Release 6.0.8.27.0 - Production on Thu Sep 10 11:38:18 2009
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter Username:
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 25343374.
Review your concurrent request log and/or report output file for more detailed information.
Can Anyone help me on this..I would suggest the best place to start is with some diagnostics - first of all in the exception handler. Try
SRW.MESSAGE(999,'PO number formula failed - '||sqlerrm);
This will give you more information as to the exact error which occurred.
Also, I hope you have tested the query separately before putting it in the report! - may be an obvious one, but it is possible that you may have a data size problem on the po_num variable. Do you know how many rows the cursor will return?
This should give you somewhere to start.
Edited by: mike_p on Sep 11, 2009 2:09 PM
Edited by: mike_p on Sep 11, 2009 2:10 PM -
Rep-1401 : Fatal PL/SQL error occured
Hi,
I am using report builder 6.0 and recently came across a error while running the report. Rep-1401:<formula name> : Fatal Pl/SQL error occured.
I created a formula column in the report. In that i have three local variable.
f_val number := 0;
s_val number := 0;
t_val number := 0;
t_val := f_val/s_val ; --> this gives the above fatal error.
t_val := (f_val + 1)/s_val; --> this gives the above fatal error
t_val := f_val/(s_val + 1); ---> no error
if i change the value of s_val
s_val := 1;
t_val := f_val/(s_val - 1) ; ----> this gives the above fatal error.
Can anyone help me to solve this problem or is it report builder bug.
Please help me, as i desperately need help.
ThanksThe best way to handle this is to just add an exception handler that handles a zero divide.
EX:
function...blah
var3:=var/var2...
EXCEPTION
when zero_divide then
var3:= 0;Zero Divide is a built-in exception to handle cases just like this - so if you run into it, you can set it to whatever you want -
REP-1401: FATAL PL/SQL ERROR OCCUARED
I make below in function in report builder,give me fatal pl/sql error
i can`t handle it please any tips
function CF_PERF_COMENTFormula return Number is
V_VALUE_COMMENT_EMP VARCHAR2(2000);
V_VALUE_PERF_ID_EMP NUMBER(15);
V_VALUE_PERF_NAME_EMP VARCHAR2(80);
V_VALUE_COMMENT VARCHAR2(2000);
V_VALUE_PERF_ID NUMBER(15);
V_VALUE_PERF_NAME VARCHAR2(80);
begin
V_VALUE_COMMENT_EMP := 'N/A';
V_VALUE_PERF_ID_EMP := 1001;
V_VALUE_PERF_NAME_EMP := 'N/A';
V_VALUE_COMMENT := 'N/A';
V_VALUE_PERF_ID := 2002;
V_VALUE_PERF_NAME := 'N/A';
IF :PERSON_ID_C = :OWNING_PERSON THEN
SELECT pp1.comments,
pp1.performance_level_id
INTO
V_VALUE_COMMENT_EMP,
V_VALUE_PERF_ID_EMP
FROM per_performance_ratings pp1, per_objectives po
WHERE po.objective_id = :objective_id
AND pp1.objective_id = po.objective_id
AND PP1.PERSON_ID = :PERSON_ID_C
AND pp1.person_id != -1;
SELECT NVL(NAME,'N/A')
INTO
V_VALUE_PERF_NAME_EMP
FROM PER_RATING_LEVELS
WHERE
RATING_LEVEL_ID = V_VALUE_PERF_ID_EMP;
:CP_VALUE_COMMENT_EMP := V_VALUE_COMMENT_EMP;
:CP_VALUE_PERF_NAME_EMP := V_VALUE_PERF_NAME_EMP;
ELSE
SELECT NVL(pp1.comments,'N/A'),
NVL(pp1.performance_level_id,'1002')
INTO
V_VALUE_COMMENT,
V_VALUE_PERF_ID
FROM per_performance_ratings pp1, per_objectives po
WHERE po.objective_id = :objective_id
AND pp1.objective_id = po.objective_id
AND PP1.PERSON_ID != :PERSON_ID_C
AND pp1.person_id != -1;
SELECT NVL(NAME,'N/A')
INTO
V_VALUE_PERF_NAME
FROM PER_RATING_LEVELS
WHERE
RATING_LEVEL_ID = V_VALUE_PERF_ID;
:CP_VALUE_COMMENT := V_VALUE_COMMENT;
:CP_VALUE_PERF_NAME := V_VALUE_PERF_NAME;
END IF;
RETURN 0;
end;Did you try whatever i suggested? What happened? Because sometimes it is behaving like this in my report builder then i just close the report builder and reopening it. It will work.
-
REP-1401, FATAL PL/SQL ERROR ....
HI,
I am trying to open a text file in oracle reports in one of the fomula column and it gives me the REP-1401 error. The syntax is as below. Is there any idea why its behaving so ? "UPC_Folder" and "UPCFile" are the two user parameters, that I am passing correctly. I mean valid folder and file name. But still I am getting error. Please help
function CF_1Formula return Char is
Upc_File Text_Io.File_Type;
UpcFiles Varchar2(500);
Begin
UPCFILES := CHR(39)||:UPC_Folder||'\'||:UpcFile||CHR(39);
Upc_File := TEXT_IO.FOPEN(UPCFILES,'R');
return('Done');
End;Hi Feroz,
A typical problem is that you are opening the file multiple times without closing it. If your formula is executed multiple times, then the second FOPEN without a FCLOSE will cause this error. This would happen if your formula is inside a query group. If you add some logic to only open the file once, or else if you close it each time it is called (not very efficient, but it works), then the error should go away.
regards,
Stewart -
Rep: Fatal pl/sql error Occured
Hi All
I have created one formula display chassis number based on Process(line_code).
When compile time its no error , but if i have pass parameter running time its generate the report error
Rep-0069: Internal error
Rep-57054 : In-Process job terminate
Rep-1401 : " Fatal Pl/SQL error occurred.
Below i have posted my Formula column what i written
function CF_Chassis_numFormula return varChar2 is
l_chassis_num varchar2(300);
begin
if :line_code like 'CHASSIS%' then
select chassis_num into l_chassis_num from xxtc_chassis_dtls_v where CHS_SCH_NUM = :schedule_number;
elsif :line_code like 'SPOT%' then
BEgin
select chassis_num into l_chassis_num from xxtc_chassis_dtls_v where to_char(SPT_SCH_NUM) = to_char(:schedule_number);
Exception
when others then
Return null;
end;
elsif :line_code like 'METAL%' then
select chassis_num into l_chassis_num from xxtc_chassis_dtls_v where MTL_SCH_NUM = :schedule_number;
elsif :line_code like 'TRIM%' then
select chassis_num into l_chassis_num from xxtc_chassis_dtls_v where TRM_SCH_NUM = :schedule_number;
elsif :line_code like 'PAINT%' then
select chassis_num into l_chassis_num from xxtc_chassis_dtls_v where PNT_SCH_NUM = to_char(:schedule_number);
elsif :line_code like 'FREC%' then
select chassis_num into l_chassis_num from xxtc_chassis_dtls_v where FREC_SCH_NUM = :schedule_number;
elsif :line_code like 'N100%' then
select chassis_num into l_chassis_num from xxtc_chassis_dtls_v where N101_SCH_NUM = :schedule_number;
elsif :line_code like 'PDIC%' then
Begin
select chassis_num into l_chassis_num from xxtc_chassis_dtls_v where to_char(PDIC_SCH_NUM) = to_char(:schedule_number);
Exception
when others then
Return null;
end;
else
l_chassis_num :='';
end if;
return l_chassis_num;
end;
Can please help to fix that bug
Regards
Sanjay
Edited by: 993525 on May 30, 2013 9:32 AMPlease post the details of the application release, database version and OS.
Please enable trace/debug and see if you get more details about the error.
Thanks,
Hussein -
REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal.
Hi,
I am running the report Journals - General (132 char)- file name GLRGNJ.rdf from
Oracle Report Builder 6.0.8.11.3.
I have commented all the (srw.user_exit) in the Before Report trigger but i still
get the message:
REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal,
successful completion.
Can anyone suggest a solution please?
Thanks,
FarisDear sir, i am created one formula column in Reports6i and the following error has come. Could u please find out a solution. Thanks in advance.
my function is below
function CF_Branch_NameFormula return Char is
lc_branch_name varchar2(100);
begin
SELECT rtrim(substr(FVT.DESCRIPTION
,instr(FVT.DESCRIPTION,'-',1)+1
,100)) INTO lc_branch_name
FROM FND_FLEX_VALUES FFV, FND_FLEX_VALUES_TL FVT
WHERE FFV.flex_value_Set_id = 1007956
AND FFV.FLEX_VALUE_ID = FVT.FLEX_VALUE_ID
AND FFV.FLEX_VALUE = FVT.FLEX_VALUE_MEANING
AND FVT.DESCRIPTION <> 'xxx'
and rownum<=1
AND SUBSTR(FVT.FLEX_VALUE_MEANING,3,2) = :P_BRANCH;
return (lc_branch_name);
end; -
dear sirs,
when i run the report i got this error rep_1401 cf_2formula fatal pl/sql error occurred
known that after i trace i find that the error come because report not see the value inside the paramater :budg_type
the code is here
function CF_2Formula return Number is
cursor c1 is SELECT
to_char(A.DUE_DATE,'mm') ,
SUM(nvl (b.EST_CRAFT,0)) man,
SUM(nvl (b.EST_TOOL,0)) tol,
SUM(nvl (b.EST_SUPPLY,0)) con,
SUM(nvl (b.EST_SPARES,0)) mat,
SUM(nvl (b.EST_MISC,0)) misc
FROM PLANNING_SIMULATION A ,maintenance_plans b
WHERE A.EQUIPMENT_ID = B.equip_EQUIPMENT_ID(+)
AND A.MAINTENANCE_WORK_ID = B.mw_MAINTENANCE_WORK_ID(+)
AND to_number(to_char(a.due_date,'yyyy')) =:YEAR
and A.EQUIPMENT_ID IN (SELECT EQUIPMENT_ID FROM EQUIPMENT WHERE
COSTCENTER_COST_CENTER_ID = :COST_CENTER)
and to_char(A.DUE_DATE,'mm') = :mon
group by to_char(A.DUE_DATE,'mm');
rec c1%rowtype;
total number(10,3);
begin
open c1;
fetch c1 into rec;
close c1;
total := nvl(rec.mat,0)+nvl(rec.con,0)+nvl(rec.man,0)+nvl(rec.tol,0)+nvl(rec.misc,0);
--if :cf_budg_type = 'material' then
if :budg_type = 'material' then
total := rec.mat;
return(total);
elsif :budg_type = 'contract' then
total := rec.con;
return(total);
elsif :budg_type = 'manpower' then
total := rec.man;
return(total);
elsif :budg_type = 'tool' then
total := rec.tol;
return(total);
elsif :budg_type = 'misc.' then
total := rec.misc;
return(total);
elsif :budg_type = 'totals' then
return(total);
end if;
end;
when i make hash for the if statement it work without problem, please advice me how to solve this and why if statement not feel what inside the paramter even i try to print the contents of paramater and it was ok
help me pls
YasserI think the problem is that
to_number(interface_header_attribute1)fails when there are non numeric values in interface_header_attribute1.
You could write a stored function in the database for converting char-values to number-values.
These function should catch the conversion errors and return an appropriate default (or null).
You then could use your own function instead of buildin to_number-function.
Edited by: hm on 05.09.2011 01:25 -
Rep-1401: 'beforereport': Fatal PL/SQL error occured
Hi all
I am working in Oracle reports 6i.
in my report i hav two program units.
iam calling them in before report trigger. Then iam getting the following error
rep-1401: 'beforereport': Fatal PL/SQL error occured
ORA-03120: two-task conversion routin: integer overflow
and if i call any one of them they are working fine.
whenever i call two of them at a time iam getting above error.
can anybody help me.....in the before report trigger check the code where u r assigning value to a variable...like fetching cursor into some variable......or assigning to any variable and there the variable must be smaller than the value being assigned to it....
-
Hi Team,
I am running one conc programme.
After running I am getting below error. I checked the issue on metalink and other, seems that it is an size related issue. I have increased the size of formula columns and placeholdder too.
But still getting issue.
My requirement is to get comma seperated values using SQL query itself. Neither i wanted to create layout of the report , since it is a XML publisher report and nor I am including it on RTF template.
I want the CF_10 formula column to be populated with comma seperated values.
MSG-00187: From Date 01-Sep-2014
REP-1401: 'cf_10formula': Fatal PL/SQL error occurred.
ORA-06502: PL/SQL: numeric or value error
And Here is my code for CF_10
function CF_10Formula return Number is
begin
SELECT NVL(TO_CHAR(sum(Amount),'99,99,99,999'),0) into :CP_5 --NVL(ROUND(sum(Amount)),0) into :CP_5
-- xxhw_Coll_cat(category) "Intercat Catg"
FROM hhxw_Region_col_v
WHERE Category IN ('Intercompany - CATV')
AND trunc(gl_date) BETWEEN TO_DATE(:P_FROM_DATE, 'DD/MM/RRRR') AND TO_DATE(:P_TO_DATE, 'DD/MM/RRRR');
RETURN ROUND(:CP_5);
end;
Anyone please suggest me.
Regards,
SachinHi,
1)Why are you selecting the value into a report item? Select into a local variable and return that
RETURN :CP_5 --> This one!!
2)And you should avoid applying functions to DB columns in where clauses wherever possible, so oracle can use indexes on them if applicable:
AND gl_date >= To_date(:P_FROM_DATE, 'DD/MM/RRRR')
AND gl_date < To_date( :P_TO_DATE, 'DD/MM/RRRR') + 1;
I think you are taking 2 column in the Layout CF_10 and CP_5 right? if so, then use below Query.
FUNCTION cf_10formula
RETURN NUMBER
IS
v_amount NUMBER:null;
IS
BEGIN
BEGIN
SELECT nvl(round(SUM(amount)), 0)
INTO v_amount --> Retruns the value for CF_10 column
FROM hhxw_region_col_v
WHERE category IN ( 'Intercompany - CATV' )
AND gl_date >= to_date(:P_FROM_DATE, 'DD/MM/RRRR')
AND gl_date < to_date( :P_TO_DATE, 'DD/MM/RRRR') + 1;
:CP_5 := nvl(trunc(v_amount),0); --> Retruns the value for CP_5 column
EXCEPTION
WHEN OTHERS THEN
v_amount := 0;
srw.message(1003,'Error in Getting :' ||p_from_date);
END;
END;
And
If you've got a number function returning into a number field then all you should need to do to make the comma appear is to change the number format mask in field.
From 40000 to 40,000 -
Hi everyone.
Can anyone tell me what is wrong in this code below?
Code:
function NO_DAYSFormula return Number is
begin
IF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
AND :P_TO_DT<:MATURITY_DATE
AND :ACCT_OPN_DT>:P_FR_DT
THEN RETURN (:P_TO_DT-:ACCT_OPN_DT+1);
ELSIF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
AND :P_TO_DT<:MATURITY_DATE
AND :ACCT_OPN_DT<:P_FR_DT
THEN RETURN (:P_FR_DT-:P_TO_DT+1);
ELSIF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
AND :P_TO_DT>:MATURITY_DATE
AND :ACCT_OPN_DT<:P_FR_DT
THEN RETURN (:P_FR_DT-:MATURITY_DATE+1);
END IF;
END;
It gets compiled successfully but when i run the report, i get 2 errors.
Error 1:
REP-1401: 'no_daysformula':Fatal PL/SQL error occurred.
ora-06503: PL/SQL : Function returned without value.
Error 2:
REP-0619: You cannot run without a layout.
Should i use only 1 return statement?
Can i use as many return statements as i want?
What is the exact mistake? Please let me know.
Thank You.Let me clear you the first thing...
If you get any fatal errors while running the report (e.g., function returned without value,no value etc.,) the report will show
REP-0619: You cannot run without a layout.
So you just correct the function 'no_daysformula' .
First of all you run the report without that formula column.
If it works fine then , Check the return value of your formula column (Your formula column properties --> Return value --> value (It will be DATE as i think so).
As function will always return a single value, Check your formula 'no_daysformula' returns the same.
declare a return variable say for example..
DECLARE
V_DATE DATE;
BEGIN
--YOUR CODE---
RETURN V_DATE := (RETURN VALUE)
END;
Last but not least ... use Else condition to return (NULL or any value ) in your code and check..
If any Problem persists let me know
Regards,
Soofi. -
See this error in report REP-1401: cf_1formula: Fatal PL/SQL errir occurred
hi mater
sir i use oracel reprot 6i
i try to use formula for calculation see
function avggFormula return Number is begin
:cp_1 := (:bugamt-nvl(:totexp,0)/:bugamt)*100 ;
return(:cp_1);
end;
this formula complie rightly no error
but when i run my report
that give me this error
REP-1401: 'cf_1formula': Fatal PL/SQL errir occurred.
ORA-01476: divisor is equal to zero
please give me idea how i solve my this error
thank;
aamirHi Aamir,
The problem is that divisor by 0 (zero) is not possible.
So you need to make sure that in your calculation there's no division by zero.
In your case :bugamt is equal to zero then you will get this error.
So just make sure that :bugamt is not equal to zero.
You can do this as follows:
function avggFormula return Number is begin
IF :bugamt != 0 THEN
:cp_1 := (:bugamt-nvl(:totexp,0)/:bugamt)*100 ;
END IF;
return(:cp_1);
end;
Regards
Arif -
REP-1401: 'cf_1formula': Fatal PL/SQL error occurred.
Hi all,
I am using the barcodes example which is on otn.
I am getting the result on the development side which is my local set-up. (windows-2000) and i am using Report Builder 9.0.4.0.21.
I am able to see the barcode.
If i try the same thing on my deployment side which on my AS(Application server) which on UNIX platform .
I am getting the below error....
REP-1401: 'CF_1FORMULA0031': Fatal PL/SQL error occurred.
ORA-39565: Message 39565 not found; product=RDBMS; facility=ORA
I had gone thru metalinks and i found few docks saying change of width of file_name
I am enclosing the details
the below is the change i did in rep_<server>.conf
<engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="60000" classPath="$ORACLE_HOME/reports/jlib/oraclebarcode.jar">
and i had made an entry in reports.sh as mentioned in one of the docs in metalinks.
and i had changed the width of
myfilename varchar2(20);
to
myfilename varchar2(256);
and CF_1 width to same
The code in
function CF_1FORMULA0031 return Char is
myfilename varchar2(256);
result varchar2(20);
barcodeData VarChar2(50) := :order_ID;
begin
myFileName := srw.create_temporary_filename;
barcodemaker.setBarWidthInch(globals.bcobj, 0.005);
barcodemaker.setBaseCodeData(globals.bcobj,barcodeData);
barcodemaker.setBarCodeType(globals.bcobj,globals.barcode_to_use);
myfilename := barcodeData;
barcodemaker.setFullPath(globals.bcobj, myFileName);
barcodemaker.renderBarCode(globals.bcobj);
return(myfilename);
end;
and i had opened the trace on and my trace says the below....
[2004/4/9 8:10:50:171] Debug 50103 (EngineManager:spawnEngine): Start engine command line = $ORACLE_HOME/bin/rwengine.sh -server -cp $ORACLE_HOME/reports/jlib/oraclebarcode.jar:$ORACLE_HOME/j2ee/home/lib/ojsp.jar:$ORACLE_HOME/reports/jlib/rwrun.jar:$ORACLE_HOME/jlib/zrclient.jar -Xbootclasspath/p:$ORACLE_HOME/vbroker4/lib/vbjboot.jar -Duser.language=en -Duser.region=US -Xmx256M oracle.reports.engine.RWEngine name=rwEng-0 server=rep ORACLE_HOME=/ora10g engineimplclass=oracle.reports.engine.EngineImpl traceopts=trace_all tracefile=$ORACLE_HOME/reports/logs/rep/rwEng-0.trc tracemode=trace_replace cacheDir=$ORACLE_HOME/reports/cache
which means the server is picking the jar files....
can any one tell me what can be the issue......
Advise me at the earliest................
cheers,
ALIHi Aamir,
The problem is that divisor by 0 (zero) is not possible.
So you need to make sure that in your calculation there's no division by zero.
In your case :bugamt is equal to zero then you will get this error.
So just make sure that :bugamt is not equal to zero.
You can do this as follows:
function avggFormula return Number is begin
IF :bugamt != 0 THEN
:cp_1 := (:bugamt-nvl(:totexp,0)/:bugamt)*100 ;
END IF;
return(:cp_1);
end;
Regards
Arif
Maybe you are looking for
-
How can I convert from 8.2.1 to 7.1.1?
I would like to convert the following files from 8.2.1 to 7.1.1. Is this possible without just having someone else do it inside 8.2? If not, then can someone please convert them for me? They are listed in order of most needed. Thanks for the hel
-
What are the features of blackberry pearl 9100?
what are the features of blackberry pearl 9100?
-
Getting the length of a field in a database.
I have a field in a database that has a char length of 20, is there anyway to get that length from the database.
-
I didn't get my renewl in time for Icloud is it to late or can I renew and still have my pictures?
-
My password no longer works, I have tried to change it but can not. I know it is the correct one because I have not changed it and keep a verification in a safe. It works a few weeks ago.