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 guys

Hi,
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.

Similar Messages

  • 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
    Pratap

    Hi 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

  • 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

  • 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;
         ------------------------------------------------------------------------------------------

  • Report contains uncompiled pl/sql..in Dev10g....

    Hi ,
    I have developed some reports which contains simple pl/sql code...
    Although i have compiled them numerous times... the next time when i try to run them again... this error is displayed......!!!!
    What can i do....?????
    Thanks,
    Sim

    Hi,
    a) saved the reports once compiled?Yes
    b) generated as .rep ?No. I run them as rdf.....
    Also, are these reports running on the same database as compiled against, if not then are all referenced objects on that database and if so are they all VALID?Yes... and all db object are valid....
    there may be an issue with inconsistent/missing librariesmissing lib ... where ??? in the reports ... in the database....????
    I am assuming that you have compiled these through 10g developer suite (reports builder) and not an earlier versionYes.... using Report10g (10.1.0.2)...!!!!
    So.. is this because i have not generated a .rep file....???? However , I do not run the .rep file... I run the .rdf file (either using the forms built-in proc web.show document or directly the .rdf from the report env).....
    Thanks....
    Sim

  • 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..

  • ORACLE 6i-Errors REP-0736 / REP-1247-Report works with a different name

    Hi everybody,
    I have a problem with a Report developed in 6i after I compiled it with Linux.
    When I run report I had errors REP-0736 and REP-1247. But I didn't had any problem during compilation.
    The fact is.............if I changed report name (just the name, without any other modification), compiled and run, it works perfectly. Just changing the name!
    Obviously there is some place where the report name is corrupt, but I don't have the knowledge to find it.
    Please, if somebody can give me a clue to solve this problem, I would appreciate a lot. I'm lost!
    Thanks

    **What do you mean exactly by changing the name? The file name or the Name property in Report Builder?**
    **What are the exact version numbers (Reports and Linux)? Did you make sure the combination is certified?**
    **Did you create the report in Windows and transfer it to Linux? How did you do that? E.g. if you ftp it, make sure you use the binary format.**
    **Are you compiling and running with the same user (Windows/Linux)?**
    **Are the database versions the same (still assuming you develop in Windows development and run it later on Linux production)?**
    Thanks for answer!
    1. I mean by changing the Name property and the file name. Both.
    2. The combination of versiones numbers is certified. This is the first report with this kind of problem. I've been compiling without any trouble until now. And even now, the only report with compilation problems is this.
    Report version is 6.0.8.27.0
    Linux version is Suse 9
    3. I modify the report in Windows and transfer it to Linux. We use to copy the .RDF file to the directory where we always compile the objects to Linux.
    4. Yes, I'm compiling with the same user
    5. The database versiones are the same. You're correct, we develop in Windows and run it on Linux (production).

  • REP-1247 in drill-down report

    Hello, everybody!
    I'll be very thankful to anyone who can help me to solve this problem.
    The environment is Oracle Reports 6.0.8.10.1 on Oracle Server 8.1.7.0.0.
    My report (rdf) in before form trigger takes the value of the first record's field of some view as a value of a parameter that is used in filter of the Q_1 query. Q_1 executes, rwrun60 generates pdf-file with the name depending on the value of that same parameter. Then in after report trigger the report runs through the cursor loop, fetching the rest of the records of that view from before report trigger. In this loop I form the report start string using the value of the cursor record's field. Finally, in that loop I call srw.run_report(report_start_string); for report to run itself with a new set of parameters per every iteration of the loop. That's how it is intended to work. And it perfectly works when I run it from under the user that is the owner of the schema. But when I just run it from under any ordinary user with more restricted access privileges (but, of course, this user has select privileges on views used in report granted to him) it all goes like that: the driver report successfully generates PDF. The runtime enters the loop in after report trigger and exectly once the report runs itself generating PDF successfully. Just the second run_report in the loop fails with error REP-1247: Report contains uncompiled PL/SQL. Do anybody know what is the reason?

    Hello,
    You will have to go for new development /enhancement linking your capital proj /WBS to the new logic of the report.
    Regards,
    Sumanth

  • 1247 Error - Uncompiled PL/SQL

    We migrated from reports 3.0 to 6.0, specifically Report Builder 6.0.8.8.3. Seems like every time I go in now and modify a report, it does something and when a user tries to run the report, they get a 1247 error - Report contains uncompiled PL/SQL. I go in and connect to my database, open the report, compile it, get no errors, save it, close report builder, same result. My compilations aren't saved. Somebody told me to save as .rep instead of .rdf. So I started converting all the reports. That was working fine till I got to one that told me I had uncompiled pl/sql. I repeated the above process, tried to convert it to .rep again, same problem. I downloaded the lastest version of designer from Oracle, it has the same report builder. Does anybody have a solution to this problem? Right now, we have to take our report to another office which uses Designer 2.5 and compile it there, then bring it back here so users can access the report.

    973636 wrote:
    Hi All,
    I have complied(ctrl+shift+k) one report through the Report Builder successfully.
    If i run this Report,i am getting error like below:
    "Re: REP-1247: Report contains uncompiled PL/SQL ".
    Could you please tell me the solutions to solve this and in which cases this report will give such type of error.
    Thanks,
    shekhar yadav.Please post the details of the applicationr release, database version and OS along with your reports builder version.
    Please see these docs/links.
    OERR: REP 1247 Report contains uncompiled PL/SQL. [ID 25423.1]
    A Custom Report Fails with REP-0736: There exist uncompiled program unit(s). [ID 369627.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=REP-1247&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • REP-1247 when running Report

    Hi,
    I am trying to run reports in Application Server 10.1.2.0.2. When I try to run any report using the 'rdf', I get the error " Terminated with error: <br>REP-771: There exist uncompiled program unit(s). REP-1247: Report contains uncompiled PL/SQL "
    The problem occurs if I first try to run a report after rebooting the reports server. But the problem disappears if I run the report again. Running the same reports in Oracle 6i works always fine.
    Could someone help me solve this issue.
    Regards,
    Xosu

    Hi,
    I searched in internal knowledge database but could not find any problem like yours which is very generic.
    There were some specific issues which occurred for specific type of reports, but in your case it happens for all rep files with PUs.
    1) Is it occurring for all reports or some specific types of report ?.
    2) Is there an attached library (.pll file) to your report ? If yes , then its location (.pll file's location) should be in REPORTS_PATH env variable (in registry for windows, env variable for unix)
    3) Silly suggestion, but to make sure, there should be an active DB connection
    Other than this I suggest you to get in touch with oracle support to handle this issue (if you have a support contract)
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • I am getting report error rep-0736&rep-1247 from concurrent

    Hi,
    I am running inventory report from concurrent is giving error as rep-0736&rep-1247.That report is giving result in report builder.
    Can anybody please tell me.It's urgent.
    Thank You,

    These two errors are just saying that there is uncompiled PL/SQL in the report:
    REP-0736: There exist uncompiled program unit(s)
    REP-1247: Report contains uncompiled PL/SQL
    When you are running your report in Reports Builder are you using the same database connection as when the report is run from the concurrent manager (ie are you logged on as APPS in Reports Builder)?
    If not, I would guess that the user you are connected to in Reports Builder has access to a database object you are referencing in PL/SQL that the APPS user does not have access to or refers to by a different name.
    If you are connected as APPS, then I would suggest that you do a full recompile in Reports Builder (Program -> Compile -> All) and see if that identifies any errors.

  • Problemas with reports: REP -1247

    I work with Reports Builder 9.0.4.0.21.
    When I run a report appears the following message:
    REP-1247: report contains uncompiled PL/SQL
    I´ve created the report, compile and run ok. Then I've saved the report and when I open reports builder and try to execute the report appears the error.
    What is the problem? I`ve compiled before saving the report
    May anyone help me?
    thanks in advance
    Beatriz

    I compile in pl/sql editor, and the reports run; but when I open the report again, the report is not compiled, and I go to Program->Compile->Whole, and I save the report. When I open the report again it is not compiled.
    I don´t have compile option in file->administration, is it wrong?
    Thanks
    Beatriz

  • Rep-1247 error when starting jsp file on linux

    I have a rather frustrating problem on our production servers...
    We are trying to start jsp files on a linux report server (10Gr2).
    The command is displayed below
    [2007/10/8 10:57:59:853] Info 50132 (EngineImpl:setCommandLine): Get command line: baseUrl=http://xxxxx:7777/reports/rwservlet/getfile/ userid=reporting@SHARED_BE USER_AGENT=Java/1.5.0_07 SERVER_NAME=xxxxxxxxx jobname="/opt/ogreports/catalog/SMC/BE-Shared/xxxx.jsp" destpath="/var/data/og/dashboard/van/sgs/001/reports/xx" getFilestr=/no> imagekey=reports9i par_end_date="01-10-2007" desname=xxxxxxxxxxx.pdf REMOTE_ADDR=127.0.0.1 SERVER_PROTOCOL=HTTP/1.1 authid=RWUser par_start_date="01-09-2007" destype=rcpfile REMOTE_HOST=127.0.0.1 SERVER_PORT=7777 CONTENT_TYPE=application/x-www-form-urlencoded report="/opt/ogreports/catalog/SMC/BE-Shared/xxx.jsp" expiredays=0 baseimageurl=http://xxxxx:7777/reports/rwservlet/getfile/HW/YX+JkD0HSAcVLzaSGilrWNAn36ufghgStsvQqfNFC7w== schedule="00:00 Oct 08, 2007" scphost="lion" desformat=pdf SCRIPT_NAME=/rwservlet par_id_project="1750"
    The after paramform does some major data manipulations, writing to temporary tables (on commit preserve rows), that are used in queries from the reports.
    This seems to go allright. The setup of all queries, program units etc passes as well. But when the report has to start formatting, I get a "1247 Program Unit not compiled" error message. This is an excerpt from the engine trace
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): Start
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): m_jobId = 9182
    [2007/10/8 11:40:40:244] Debug 50103 (EngineImpl:getCacheData): Quit
    [2007/10/8 11:40:40:534] Error 50103 (C Engine): 10:40:40 ERR REP-1247: Report contains uncompiled PL/SQL.
    [2007/10/8 11:40:40:535] Error 50103 (rwfdt:rwfdtprint): 10:40:40 ERR Error occurred sending Job output to cache
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): running
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): quit
    [2007/10/8 11:40:40:580] Debug 50103 (EngineImpl:run): CRunReport returns: 1247
    [2007/10/8 11:40:40:608] Debug 50103 (EngineImpl:run): Quit
    [2007/10/8 11:40:40:699] Exception 1247 (): Report contains uncompiled PL/SQL.
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.engine.EngineImpl.run(EngineImpl.java:447)
    at oracle.reports.engine._EngineClassImplBase._invoke(_EngineClassImplBase.java:90)
    at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
    at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
    at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
    at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
    I know that 1247 normally covers up another error, but I don't seem to get it....
    Funny thing is, when copying the jsp's to another reports server, they do run (on the same DB).
    Message was edited by:
    user599601

    I have a rather frustrating problem on our production servers...
    We are trying to start jsp files on a linux report server (10Gr2).
    The command is displayed below
    [2007/10/8 10:57:59:853] Info 50132 (EngineImpl:setCommandLine): Get command line: baseUrl=http://xxxxx:7777/reports/rwservlet/getfile/ userid=reporting@SHARED_BE USER_AGENT=Java/1.5.0_07 SERVER_NAME=xxxxxxxxx jobname="/opt/ogreports/catalog/SMC/BE-Shared/xxxx.jsp" destpath="/var/data/og/dashboard/van/sgs/001/reports/xx" getFilestr=/no> imagekey=reports9i par_end_date="01-10-2007" desname=xxxxxxxxxxx.pdf REMOTE_ADDR=127.0.0.1 SERVER_PROTOCOL=HTTP/1.1 authid=RWUser par_start_date="01-09-2007" destype=rcpfile REMOTE_HOST=127.0.0.1 SERVER_PORT=7777 CONTENT_TYPE=application/x-www-form-urlencoded report="/opt/ogreports/catalog/SMC/BE-Shared/xxx.jsp" expiredays=0 baseimageurl=http://xxxxx:7777/reports/rwservlet/getfile/HW/YX+JkD0HSAcVLzaSGilrWNAn36ufghgStsvQqfNFC7w== schedule="00:00 Oct 08, 2007" scphost="lion" desformat=pdf SCRIPT_NAME=/rwservlet par_id_project="1750"
    The after paramform does some major data manipulations, writing to temporary tables (on commit preserve rows), that are used in queries from the reports.
    This seems to go allright. The setup of all queries, program units etc passes as well. But when the report has to start formatting, I get a "1247 Program Unit not compiled" error message. This is an excerpt from the engine trace
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): Start
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): m_jobId = 9182
    [2007/10/8 11:40:40:244] Debug 50103 (EngineImpl:getCacheData): Quit
    [2007/10/8 11:40:40:534] Error 50103 (C Engine): 10:40:40 ERR REP-1247: Report contains uncompiled PL/SQL.
    [2007/10/8 11:40:40:535] Error 50103 (rwfdt:rwfdtprint): 10:40:40 ERR Error occurred sending Job output to cache
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): running
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): quit
    [2007/10/8 11:40:40:580] Debug 50103 (EngineImpl:run): CRunReport returns: 1247
    [2007/10/8 11:40:40:608] Debug 50103 (EngineImpl:run): Quit
    [2007/10/8 11:40:40:699] Exception 1247 (): Report contains uncompiled PL/SQL.
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.engine.EngineImpl.run(EngineImpl.java:447)
    at oracle.reports.engine._EngineClassImplBase._invoke(_EngineClassImplBase.java:90)
    at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
    at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
    at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
    at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
    I know that 1247 normally covers up another error, but I don't seem to get it....
    Funny thing is, when copying the jsp's to another reports server, they do run (on the same DB).
    Message was edited by:
    user599601

  • 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
    Najeeb

    I 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

  • REP-771: Unable to find PL/SQL library on Linux

    Hi
    I am getting the
    REP-771: Unable to find PL/SQL library 'reports_helper'
    REP-1247: Report contains uncompiled PL/SQL
    Error on selecting the Report for viewing through application or through the internet explorer by using URL
    Platform : Reports 10g on Linux,
    I also have confusion in where we need to put .pll file so it available at runtime.
    Your thoughts are welcome...and much appreciated
    Thanks
    Jaydeep

    You need to check the following:
    - in Builder when you are adding the library , make sure that you select "remove path ..."
    - on unix you must recompile the pll place it in REPORTS_PATH

Maybe you are looking for