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

Similar Messages

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

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

  • 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

  • Uncompiled PL/SQL Code error in Reports 6i

    I have made a report using Report 6i. Have compiled, saved & run it several times. Very often, when I run it, I get the error message: "Uncompiled PL/SQL code".
    Can anyone help me to get rid of this error?

    hello,
    there are some restrictions on calling specific packages from the database via a remote procedure call. DBMS_SQL is one of them. there is a built-in package called EXEC_SQL that enables you to manage dynamic SQL. use this instead of the database-packages ... for further information on the use of DBMS_* packages see the application developers guide of the database.
    regards,
    the oracle reports team

  • DeskI report with free hand sql

    Hi,
    I have converted a deski report from BO 5x to BO Xi. R3. That report contains a free hand sql connection. The report run fine when running from the server. But it is not when I am trying to refresh it through Infoview; somehow I am getting the CORBA Initialization failiure.
    I tested successfully the connection through Desinger. I am not sure what I need to do next.
    Please help!!!!
    Edited by: Brian Mangan on Sep 9, 2010 10:53 PM

    Hi,
    When a report with free hand sql converted from earlier versions (5x) to latest version (r3 I guess) then the connection parameters sholud be changed in latest version (r3). Please change ur connection parameters in r3. i.e the user name, password and connection string so that in r3 we can connect to back end and then try to refresh the report in webi.
    The Corba Initialization is related to invalid connection to back end.
    Cheers,
    Suresh Aluri.

  • AWR report-Only top 20 SQL's required

    Hi,
    DB Version:10.2.0.4
    What i am doing right now is generating the AWR report and editing the AWR report to list only information related to top 20 SQL's . I do not want to edit the AWR report and my AWR report should only contain top 20 SQL information. Is there any way to generate the AWR report in this way?
    Thanks and Regards,

    user13535250 wrote:
    Hi,
    DB Version:10.2.0.4
    What i am doing right now is generating the AWR report and editing the AWR report to list only information related to top 20 SQL's . I do not want to edit the AWR report and my AWR report should only contain top 20 SQL information. Is there any way to generate the AWR report in this way?
    Thanks and Regards,try querying the v$sql area you can get the sql texts from there.

  • Sorting report columns for PL/SQL report

    I have created a report of type "Pl/Sql function body returning Sql query" in which I am generating the column names within the query. I would now like to make the first three of these columns sortable. But when I click on the "sort" box for the first three columns, all my column names suddenly switch to "Col 1", "Col 2" etc.
    As you can see by the following snippet from the PL/SQL that generates the query, the column names are data driven, so I'm not in a position to declaratively rename each column. As it happens, the first three columns names are fixed, but all the subsequent column names are data driven.
    Suggestions on how to make the first three columns sortable while preserving the generated column names of the remaining columns?
    thanks
    susan weber
    declare
    query varchar2(4000); -- query
    begin
    query := 'select first_name "First Name", last_name "Last Name", encounter_date "Encounter Date" ';
    for c1 in (select distinct attr_src, attr_code, attr_text, sequence_number from finding_vt)
    loop
    query := query || ', (select val_text from finding_vt vt where vt.encounter_id = e.encounter_id and vt.attr_src = ''' || c1.attr_src || ''' and vt.attr_code = ''' || c1.attr_code || ''' and sequence_number = ' || c1.sequence_number || ') "' || substr(c1.attr_text,0,30) || '"';
    END LOOP;
    query := query || ' from patient pat, encounter e where pat.patient_id = e.patient_id';
    return query;
    end;

    This turns out to be related to the choice of "use generic column names" v. "use query specific column names".
    I had chosen "use generic column names" just to get past the initial creation page. I then debugged the query creation sql, but never changed that setting back to "use query specific column names". The fix is to choose "use query specific column names".

  • Running Report in Web Pl/Sql

    Hi All!!
    Which commond should i use to run the Report from Web PL/Sql of
    Designer?
    Thanx
    Pritam

    Hi,
    I am not BOBJ Admin so I don't have on the top of my head that how to do but here two links which might help you.
    [http://blog.mastering-sap-and-businessobjects.com/]
    [http://www.forumtopics.com/busobj/viewtopic.php?p=165424]
    Regards,
    Bashir Awan

  • Query Engine report error with Crystal Report 9 And MS SQL SErver 2000

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...
    Refer the above statement highlighted in BOLD. That statement is WRONG. Select what ???? Try any one of the below statement,
    select ''
    --or
    select 0
    --or
    select null
    Regards, RSingh

  • Crystal Report 8.5 with SQL SERVER 2005 problems

    Post Author: AREVA
    CA Forum: Data Connectivity and SQL
    Hi All !We have some problems with Crystal Reports version 8.5 with SQL Server 2005: 1) When we want to generate a report (using data in SQL Server 2005) we have a popup message error : "impossible to loaded pdssql.dll".2) If we want to use SQL Server 2005, which Crystal Reports version we must used ? Is there any restrictions with this connectivity with 8.5 version ?Please, let me known, all informations about SQL Server 2005 and Crystal Report 8.5.Thanks for all !Best regards Anthony

    Hello Kamlesh,
    There is no expectation that the ActiveX viewer (RDC?) from CR8.5 will work in any version of Visual Studio .NET. There is also no expectation that the ActiveX viewer from CR8.5 will work on a machine with a 64 bit operating system.
    You're using VS2008. You should migrate to the bundled edition of CR for VS2008 (v10.5), the ReportDocument object, and the .NET Windows form viewer or Web form viewer.
    Sincerely,
    Dan Kelleher

  • Can't get around this error after adding second dataset...A scope is required for all aggregates used outside of a data region unless the report contains exactly one dataset

    I added a dataset to an existing report and broke an aggregation.  In the old (i.e. single dataset) report, this expression below worked fine.  I wanted to get a distinct count of the vst_ext_id field when my educated field was like "VTE1*"
    = CountDistinct(IIF(Fields!educated.Value like "VTE1*", Fields!vst_ext_id.Value, Nothing))
    After adding a new dataset, this no longer works and I get the error " A scope is required for all aggregates used outside of a data region unless the report contains exactly one dataset".  Having done some research online, I found that I
    needed to specify my dataset explicitly and I thought this new expression might work, but still no success...
    = CountDistinct(IIF(Fields!educated.Value,"DataSet1" like "VTE12*", Fields!vst_ext_id.Value,"DataSet1", Nothing))
    Am I missing something?  Based on online responses, this explicit dataset naming convention seems to help most people, but it isn't working for me. 
    Thanks in advance!
    Brian

    I found the answer.  Apparently, my expression syntax was off.  This expression does the trick...
    = CountDistinct(IIF(Fields!educated.Value like "VTE12*", Fields!vst_ext_id.Value,Nothing),"DataSet1")
    I just happened upon this particular syntax searching online.  I was trying to specify the dataset name after each .value, but I never got that to work.   This is the only time I have found this particular syntax online. 

  • Sharepoint 2013 SSRS Interaction with Sql Server 2012 Reporting Services connecting to Sql Server 2008 R2 database

    Hi
    I'm working on upgrading sharepoint 2010 to sharepoint 2013 with sql server 2008 r2. I've ran into some problems but have been able to get a test farm upgraded. However to run SSRS 2013 it seems Sql Server 2012 Reporting Services are required. Upgrading
    to a full sql server 2012 database isn't an option. I know that sql server 2012 reporting services can use sql server 2008 r2 as a catalog and content database so I was wondering could this be a workaround? Importantly would I need a separate machine/virtual
    machine to host sql server 2012 reporting services? or could it live on the sql server 2008 r2 machine? Any pointers appreciated. Thanks Dan

    Remember that SSRS must be deployed on the SharePoint server. Having said that, yes you can install SSRS 2012 SP1 on a server running SQL 2008 R2. And yes, you can use 2008 R2 as your Database Engine server while SSRS 2012 SP1 runs on the SharePoint server.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for