REP-1247: There exist uncompiled program unit(s). REP-1247: Report contains
Hello,
i have the following problem when i first run this Report i have :
REP-1247: There exist uncompiled program unit(s). REP-1247: Report contains uncompiled PL/SQL.
many other reports i have having this problem pls help
Abdetu..
Any help pls...?
i still experience the problem..?
i found out the forulam that causes the problem as it is :
==========================================
function CF_PREVIOUS RETURN Number is
V_MATERIAL_HEIGHT1 NUMBER(40);
V_MAX_SERIAL NUMBER(40);
V_MAX_DATE DATE;
BEGIN
IF :SERIAL > 1 THEN
BEGIN
SELECT MAX(SERIAL)-1
INTO V_MAX_SERIAL
FROM PLN_TANK_TRANSACTION
WHERE TRANSACTION_DATE = :TRANSACTION_DATE
AND TANK_CODE = :TANK_CODE
AND MATERIAL_CODE = :MATERIAL_CODE;
EXCEPTION
WHEN NO_DATA_FOUND THEN V_MAX_SERIAL := 0;
END;
BEGIN
SELECT NVL(MATERIAL_HEIGHT,0)
INTO V_MATERIAL_HEIGHT1
FROM PLN_TANK_TRANSACTION
WHERE PLN_TANK_TRANSACTION.TRANSACTION_DATE = :TRANSACTION_DATE
AND PLN_TANK_TRANSACTION.TANK_CODE = :TANK_CODE
AND PLN_TANK_TRANSACTION.SERIAL = V_MAX_SERIAL
AND PLN_TANK_TRANSACTION.MATERIAL_CODE = :MATERIAL_CODE;
EXCEPTION
WHEN NO_DATA_FOUND THEN
V_MATERIAL_HEIGHT1 := 0;
END;
ELSE --IF :SERIAL = 1 THEN
BEGIN
SELECT MAX(TRANSACTION_DATE)
INTO V_MAX_DATE
FROM PLN_TANK_TRANSACTION
WHERE TRANSACTION_DATE <=:TRANSACTION_DATE
AND TANK_CODE = :TANK_CODE
AND MATERIAL_CODE = :MATERIAL_CODE;
EXCEPTION
WHEN NO_DATA_FOUND THEN
V_MAX_DATE := NULL;
END;
BEGIN
SELECT NVL(MATERIAL_HEIGHT,0)
INTO V_MATERIAL_HEIGHT1
FROM PLN_TANK_TRANSACTION
WHERE SERIAL = V_MAX_SERIAL
AND TRANSACTION_DATE = V_MAX_DATE
AND TANK_CODE = :TANK_CODE;
EXCEPTION
WHEN NO_DATA_FOUND THEN
V_MATERIAL_HEIGHT1:= 0;
END;
END IF;
RETURN (V_MATERIAL_HEIGHT1);
END;
------------------------------------------------------------------------------------------
Similar Messages
-
REP-1247: There exist uncompiled program unit(s).
i can't run the report aganinst App Serv
REP-1247: There exist uncompiled program unit(s). REP-1247: Report contains uncompiled PL/SQL.
Pls help
Abdetu..Hello
i found out where is the problem by testing each formula well the problem was exactly in the datatype width of the formula itself and the variabgle i declared was n't match with the columns on the db
thanks,
Regards,
Abdetu.. -
Rep-771 There exist uncompiled program unit(s).
hi ,
i am using 10g when i run my reports , some reports giving this error message
rep-771 There exist uncompiled program unit(s).
REP-1247: Report contains uncompiled PL/SQL.
REP-1247: Report contains uncompiled PL/SQL.
i have compiled my reports number of times and also these are properly running when i run them from reports builder but when i try to run them from menu above errors occured.
please can someone help me
thanks
NajeebI got the problem resolved by myself. I looked at the "showjobs" and found that the blobdestination output type was actually recognized. All the error messages (when running the url) had nothing to deal with the new output type. Here is the trick.
In addition to specifying the DESNAME=http://username:password@host:port/sid for the output destination, you also need to specify the userid userid=username/password@database_name in the same url in order for the report to run.
Thanks.
Andy -
URGENT: REP-1249: There exist uncompiled program unit(s).
Hi all,
We just had a problem in our production environment one report suddently started giving the following error:
Enter Password:
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1249: There exist uncompiled program unit(s).
REP-1249: Column 'C_original_buyer' has no PL/SQL formula.
We have a similar report in french and it works fine...
We have recompiled the report so its does not make sense the error we get.
And also the pl/sql formula for the c_original_buyer is there and is compiled and it does not contain errors.
Does anyone have a clue of what this could be ?
Its in our production environment so if you know anything please reply a soon as possible.
Any help is appreciated.
Cheers,
CarlHi all,
We just had a problem in our production environment one report suddently started giving the following error:
Enter Password:
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1249: There exist uncompiled program unit(s).
REP-1249: Column 'C_original_buyer' has no PL/SQL formula.
We have a similar report in french and it works fine...
We have recompiled the report so its does not make sense the error we get.
And also the pl/sql formula for the c_original_buyer is there and is compiled and it does not contain errors.
Does anyone have a clue of what this could be ?
Its in our production environment so if you know anything please reply a soon as possible.
Any help is appreciated.
Cheers,
Carl -
REP-0736: There exist uncompiled program unit(s).
Hi All,
I have a custom report, it contains two libraries FARSV and FADOLIF, When I compile it from FA_TOP, it compiles successfully onto the server but when I compile it from Custom_Top, it gives errror
REP-0736: There exist uncompiled program unit(s).
What might be wrong?961040 wrote:
Hi All,
I have a custom report, it contains two libraries FARSV and FADOLIF, When I compile it from FA_TOP, it compiles successfully onto the server but when I compile it from Custom_Top, it gives errror
REP-0736: There exist uncompiled program unit(s).
What might be wrong?Please see (A Custom Report Fails with REP-0736: There exist uncompiled program unit(s). [ID 369627.1]).
Thanks,
Hussein -
Report- 0736 uncompiled program units
i have report .rep file build and compiled on oracle report 6.0.11.0.3 and trying to run on 6.0.8.8.3 version.
It is working file .But when i am trying to recompile on the older version whuch is 6.0.8.8.3 it is showing error REP-0736 there exist uncompiled programm units.
I have to convert more than 500 report .how can i do it.
is it require to rewrite or it may work by changing the only the Report builder version.Because the runtime version is working fine.
i need help please help ....hi
You can not compile rep.
Problem may be due to some invalid objects in database. or you must be using 'select * ' in the query and the table structure might have been changed after u generated the rep.
or check is there any objects invalid which are used by report.
Regards
chaluve -
REP-1247: Report contains uncompiled PL/SQL.
Hi learned friends
I have created a batch script that runs rdf generates pdf reports for me at each eod run.
The report errors out:
REP-0736: There exist uncompiled program unit(s).
REP-1247: Report contains uncompiled PL/SQL.
This is the command i execute:
/udd001/app/oracle/product/dev60/bin/rwrun60 userid=/ report=/udd001/app/mu_tosd/ci/reports/GT0009R.rdf paramform=no destype=file batch=yes desformat=pdf mode=bitmap desname=/udd001/app/mu_tosd/ci/eodreport/GT0009R.pdf nonblocksql=no
Now I have compiled all (Ctrl+Shift+K) successfully.
Thanks a mil guysHi,
1) did you save the compiled reports?
2) is the connect string you use to compile the reports with the same as the connect string you use when you run your reports in your batch?
hope this helps,
E. -
Encountered REP-1247: Report contains uncompiled PL/SQL
Hi All,
I am facing an issue where I have created a formula column inside the invoice RDF report but when I run the report this is errored with the below message ,I do have compile the formula column properly and i have also compiled the complete rdf properly .
REP-0736: There exist uncompiled program unit(s).
MSG-00100: DEBUG: AfterPForm_Trigger +
MSG-00100: DEBUG: Multi Org established.
MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
MSG-00100: DEBUG: P_Choice: SEL
MSG-00100: DEBUG: Choice is other than ADJ, setting ORDER BY.
MSG-00100: DEBUG: AfterPForm_Trigger -
REP-1247: Report contains uncompiled PL/SQL
When I removed the formula column ,report is running succesfully .Any hint would be very helpfull ,please give your thoughts .Thanks in advance .
Thanks
PratapHi Paul
This error usually means that the user that is running the report does not have the required privs on tables or packages used in the report. Solution: Open the report in reports builder. Set the runtime properties (Role) that is assigned to the report. Connect as the user running the report on the same database instance as your run environment. Compile the report (Shift-Ctrl-K). This should show you where the error lies.
Regards
Logan -
How to reference a user parameter in program unit
I tried to define a user parameter in Oracle Report 6i and I could reference it (&p_where_clause) in the main query but I failed to reference it in one of the program units. Here is the logic:
function CF_OTHER_COURSESFormula return Char is
cnt number;
priority number;
class_code varchar2(8);
oc varchar2(100) := null;
cursor oc_cur is
select class_code, branch_priority
from nominations n, employments e
where n.hkic_no = e.hkic_no
and e.staff_status_code = 'EMP'
and &p_where_clause --> contain "n.course_code in ('A','B','C')"
and n.hkic_no = :hkic_no
and n.class_code != :class_code;
begin
cnt := 1;
open oc_cur;
loop
fetch oc_cur into class_code, priority;
if oc_cur%notfound then
exit;
end if;
if cnt = 1 then
oc := oc||class_code||'('||priority||')';
else
oc := oc||', '||class_code||'('||priority||')';
end if;
cnt := cnt + 1;
end loop;
close oc_cur;
return oc;
exception
when no_data_found then
return '';
end;
Does anyone tell me how to reference it in program unit? Does Oracle Reports 6i support this operation?There hasn't been any changes to the way lexicals and bind variables work in Reports between 2.5 and 6i. There are different versions of PL/SQL and you might be hitting some problem here.
In your case, you shouldn't be using the query lexical "&p_where_clause" just the PL/SQL bind variable syntax ":p_where_clause". Since you're creating a PL/SQL cursor, you should probably use dynamic sql creation with a concatenation of the where clause to build up the SQL for the cursor. Check out the PL/SQL documentation for this. -
REP-1247: Report contains uncompiled PL/SQ
hi,
i have a report with a FORMULA COLUMN
when run my report i get this error REP-1247: Report contains uncompiled PL/SQ
when i remove FORMULA COLUMN then run with out any problem,
plz help me.1-I create a report emp that use 3 table t1,t2 and in formula t3
2- i created role emp_role and grant 3 table (t1,t2,3) to this
3- i assined emp_role to emp report (role name)
4- i used BeforeReport (DBMS_SESSION.SET_ROLE('EMP_ROLE');
5- compile all ,compile all ,ctl+shift+k ,ctl+shift+k
6- create user co20001 and grant EMP_ROLE to this user
7- when open this report from form with user co20001 i get error (unable to run report)
and when run on browser as
http://192.168.0.128:7778/reports/rwservlet?report=c:\erp\emp.jsp+server=rep_formsrv_BI+userid=co20001/co20001@nilper+MIMETYPE=REPORTS+destype=cache+desformat=spreadsheet+desname=hamid.htm
i get error REP-1247: Report contains uncompiled PL/SQL.
8- when grant table t3 as directly to co20001 my report run sucsses. why???????
plz helpppppppppppp -
Program units (Package) as global variable
Hi all,
Report 10g, generate PDF on the web.
I need to manage some informations as rowtype.
So, I defined a program unit as Package Spec VAR and defined v1 tablename%rowtype. When fired the trigger After Parameter Form run a procedure that populate the VAR.v1 and so I can use this information inside the column formula or format trigger without read the table many times.
I try on client / server and all is ok.
I try on the web and the package spec not work good. Exist some rule or bug about it?
I try to move the package on the DB as Stored Procedure and so the report is ok.
Thank you in advance.But in report builder is it possible to use global variable define as rowtype?
I have some doubts about it.
About my problem I want add an example to understand better the situation:
As program unit I defined:
PACKAGE VAR IS
vTab0001 tab0001%rowtype;
END;
FUNCTION TAB0001_GET (pCom number) RETURN tab0001%rowtype IS
vTab0001rec tab0001%rowtype;
BEGIN
Select *
into vTab0001rec
from tab0001
where t0001soc = pCom;
return (vTab0001rec);
Exception when others Then
return (null);
END;
About the After Parameter Form trigger:
var.vTab0001 := tab0001_get(:company_code);
With the srw.message(12345, var.vTab0001.t0001soc) check the value in all the report.
In client/server all it is ok.
In web I received the error
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1418: 'cf_1formula': Passed null arguments to SRW.MESSAGE.
So, I have the evidence that the var.vTab0001.t0001soc is null.
Can you help me to find a way?
Is there someone that had this case in report builder? -
Alert window on opening a form with dup. program unit in form and PLL
Can anyone help here? I'm upgrading a large system from forms 4.5 to forms 6i (yes, we're behind). I use an attached library for about two dozen procedures. In some cases, some of the procedures have been overriden in the Form. When I open the form in the forms designer, I get the alert message: "A Program Unit XXXXX already exists. Continue creation?"
This happens where the program unit in the library was overriden in the form. I presume since the form program unit will be found first at execution time that this message is nothing to worry about. Indeed, I have had no failures related to this yet.
Can anyone verify that this is the normal functioning of Forms 6i? Or is there a way to turn this off?
Thanks,
JimHi
If you are using SAP Business One PL 19 or above you can try the following for opening a form
Dim formType As SAPbouiCOM.BoFormObjectEnum
'default: fo_None
Dim strUDOObjectType As String
Dim strObjectKey As String
'For UDO objects, set the system form enum to be "fo_UserDefinedObject" at first.
formType = BoFormObjectEnum.fo_UserDefinedObject
strUDOObjectType = "myUDO"
'UDO type
strObjectKey = "udoKey"
'Code
Dim oForm As SAPbouiCOM.Form = oApp.OpenForm(formType, strUDOObjectType, strObjectKey)
'For system objects. set system form enum for "BusinessPartners" at first.
formType = BoFormObjectEnum.fo_BusinessPartner
strUDOObjectType = "testUDO"
'Will be ignored in this case.
strObjectKey = "C00001"
'primary key of "BusinessPartners" object.
oForm = oApp.OpenForm(formType, strUDOObjectType, strObjectKey)
If oForm Is Nothing Then
'No form opened with the input parameters, add your own logics here...
Else
'Form opened successfully, do your own work here...
End If
Summary Column is available in 8.81 only
Hope this helps
Regards
Arun -
Could not find program unit being called
We're facing a development problem, which while it isn't stopping us from working, but it's seriously slowing down our progress. It goes something like this ...
We have a ColdFusion interface to an Oracle PACKAGE, "package A". "Package A" invokes "package B", and "package B" invokes "package C". We're actively working on "package C", the last in the chain, and then testing those changes from the ColdFusion interface.
Everytime we run a CREATE OR REPLACE on "package C" (we've tried both compiling only the BODY, as well as the SPEC and the BODY), we get the following error from ColdFusion when we test from the interface:
ORA-06508 PL/SQL: Could not find the program unit being calledIf we wait a bit, everything starts working again. Note that while we are waiting, "package C" is not being recompiled. So it's functioning fine. Our best guess is that there something happening due the connection pooling process in place. Maybe ... if you're lucky enough to latch onto a new connection, then the error doesn't appear? But, if you connect to a session that was present when "package C" was recompiled, then you get the ORA-06508? These connections are using a JDBC driver.
I guess I expected to get the ORA-04061 error ("Existing state of the package has been discarded"), and that is coming up more rarely than the ORA-06508, but the "could not find the program unit" is just stopping our efforts until everything starts working again.
I found some suggestions online (http://www.orafaq.com/forum/t/14555/2/) which claim that the SHARED POOL should be flushed and that will help with this error, but I'm not sure I need to bring an A-bomb to a fist-fight. Plus, these PACKAGES aren't huge, so I'm not sure we're encountering the memory limits focused upon in those other posts:
package A: 1533 lines
package B: 1015 lines
package C: 1842 lines
Anyone have a suggestion for us to follow-up on? Like I said, we're not dead in the water, but this is getting pretty frustrating.
Thanks,
--=ChuckI think the problem is related to the connection pooling. If you have 5 persistent sessions held open by the application server say C1, C2, ... C5 then if you have called the package from C1 , C2, and C3 then if the package is recompiled the session copy of the package variables and records no longer matches the package and an error is issued. But if the call is made from C4 or C5 it works since the work in storage areas are all initialized from the new version of the package.
In the old days (7.x, 8.0) I remember seeing a Package State has changed message but recently at least on AIX we see the Program Unit not found when this happens. We used to see this message only if we could not load the package into the shared pool due to memory issues.
Anyhow we bounce one of our Web based applications to avoid this program. That is the local customer has us stop the application, make the change, revalidate packages, and restart so they never see the error since with a large connection pool significant time can pass between the change and an error being encountered.
In theory you should just be able to reissue the package procedure call since the first call should have resulted in the work in storage being re-initialized.
HTH -- Mark D Powell -- -
Needed program unit to translate number as currency to string
HI All,
Can you please tell me if there is existing program unit that i can use to translate number as currency to string
Ex:
i have numbeer like 110.5 and currency code EGP
i need the program unit to return
Only One Hundred Ten Egyptian Pound (s) and Fifty Piaster (s)
for ococourse if the EGP is USD it'll return dollar instead of egyptian pound
Thanks youYeah i already did so and i got the function and used it my problem just in the currency translation for decimals
that means when i need to translate 100.5 EGP
one hundred Egyptian Pounds and fifty piasters
i can now translate to one hundred Egyptian Pounds and fifty but what about the piasters
i think i had to create a table that contains a currency code and the corresponding currency translation piasters , cents , ...etc
so i think i'll have to search on google about the currency transaltion for the decimal point currency i hoped there is a tabke in the e-business suite contains it as it exists for the currency code -
PDE-PEP006 Encoded Program unit has an unknown format.
Hi All:
I am using Form builder [32 Bit] Version 6.0.8.23.2 with Oracle 10g.
I tried to open a form in form builder which is also created in Form 6i, system return following error:
PDE-PEP006 Encoded Program unit has an unknown format.
and form opened, but the coding of all triggers, and program units was not there, although the triggers and program units exists and can be seen but without coding.
Please also tell me can I convert the form into text format thru command prompt?
What could be the reason?
Thanks
HassanFrancois
The only way to get the "new" pl/sql code is to open
the new version and copy the code, then paste it in
the old version's builder.
You mean to say that open the new version form in new version builder? or in old version?
Thanks
Hassan
Maybe you are looking for
-
Acrobat XI & Not Seeing Acrobat Main Tab in Office 2013
I bought Acrobat XI & Office 2013. Installed Acrobat XI first. Then Installed Office 2013 next. Opened Office 2013 word, excel, outlook, etc and NO Acrobat main tab. Checked forums & Acrobat support and made sure Add-Ins in the customized Main Ta
-
Acrobat 9 Pro does not list MS Office files as supported files
I've tried this on 4 different computers. All computers are running Windows 7 and Microsoft Office 2007. 2 of the computers are running Acrobat 9 Pro and 2 of the computers are running Acrobat 9 Standard. On two of the computers, one Pro and one Stan
-
ATSserver is slowing certain programs
I have a client that is using a G5 that is running OS 10.3.9. The system has 1 GB of RAM. The problem that they have encountered that we cannot solve is that two adobe programs (Illustrator [when opening the program] and InDesign [when creating a PDF
-
Dynamically launch selected VI on cFP target
I am running LabVIEW 2011SP1 on a Win7 machine. My applicatoin uses cFP to monitor temperatures, and control 6 heaters (PID feedback) during heating and soak segments of a profile. Cooling segments are passive, no control aspects, I need only monitor
-
I signed up for the Device Enrollment Program and my status has shown in review for a couple of months. When will this be resolved?