Ora-06503/rep-1401 with my second report
hello :D
im making my second report (new to reports, self studying)
i encountered REP-1401-'cf_itemtypeformula': Fatal PL/SQL error occured.
then i tried to trace the error by putting srw.message() in parts of the code to try to figure out the problem
here is cf_itemtype currently
function CF_itemtypeFormula return Char is
itype char(60);
begin
srw.message(1000,'item type is'||:p_itemtype);
--return ' ';
if :p_itemtype = '%-ALL' then
itype:=' ';
srw.message(1005,'itype code is'||itype);
return itype;
else
srw.message(1003,'item type is'||:p_itemtype); --it prints this one
itype:='AND il.itty_code= itty.code and itty.item_type = '''||:p_itemtype||''' ';
--itype:=' ';
srw.message(1005,'itype code is'||itype); --and never reaches this line i think.
return itype;
end if;
exception
when value_error then
srw.message(1007,'value error');
end;
i think the error is because of this line
'AND il.itty_code= itty.code and itty.item_type = '''||:p_itemtype||''' '
because when i comment it out and uncomment itype:=' '; the srw.message(1005,'itype code is'||itype); works
thanks
Hi,
You just need to increase the length of itype.
Or even better option is to return the value directly without assigning to a local variable.
return ('AND il.itty_code= itty.code and itty.item_type = '''||:p_itemtype||''' ');Your over all function without the SRW messages will be like, you don't even need Exception handler:
function CF_itemtypeFormula return Char is
begin
if :p_itemtype = '%-ALL' then
return (' ');
else
retrun ('AND il.itty_code= itty.code and itty.item_type = '''||:p_itemtype||''' ');
end if;
end;Also I have doubt about your if statement, I dont understand what you are trying to do by this.
> if :p_itemtype = '%-ALL' then
May be you just need to check if :p_itemtype is null
so may be your above IF clause will be like
> if :p_itemtype IS NULL then
Edited by: Arif Khadas on Apr 21, 2010 10:37 AM
Similar Messages
-
REP-1401 error when excuting report
Hi,
I'm running a Report builder report that uses User Parameters and an Oracle stored procedure.
After providing the user parameters the report starts to run for a minute and then returns the message. REP-14-1: 'qr_1refcurds': Fatal PL/SQL error occurred.
Any suggestions on correcting this. The help was no help.
Thanks, JimHi,
As mentioned in the Reports online Help (http://www.oracle.com/technology/products/reports/index.html), this error was caused due to an abnormal condition. Per the Action suggested, may be you would want to first contact your system administrator to determine if the message was caused by something other than Oracle Reports. If you determine that the message was not the result of user error or a system problem, then you can contact Oracle Support Services. -
Error rep-1401 in formula of report buider
I am trying to read number from table for a speciific date for which that number does not exit i.e return value is null. I am unable to handle it.
My code look like this
declare
vnum number;
begin
select pnum into vnum from XYZ where pdate=:P1_date
if pnum is null
return 0;
else return pnum;
end if;
end;
I also tried
declare
vnum number;
begin
select pnum into vnum from XYZ where pdate=:P1_date
exception when no_data_found then
return 0;
else return pnum;
end if;
end;declare
vnum number;
begin
select pnum into vnum from XYZ where pdate=:P1_date;
return vnum;
exception when no_data_found then
return 0;
end; -
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. -
dear all
how are you ???
i am just need some help cuz i have an application when the genarate report an error accuorred says :
Rep -1401: ' report_name' fatal PL/SQL error accurred
Ora - 12801 : error signaled in parallel query server
Notcied that both of those erroe desplayed in the same masg
so if anybody can help me
Thank youAnyway thank you for your help but i actually i dosent solve this problem till now but lets say that we we have only one error which is error
****ORA - 12801 : error signaled in parallel query server ****
How can i solve it in the database???
Thank you very much -
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 -
Barcode Report is not working in Linux REP-1401: 'cf_1formula': Fatal PL/SQ
In windows its barcodesample is working fine.(all the barcode constants)
In linux
1.I have set the CLASSPATH in reports.sh
2.and I also added the classPath value in <engineId...> tag in the reportservername.confg file.
3.And I restart the report server as well as application server also. still I am getting the following error messages.
REP-1401: 'cf_1formula': Fatal PL/SQL error occurred.
ORA-39565: Message 39565 not found; product=RDBMS; facility=ORA
In windows I followed the same steps its working fine.But Linux its not working any idea.!!! Its really urgent....
Thanks,
Natarajan.U
Mail:[email protected]Hello,
The note 278044.1 available on metalink may help you :
Note.278044.1 How to Debug REP-1401 when executing Reports with Barcode java code ?:
Regards -
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 in 9.0.2.3 reports builder on Linux
Hi,
I am trying to make use of the 2d barcode jarfile provided by IDAutomation. when I try to incorporate it into one of my reports I am consistently getting:
REP-1401: 'cf_2d_barcodeformula': Fatal PL/SQL error occurred.
ORA-39565: Message 39565 not found: product=RDBMS; facility=ORA
I am able to make it work in the 10g version of Reports developer (on linux also), but my client is unable to move to 10g immediately.
In both cases my REPORTS_CLASSPATH is set in reports.sh, I have a valid DISPLAY setting. In the 9i version I have added the classPath entry to the report conf file with no success, In 10g it worked without this though.
The 9i version has been patched up to 9.0.2.3.
Are ther any workarounds/fixes for this issue, apart from moving to 10g?
Many Thanks in advance
Ruchit KhimasiaHas anyone had any issues with upgrading from a different OS (like Windows) to Linux and trying to print reports directly to the printer? I've had nothing but issues with it. I know others are using the feature but, I just haven't figured it out.
When I send it via the command line, I get this message below. I'm working with Oracle Support on this. I've got default printer setup as my network printer. I can print a document via the command line to my printer but when I submit an Oracle Report command, I get errors like below.
[as10g@inxx37 bin]$ ./rwrun.sh report=/u11/app/as10g/ybs/bin/test.rdf destype=printer
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGSEGV (0xb) at pc=0x01c4d4d3, pid=21730, tid=103095184
# Java VM: Java HotSpot(TM) Server VM (1.4.2_14-b05 mixed mode)
# Problematic frame:
# C [libc.so.6+0x704d3] strrchr+0xa3
# An error report file with more information is saved as hs_err_pid21730.log -
Dear All,
Oracle fusion middleware version (pfrd) : 11.1.1.4
OS : Windows 2008 X 64, 2 CPU and 8 GB RAM
When we run a huge report we are encountering REP-1401 and intermittently with accompaning error ORA-12571, but when the same report ran for one month report it is working fine.
REP-1401: A fatal PL/SQL error occurred in program unit cf_anct_docsformula.
Since the report is running fine for 1 month period, we concluded that this issue is not a report error or formula columns used and narrowed it to some configuration or ORACLE bug.
We have increased the JVM heap and tired but we couldnt able to get the report. Also we tried searching in oracle support but no hits.
Please let me know if any one had encountered this issue.
Regards,
Anand.Error – ORA-12571 is related to TNS:packet writer failure and error occurred during a data send.
For further investigation, you need to turn on tracing to collect the logs. -
hi,
my report is giving error REP-1401:'cf_1formula': Fatal PL/SQL error occured,
ORA-01403: no data found
There are two table emp1 and emp2 created from employees table from HR schema
I have deleted some records from table emp2 where department id is 110
main query is
select employee_id, first_name, department_id from emp1
now i created a foumula column
function CF_1Formula return Number is
dept number;
begin
select department_id into dept from emp2 where employee_id = :employee_id;
return(dept);
end;
the above error is given when report is run. i tried
exception
when_no_data_found then
dept:=000
but problem is not solved
i want to disply any number in this foumula column if the record is not foundM. Khurram Khurshid wrote:
exception
when_no_data_found then
dept:=000try this code in formula
function CF_1Formula return Number is
dept number;
begin
select department_id into dept from emp2 where employee_id = :employee_id;
if dept is not null then
return(dept);
else
return 0;
end if;
end; Hope this will help you...
If someone response is helpful or correct please, mark is accordingly. -
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; -
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 -
In Barcodesample reports are not working REP-1401: 'cf_1formula': Fatal P
In windows its barcodesample is working fine.(all the barcode constants)
In linux
1.I have set the CLASSPATH in reports.sh
2.and I also added the classPath value in <engineId...> tag in the reportservername.confg file.
3.And I restart the report server as well as application server also. still I am getting the following error messages.
REP-1401: 'cf_1formula': Fatal PL/SQL error occurred.
ORA-39565: Message 39565 not found; product=RDBMS; facility=ORA
In windows I followed the same steps its working fine.But Linux its not working any idea.!!! Its really urgent....
Thanks,
Natarajan.U
Mail:[email protected]I pretty sure that the problem is the BarcodeMaker.java class in the oraclebarcode.jar. I got the barcode example to work locally (on Windows XP) in reports builder, but I couldn't run it in our webApp on a Solaris appServer. However, I was actually just doing the barcode example to learn how to display gantt charts in a report. So I wrote a simple java class called GantChartTest that uses the JFreeChart API to create a gantt chart as a jpg. I followed the bar code example almost exactly and my gantt charts did show up on the Solaris appServer. Here's my imagefilename function:
function ImageFilenameFormula return VarChar2 is
myFileName varchar2(500);
result varchar2(500);
thePhase VarChar2(50) := :phase;
estStartDate VarChar2(50) := :est_start_date;
estEndDate VarChar2(50) := :est_end_date;
wipActualStartDate VarChar2(50) := :wip_actual_start_date;
wipActualEndDate VarChar2(50) := :wip_actual_end_date;
begin
myFileName := srw.create_temporary_filename;
GantChartTest.createGanttChart(globals.bcobj, thePhase, estStartDate, estEndDate, wipActualStartDate, wipActualEndDate, myFileName);
return(myFileName);
end; -
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
Maybe you are looking for
-
Can anyone help? My 30GB iPod is not recognized by windows.
"USB Device Not Recognized" is the error report I get each time I connect my iPod to my USB port. I tested my USB ports with other devices and they worked normally. Has anyone had similar issues? Can anything be done without sending my iPod in for re
-
I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway
-
Problem with importing a class
When I compile my class, I get an error pointing to the import statement saying that it expects a period. Below is my code followed by the error I get: import Entry; public class Dictionary2 extends Entry protected Entry entries[]; public Diction
-
Help Sourcing Ready-Made Photo Gallery
Hi there, I am trying to source this exact (or really similar) photo gallery... http://www.vopenhouse.ca/video/4027_hamilton/Gallery/ Does anyone know where I can find it to download/purchase? Thanks so much! :) d.
-
i just got my new mac pro and connected it to an older Apple 23'' cinema display. the display has both a USB and a firewire plug that had corresponding ports in my old G5. however the firewire ports on the mac pro are the wrong shape to take the plug