Cannot Compile Forms

I cannot compile forms for FLEXCUBE sitting on the Oracle 10g using the allcompile.sh. I upgraded my AIX maintenance level from 5.3.0.0 - 02 to 5.3.0.0 - 03. After that I tried to compile a form but now it is saying failed. Can anyone assist me?

Try to contact i-flex solution and to give them the error message and/or message.
http://www.iflexsolutions.com/iflex/ContactUs/ContactOffices.aspx?mnu=p7s1

Similar Messages

  • Cannot compile form..  the PLL's are not being recognized

    I'm in the Oracle Forms tool and have a form that I'm trying to compile. The PLL's are in the same directory. I get lots of error messages saying it cannot find the functions within the libraries. I've got around some of this by copying the funcitons I need under the program units in the form but I should need to do this. The compiler should find the functions in the PLL's.
    Thanks, Scott

    Hi!
    You have to attach the plls to your form.
    For this click in the navigator on the Attached Libraries node.
    Click add (green {color:green}*+*{color} button in the left toolbar).
    Click browse and search for your first pll in the open dialog.
    Click Attach and then click Yes in the Remove path dialog.
    Repeat the above steps until all plls you need are attached.
    may first remove the copied program units from the form.
    Then press ctrl-shift-k to compile all pl/sql in your form and check for errors.
    Regards

  • Cannot compile form on unix. identifier 'CHECK_COMMIT' must be declared

    Hello
    I am getting the following error when I try to compile a form on unix. Error identifier 'CHECK_COMMIT' must be declared
    Compiling procedure DISPLAY_TAB...
    Compilation error on procedure DISPLAY_TAB:
    PL/SQL ERROR 201 at line 12, column 1
    identifier 'CHECK_COMMIT' must be declared
    PL/SQL ERROR 0 at line 12, column 1
    Statement ignored
    PL/SQL ERROR 201 at line 32, column 7
    identifier 'CHECK_COMMIT' must be declared
    PL/SQL ERROR 0 at line 32, column 7
    Statement ignored
    Compiling procedure SET_TAB_STATUS...
    No compilation errors.
    Compiling procedure SELECT_REQUESTOR...
    No compilation errors.
    Compiling procedure SELECT_ALT_REQUESTOR...
    No compilation errors.
    Form not created
    It seems to only occur where a program unit is calling a procedure in an attached library. All the libraries exist.
    my FORMS_PATH is set to
    /famisapps/fmsd/msd:/famisapps/fmsd/libs/:/apps3/famis/dev/forms:/famisapps/fmsd/forms
    All the libraries are in /famisapps/fmsd/libs/
    The forms are in /famisapps/fmsd/forms
    The library in question is called common.pll. I have renamed it COMMON.PLL, COMMON.pll and Common.pll
    Any help ideas would be apprecaited.
    David

    are you getting the same error when compiling from frmcmp.sh and from builder even after setting the FORMS_PATH ?
    with this make any difference FORMS_PATH
    changing
    /famisapps/fmsd/msd:/famisapps/fmsd/libs/:/apps3/famis/dev/forms:/famisapps/fmsd/forms
    to
    /famisapps/fmsd/msd:/famisapps/fmsd/libs:/apps3/famis/dev/forms:/famisapps/fmsd/forms

  • PDE-PDS001 cannot compile pu against 10g database

    Error occurs when compiling form/library 10as/10g db
    database version 10.1.0.2
    forms version 9.0.4.0.19 also forms6i patch15
    library that can be succesfully compiled against ver 8.1.7.3 and 9.2.0.3 cannot be compiled against 10g database
    PDE-PDS001 Could not resolve reference to <Unknown Program Unit> while loading Procedure Body
    I've got a procedure in a library which reference database package record type
    error 905 object package <name> is invalid - but Database package is valid !
    Searching metalink I came across similar issues with earlier versions of database/tool combinations - Has this error surfaced again ?
    Database package specification includes (in additions to procs/functions) the following:
    TYPE suppress_tabtype IS TABLE OF VARCHAR2 (15) INDEX BY BINARY_INTEGER;
    -- public program units
    TYPE message_rectype IS RECORD
    ( msg_code VARCHAR2(15)
    , severity VARCHAR2(1)
    , severity_desc VARCHAR2(100) -- Translated description of severity
    , suppr_wrng_ind VARCHAR2(1)
    , suppr_always_ind VARCHAR2(1)
    , logging_ind VARCHAR2(1)
    , msg_text VARCHAR2(2000)
    , help_text VARCHAR2(2000)
    , lang_code VARCHAR2(3)
    , raise_error BOOLEAN
    , message_found BOOLEAN);
    TYPE message_tabtype IS TABLE OF message_rectype INDEX BY BINARY_INTEGER;
    Does a patch exist ?
    TIA
    Pete

    Hi Pete
    I encountered the same problem in Oracle Forms 10g (9.0.4.0.19) with an Oracle 10g database. My error was caused by default values in the form of a function call in one of the procedures functions
    f.e.
    package my_package
    function my_function
    ( par1 varchar2
    , par2 varchar2 default my_function_in_another_package
    ) return varchar2;
    end;
    Remove the default value in the function parameter par2 and everything works fine
    Hope this helps,
    Matthieu

  • Forms 6i Menu Items not Lauchning (FRM-40010: Cannot read form...)

    Sorry for the newbie issue - I just haven't been able to figure this out...
    I inherited maintenance of a old Oracle Forms Application, I was told it was version 5. And all the source modules were appended with "v05" like form1_v05.fmb, etc. I since discovered that when the users launch it they run against the forms 6i run time - so I guess this means it is actually a forms version 6i application.
    The App has about 20 forms, 20 reports and a menu - and no project.
    I copied all the source files into a working directory, then I created a project with the project builder using the "use all files in the current directory".
    When I run the app ( by drilling down to this app's "logo" form - a splash screen contain our company logo, and a Menu structure it runs fine.
    But just about every menu item I attempt to select ( i.e. MENU->Catagory1->OrderForm or in my case something like MENU->Inbound->Entry/Maintenance) results in no new form launching and the status bar contains the error message like "FRM-40010: Cannot read form order_v05.fmx"
    In the above example the project does contain a order_v05.fmb, and it compiles fine ( in fact a project "build all" generates no errors or warnings ) - my single working directory contain all the source modules ( like fmb's, rdf's and mmb's) and compiled versions ( fmx's, mmx ) . Specificlly the order_v05.fmx is also there.
    So why can't the app find the compiled form compiled in the same project and located in the same directory?
    I also see several ERR files but the only thing the err files contain is a whole lot of lines saying things like " Compiling POST-FORM trigger on form... No compilation errors."
    Any help getting this beast to run would be appreciated.

    I may have a clue as to what is causing the issue, but don't know how to fix it.
    I started poking in the menu items, and the child menu item that is supposed to do something runs some "Menu Item code" like this:
    begin
         hide_window('DLG_MAIN');
    CALL_FORM( 'out_order_v05.fmx'
    , no_hide
    , do_replace
    , no_query_only
    , no_share_library_data );
    show_window('DLG_MAIN');
    end;I made a NEW root menu item, with a new child menu item and set it's "Menu Item code" like this:
    begin
         hide_window('DLG_MAIN');
    CALL_FORM( 'C:\Data\_OraFroms\ITFS_V05\order_v05.fmx'
    , no_hide
    , do_replace
    , no_query_only
    , no_share_library_data );
    show_window('DLG_MAIN');
    end;And when I made this change, my new menu item launched the form, but the original one did not ( notice the only difference is my new menu item gives a fully qualified path to the file name ).
    So it looks like my project is clueless as to it's own home directory - anyone know how I clue it in?

  • Cannot open form with a button

    Hi folks, I'm new to Developer, so apologies.
    I am opening a form xxx by attaching a smart trigger of WHEN-BUTTON-PRESSED to a button by
    call_form('xxx');
    It compiles fine, but when I evesute the form, it says errer 400010 cannot read form. Any ideas?
    Thx,
    Ken

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Carter:
    Put the called form's fmx file in a directory specified in the FORMS60_PATH key in the registry
    <HR></BLOCKQUOTE>
    More simply, you can pass the parameter with the path. ie call_form('c:\xxx.fmx') and so.
    If you want to pass any other parameters check it in the help for call_form. Tip. You also can use run_form/new_form to call a new form and go_form to navigate b/w forms.

  • Frm-40010 cannot read form oracle apps

    Hi Friends,
    I am trying to build a multi form. Form A calls Form B. Both the forms are compiled and I have placed them in the forms/US folder. Both the fmx files have been generated. Form A is accessed from Function. When I click on the function Form A opens up. On clicking a button in Form A, form B opens up. But when I clidk the button I get the error
    FRM:40010 Cannot read Form.
    Both the .fmx files are generated. We are on 12.1.3
    Can someone give me any hints to debug this or let me know what could be the issue. I have not created any function for Form B and Form A passes alomost a dozen parameters to Form B.
    Thanks in Advance

    user9197772 wrote:
    Hi Friends,
    I am trying to build a multi form. Form A calls Form B. Both the forms are compiled and I have placed them in the forms/US folder. Both the fmx files have been generated. Form A is accessed from Function. When I click on the function Form A opens up. On clicking a button in Form A, form B opens up. But when I clidk the button I get the error
    FRM:40010 Cannot read Form.
    Both the .fmx files are generated. We are on 12.1.3
    Can someone give me any hints to debug this or let me know what could be the issue. I have not created any function for Form B and Form A passes alomost a dozen parameters to Form B.
    Thanks in AdvanceAre the forms under the correct CUSTOM_TOP/forms/<US> directories?
    What is the complete error message you get? Does the error message show any path?
    If you want to get more details about the error, please obtain FRD log file -- https://forums.oracle.com/forums/search.jspa?threadID=&q=FRD+AND+R12&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • FRM-40010 Cannot acces form in a new config

    Dear,
    We have several configurations on our OAS.
    forms/frmservlet?config=tool
    forms/frmservlet?config=status21
    Now i want to create a new configuration.
    forms/frmservlet?config=suppliertool
    I've created a third .env file, where the forms_path is the path where the forms files are located.
    I've also modified the formsweb.cfg and added the following rules.
    [suppliertool]
    form=startup.fmx
    pageTitle=Supplier tool 1.0
    envfile=suppliertool.env
    lookAndFeel=generic
    width=640
    height=480
    separateFrame=true
    # These settings support running and debugging a form from the Builder:
    otherparams=buffer_records=%buffer% debug_messages=%debug_messages% array=%array% obr=%obr% query_only=%query_only% quiet=%quiet% render=%render% record=%record% tracegr
    oup=%tracetroup% log=%log% term=qmsrf65w.res
    When i try to open the new config i get the FRM-40010 error?
    I have copied te startup.fmx, and did not compile the form. Is that a problem?

    Hi,
    While running the f60desm command gives below error
    FRM-40010: Cannot read form /d01/oracle/prodappl/au/11.5.0/forms/US/PROJECT.fmxDo you have this fmx file located under the $AU_TOP/forms/US directory?
    Do you get the same error with other custom forms under the same directory or just this specific form?
    I have defined the following path
    1) customPROD_A.env
    ## PROJECT custom top ##
    PROJECT_TOP=/d01/oracle/prodappl/PROJECT/11.5.0
    export PROJECT_TOPWhat does "Echo $PROJECT_TOP" return?
    2) APPSPROD_A.env
    customfile=/d01/oracle/prodappl/customPROD_A.env
    if [  -f $customfile ]; then
    . /d01/oracle/prodappl/customPROD_A.env
    fi
    . /d01/oracle/prodora/8.0.6/PROD_A.env
    . /d01/oracle/prodappl/PROD_A.envHave you sourced the env file again after setting the PRODUCT_TOP? Have you bounced the application services as well?
    Thanks,
    Hussein

  • FRM-40010 cannot read form c:\temp\test_form

    Hi all,
    I have a strange problem, I'm working on Forms 4.5, I have made a copy of folder ORANT
    from another machine and I did also import of Oracle key into my registry from this machine.
    Forms seems to be working ok, I could edit and compile my form, but when I'm trying to execute my form I'm getting an error
    FRM-40010 cannot read form c:\temp\test_form
    Any idea would be helpful.
    Brano

    Copying the orant folder from one PC to another and importing the Oracle key is NOT the right way to install the software, it MIGHT SEEM to work fine but it never does.
    You need to install it using Oracle Installer.
    Make sure the FORMS45_PATH registry string contains the correct directory information where you store your forms.
    Tony

  • ERROR: FRM-40010 : Cannot read form ...

    When I try to run any form for second time from Oracle Forms Builder the browser prints mi html code instead of loading the form. And when try to call another form from the curret this error occurs - ERROR: FRM-40010 : Cannot read form ... I have add the path in the registry in the FORMS90_PATH
    Can you help me, please?

    Hi,
    Cause:  One of the following:
    1. You entered a nonexistent form name.
    2. You typed an incomplete path.
    3. You do not have the proper privileges to run the form.
    4. You do not have a compiled copy of the form.
    Action:  Retype the form name correctly, provide the proper path name, compile the form.
    Moreover you said that you have added path in FORMS90_PATH. Does your forms really exists in this directory. Check out this also.

  • Database link error when compiling forms 6.0 and forms 6i.

    Dear sirs,
    We have a database link between two databases of the same version oracle 8.0.5.
    Recently we have upgraded one of our databases to version 9.2.0.1 (the database where the database link was originally created ) and now we are having problems when compiling forms that have PL/SQL blocks using the database link.
    The error message received when compiling the form is the following:
    ORA-02068: Following severe error from dbproduc.world
    ORA-00600: Internal error code, arguments: [No conversion op],[],[],[],[],[],[],[]
    The forms did not present this error before, it began when we made the upgrade.
    Is this a FORMS 6.0 problem ?
    Is this an ORACLE 8.0.5 problem ?
    Is this an ORACLE 9.2.0.1 problem ?
    Can you please give me some advice to solve this problem ?
    Thanks in advance

    As I see, when you use a non-oracle database the tables don`t appear, you must create the realation with the table manually, on the properties

  • Show a insert trigger error message on a compiled form

    Good Morning
    Is there any way to get a oracle complied form to display a message
    from a trigger insert event.
    My problem is that we have proprietry oracle froms application (with compiled
    forms and no source code. I need to raise some sort of warning message
    from the form when certain condition occurs.
    I have tried using some code like below in the trigger
    but the dbms_output.put_line does not output anything
    nor the EXCEPTION
    DECLARE MY_ERROR exception;
    begin
    DBMS_OUTPUT.ENABLE;
    dbms_output.put_line('outputting this message');
    raise MY_ERROR;
    EXCEPTION
    WHEN others THEN Raise;
    END;
    thanks
    David Hills

    You don't need to get at the source code of the form. The example you gave will stop the execution of any process and you said it should happen for an insert event. So a Raise_Application_Error in a database trigger would be sufficient.
    Hopefully the vendor has put code in their on-error triggers which will cut the message out of a user-defined exception and display it as an alert (this is so much a better method than returning numbers to indicate success or type of failure). If not then the message will be rather ugly but it will at least get the job done.
    James.

  • Cannot add form fields in document

    Acrobat Pro version 9.1.2
    Windows XP SP 3
    I have a document that I cannot add form fields to. When I try I get a message that says "You cannot edit the file as a form due to its security settings.
    When I go to Advanced->Security->Show Security Properties. The security method is set to No Security and everything is "Allow" under the Document Restrictions Summary.
    Where is there a security issue?

    Lori,
    How did you identify the PDF/A option? I am just curious for my future reference. I could not find it.
    ==================
    Rupey,
    The fonts are not embedded and that may also be something to address. A lot of these issues may be related to the 3rd party product used to create the PDF.

  • PLS-00304: cannot compile body of package without its specification

    Hi all,
    While compiling the below pasted package , I got the following error msg.
    PL/SQL: Compilation unit analysis terminated
    PLS-00304: cannot compile body of 'EDR_RPT_CLASS_BY_TAWT_PACKAGE'
    without its specification
    PLS-00905: object HDOT.EDR_RPT_CLASS_BY_TAWT_PACKAGE is invalidBut I believe that have declared package and ppackage body specification correctly. Please could anyone help me to find out the error
    CREATE OR REPLACE PACKAGE edr_rpt_class_by_tawt_package AS
    PROCEDURE edr_rpt_gen_class_by_tawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    PROCEDURE edr_rpt_gen_class_by_fawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    PROCEDURE edr_rpt_gen_class_by_sawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    PROCEDURE edr_rpt_gen_class_by_triawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    PROCEDURE edr_rpt_gen_class_by_qawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    FUNCTION  class_count
      in_lane_id                  edr_rpt_by_ranges_output.lane_id%TYPE,
      in_direction_id             edr_rpt_by_ranges_output.direction_id%TYPE,
      in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_interval_end_date_time   edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_axle_wt_min              edr_cls_by_tawt_report_data.group_weight%TYPE,
      iin_axle_wt_max             edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_class_min                edr_cls_by_tawt_report_data.vehicle_class%TYPE,
      in_class_max                edr_cls_by_tawt_report_data.vehicle_class%TYPE
    RETURN VARCHAR2;
    END edr_rpt_class_by_tawt_package;
    CREATE OR REPLACE PACKAGE BODY edr_rpt_class_by_tawt_package AS
       c_front_axle_only         CONSTANT axle_class.group_type%TYPE := -1;
       c_axle_single_group_type  CONSTANT axle_class.group_type%TYPE := 1;
       c_axle_tandem_group_type  CONSTANT axle_class.group_type%TYPE := 2;
       c_axle_tridem_group_type  CONSTANT axle_class.group_type%TYPE := 3;
       c_axle_quadrem_group_type CONSTANT axle_class.group_type%TYPE := 4;
       c_kips_conversion_unit_id CONSTANT units.unit_id%TYPE         := 8;
       v_report_axle_group_type  axle_class.group_type%TYPE := 0;
    FUNCTION  class_count
      in_lane_id                  edr_rpt_by_ranges_output.lane_id%TYPE,
      in_direction_id             edr_rpt_by_ranges_output.direction_id%TYPE,
      in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_interval_end_date_time   edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_axle_wt_min              edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_axle_wt_max              edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_class_min                edr_cls_by_tawt_report_data.vehicle_class%TYPE,
      in_class_max                edr_cls_by_tawt_report_data.vehicle_class%TYPE
    RETURN NUMBER
    IS
      my_count_result NUMBER(18);
    BEGIN
       SELECT NVL(SUM(vehicle_count), 0 )
       INTO my_count_result
       FROM
            SELECT site_lane_id
            FROM   edr_rpt_tmp_report_lanes
            WHERE  edr_rpt_tmp_report_lanes.output_lane_id        = in_lane_id
              AND  edr_rpt_tmp_report_lanes.output_direction_id   = in_direction_id
           ) report_lanes
       JOIN edr_cls_by_tawt_report_data
         ON edr_cls_by_tawt_report_data.site_lane_id          = report_lanes.site_lane_id
       WHERE edr_cls_by_tawt_report_data.bin_start_date_time >= in_interval_start_date_time
         AND edr_cls_by_tawt_report_data.bin_start_date_time <  in_interval_end_date_time
         AND edr_cls_by_tawt_report_data.group_weight >= in_axle_wt_min
         AND edr_cls_by_tawt_report_data.group_weight  < in_axle_wt_max 
         AND edr_cls_by_tawt_report_data.vehicle_class >= in_class_min
         AND edr_cls_by_tawt_report_data.vehicle_class <= in_class_max
       RETURN my_count_result;
    END;
    FUNCTION get_row_class_counts_text
    RETURN VARCHAR2
    IS
       my_row_counts_text  VARCHAR2(10000);
       my_row_counts_entry  VARCHAR2(10000);
       CURSOR row_counts_text IS
         SELECT 'edr_rpt_class_by_tawt_package.class_count('
                           ||'lane_id, '
                           ||'direction_id, '
                           ||'interval_start_date_time, '
                           ||'interval_end_date_time, '
                           ||'range_low, '
                           ||'range_high, '
                           || class_id || ', '
                           || class_id || ') "'|| class_id || '"'
         FROM edr_rpt_tmp_report_classes
         ORDER BY class_id;
    BEGIN
      my_row_counts_text   := '';
      my_row_counts_entry  := '';
      -- generate the speed ranges function calls
      OPEN row_counts_text;
      LOOP
        FETCH row_counts_text INTO my_row_counts_entry;
        EXIT WHEN row_counts_text%NOTFOUND;
        my_row_counts_text := my_row_counts_text || ', ' || my_row_counts_entry;
      END LOOP;
      CLOSE row_counts_text;
      RETURN my_row_counts_text;
    END;
    FUNCTION get_row_totals_text
    RETURN VARCHAR2
    IS
       my_row_count_total_text  VARCHAR2(10000);
    BEGIN
      my_row_count_total_text := '';
      -- generate the 'total' column function call
      SELECT 'edr_rpt_class_by_tawt_package.class_count('
                           ||'lane_id, '
                           ||'direction_id, '
                           ||'interval_start_date_time, '
                           ||'interval_end_date_time, '
                           ||'range_low, '
                           ||'range_high, '
                           || MIN(class_id) || ', '
                           || MAX(class_id) || ') " "'
      INTO my_row_count_total_text
      FROM edr_rpt_tmp_report_classes;
      RETURN ', ' || my_row_count_total_text;
    END;
    PROCEDURE apply_default_awt_ranges(in_report_parameter_id   IN   NUMBER)
    IS
      my_awt_ranges_count NUMBER(4);
    BEGIN
    SELECT nvl(count(1),0)
    INTO my_awt_ranges_count
    FROM report_range_parameters
    WHERE REPORT_PARAMETER_ID = in_report_parameter_id
       AND REPORT_PARAMETER_GROUP = 'AXLE_GROUP'
       AND REPORT_PARAMETER_NAME = 'AXLE_NAME';
    IF  ( my_awt_ranges_count = 0 )
    THEN
      INSERT INTO report_range_parameters (REPORT_PARAMETER_ID, REPORT_PARAMETER_GROUP, REPORT_PARAMETER_NAME, REPORT_PARAMETER_MIN_VALUE, REPORT_PARAMETER_MAX_VALUE)
        VALUES (in_report_parameter_id, 'AXLE_GROUP', 'AXLE_NAME', '0', '2');
        VALUES (in_report_parameter_id, 'AXLE_GROUP', 'AXLE_NAME', '30', '32');
    END IF;
    END;
    PROCEDURE edr_class_by_tawt_use_per_veh
       in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
       in_good_status_mask      IN      NUMBER
    IS
    max_axle_group_value NUMBER(12);
    BEGIN
      DELETE FROM edr_cls_by_tawt_report_data;
      COMMIT;
      INSERT INTO edr_cls_by_tawt_report_data
                      site_id,
                      site_lane_id,
                      site_direction_id,
                      site_direction_name,
                      bin_start_date_time,
                      group_weight,
                      bin_id,
                      bin_value
      SELECT site_id,
             site_lane_id,
             site_direction_id,
             site_direction_name,
             date_time,
             group_weight,
             vehicle_class,
             COUNT(vehicle_class)
      FROM
               SELECT edr_cls_by_tawt_per_veh_data.*
                 FROM edr_cls_by_tawt_per_veh_data          
         GROUP BY date_time,
               site_lane_id,
               group_weight,
               vehicle_class,
               site_id,
               site_direction_id,
               site_direction_name;
    END edr_class_by_tawt_use_per_veh;
    PROCEDURE edr_class_by_tawt_data_type
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      in_good_status_mask      IN      NUMBER,
      in_data_type             IN      VARCHAR2,
      out_data_type_used          OUT  VARCHAR2
    IS
      my_bin_entry_count   NUMBER(12,0);
      my_veh_entry_count   NUMBER(12,0);
    BEGIN
      IF(UPPER(in_data_type) = 'BINNED') THEN
        --  Axle information can only be read from Per Vehicle data records
        --   - using bins-only is not a supported option
        RAISE_APPLICATION_ERROR(-20101,'Binned data cannot be used for this report.');
      ELSIF    (UPPER(in_data_type) = 'PERVEHICLE')
            OR (UPPER(in_data_type) = 'COMBINED')
      THEN
        out_data_type_used := 'Per Vehicle (All Vehicles)';
        edr_class_by_tawt_use_per_veh( in_report_parameter_id, in_good_status_mask );
      ELSE
         RAISE_APPLICATION_ERROR(-20101,'The data type specified is not recognized.');
      END IF;
    END edr_class_by_tawt_data_type;
    PROCEDURE edr_class_by_tawt_get_veh_data
      in_report_parameter_id   IN   NUMBER,
      in_site_id               IN   NUMBER,
      in_start_date_time       IN   TIMESTAMP,
      in_end_date_time         IN   TIMESTAMP,
      in_report_level_min      IN   NUMBER,
      in_report_level_max      IN   NUMBER
    IS
    BEGIN
      DELETE FROM edr_cls_by_tawt_per_veh_data;
      INSERT INTO edr_cls_by_tawt_per_veh_data
              site_id,
              site_lane_id,
              site_direction_id,
              site_direction_name,
              record_id,
              date_time,
              group_weight,
              vehicle_class,
              group_number,
              vehicle_status,
              vehicle_error_count,
              axle_violations_count,
              group_type         
      SELECT axle_info.site_id,
             axle_info.site_lane_id,
             axle_info.site_direction_id,
             axle_info.site_direction_name,
             axle_info.record_id,
             axle_info.datetime,
             axle_info.group_weight,
             axle_info.v_class,
             axle_info.group_number,
             NVL((SELECT SUM(status_code)
                    FROM traffic_status
                   WHERE traffic_status.record_id = axle_info.record_id), 0) vehicle_status,
             NVL((SELECT COUNT(error_code)
                    FROM traffic_error
                   WHERE traffic_error.record_id = axle_info.record_id), 0) vehicle_error_count,
             NVL((SELECT COUNT(1)
                    FROM axle_weight_violation
                   WHERE axle_weight_violation.record_id = axle_info.record_id), 0) axle_violations_count,
             axle_info.group_type           
        FROM (SELECT site_to_data_source_lane_v.site_id,
                     site_to_data_source_lane_v.site_lane_id,
                     site_to_data_source_lane_v.site_direction_id,
                     site_to_data_source_lane_v.site_direction_name,
                     traffic_record.record_id,
                     traffic_record.datetime,
                     NVL(traffic_class.v_class, 0)   v_class,
                     NVL(axle_class.group_type, 0)   group_type,
                     NVL(axle_class.group_number, 0) group_number,               
                     NVL(TRUNC(sum(convert_units(axle.weight_unit_id,
                                             c_kips_conversion_unit_id,
                                             axle.axle_weight
                           0
                         ) group_weight
               FROM  traffic_record
               JOIN  site_to_data_source_lane_v
                 ON  traffic_record.data_source_id = site_to_data_source_lane_v.data_source_id
                AND  traffic_record.lane = site_to_data_source_lane_v.data_source_lane_id                   
           GROUP BY site_to_data_source_lane_v.site_id,
                     site_to_data_source_lane_v.site_lane_id,
                     site_to_data_source_lane_v.site_direction_id,
                     site_to_data_source_lane_v.site_direction_name,
                     traffic_record.record_id,
                     traffic_record.datetime,
                     traffic_class.v_class,                
                     axle_class.group_type,
                     axle_class.group_number
            ) axle_info
    END edr_class_by_tawt_get_veh_data;
    PROCEDURE gen_class_by_axle_type
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      apply_default_awt_ranges(in_report_parameter_id);
      my_date_format_mask   := edr_rpt_generic_package.edr_rpt_get_date_format_mask(in_report_parameter_id);
      my_start_date_time    := edr_rpt_generic_package.edr_rpt_get_start_date_time(in_report_parameter_id, my_date_format_mask);
      my_end_date_time      := edr_rpt_generic_package.edr_rpt_get_end_date_time(in_report_parameter_id, my_date_format_mask);
      my_lane_grouping      := edr_rpt_generic_package.edr_rpt_get_lane_grouping(in_report_parameter_id);
      my_site_id            := edr_rpt_generic_package.edr_rpt_get_site_id(in_report_parameter_id);
      my_selected_data_type := edr_rpt_generic_package.edr_rpt_get_data_type(in_report_parameter_id);
      -- ensure selected classes and lanes temp tables have been populated
      edr_rpt_generic_package.edr_rpt_gen_tmp_lanes(in_report_parameter_id);
      edr_rpt_generic_package.edr_rpt_gen_tmp_classes(in_report_parameter_id);
      edr_rpt_generic_package.edr_rpt_gen_tmp_speed_ranges(in_report_parameter_id);
      my_good_weight_statuses_mask   := edr_rpt_generic_package.get_good_weight_status_mask(in_report_parameter_id);
      edr_rpt_generic_package.edr_rpt_gen_inclusion_table
        in_report_parameter_id,
        my_date_format_mask,
        my_start_date_time,
        my_end_date_time
      edr_rpt_generic_package.edr_rpt_gen_grouping_table
        in_report_parameter_id,
        my_date_format_mask,
        my_start_date_time,
        my_end_date_time
      edr_class_by_tawt_get_veh_data
        in_report_parameter_id,
        my_site_id,
        my_start_date_time,
        my_end_date_time,
        0,                          --Hardcoded until reclassification is supported.
        0                           --Hardcoded until reclassification is supported.
      edr_class_by_tawt_data_type
        in_report_parameter_id,
        my_good_weight_statuses_mask,
        my_selected_data_type,
        my_used_data_type
      edr_rpt_generic_package.gen_rpt_by_ranges_output_table
        in_report_parameter_id,
        'AXLE_GROUP',
        'AXLE_NAME'
      COMMIT;
      my_report_data_statement :=
          ' SELECT rank "Rank", '
        ||       ' row_type "Row Type", '
        ||       ' interval_start_date_time "Date", '
        ||       ' interval_start_date_time, '
        ||       ' range_label "Chart X-Axis", '
        ||       ' lane_id "Group Id" , '
        ||       ' ''None'' "Group Name", '
        ||       ' range_label "Speed (mph)" '
        ||         get_row_class_counts_text
        ||         get_row_totals_text
        ||       ' FROM edr_rpt_by_ranges_output '
        ||       ' ORDER BY lane_id, '
        ||                ' direction_id, '
        ||                ' interval_start_date_time, '
        ||                ' range_high, '
        ||                ' rank, '
        ||                ' range_low'
      dbms_output.put_line('SQL start------------------------');
      dbms_output.put_line(my_report_data_statement);
      dbms_output.put_line('SQL end--------------------------');
      my_chart_data_statement :=
           ' SELECT range_low "X Axis", '
        ||        ' lane_id "Group" '
        ||         get_row_class_counts_text
        || ' FROM '
        || ' ( '
        || ' SELECT lane_id, '
        ||        ' direction_id, '
        ||        ' range_low, '
        ||        ' range_high, '
        ||        ' min(interval_start_date_time) interval_start_date_time, '
        ||        ' max(interval_end_date_time) interval_end_date_time '
        || ' FROM edr_rpt_by_ranges_output '
        || ' WHERE rank = 1 '
        || ' GROUP BY lane_id, direction_id, range_low,  range_high '
        || ' ) '
        || ' order by "Group", range_low '
      dbms_output.put_line('SQL start------------------------');
      dbms_output.put_line(my_chart_data_statement);
      dbms_output.put_line('SQL end--------------------------');
      SELECT my_used_data_type
        INTO my_data_type_used
        FROM SYS.DUAL;
      SELECT NVL(COUNT(DISTINCT record_id), 0)
        INTO my_per_vehicle_total
        FROM edr_cls_by_tawt_per_veh_data;
      SELECT NVL(COUNT(DISTINCT record_id), 0)
        INTO my_status_vehicle_total
        FROM edr_cls_by_tawt_per_veh_data
       WHERE vehicle_status > 0
         AND vehicle_error_count = 0;
      SELECT NVL(COUNT(DISTINCT record_id), 0)
        INTO my_error_vehicle_total
        FROM edr_cls_by_tawt_per_veh_data
       WHERE vehicle_error_count > 0;
      SELECT NVL(COUNT(DISTINCT record_id), 0)
        INTO my_status_clear_total
        FROM edr_cls_by_tawt_per_veh_data
       WHERE vehicle_status = 0
         AND vehicle_error_count = 0;
      SELECT NVL(COUNT(1), 0)
        INTO my_binned_vehicle_total
        FROM edr_cls_by_tawt_per_veh_data;
      SELECT NVL(COUNT(1), 0)
        INTO my_good_weight_total
        FROM edr_cls_by_tawt_per_veh_data
       WHERE vehicle_error_count = 0
         AND BITAND(vehicle_status, my_good_weight_statuses_mask) = 0;
      -- insert vehicle totals into the temporary table
      DELETE FROM edr_rpt_tmp_veh_totals_table;
      INSERT INTO edr_rpt_tmp_veh_totals_table
      SELECT my_data_type_used,
             my_per_vehicle_total,
             my_binned_vehicle_total,
             my_error_vehicle_total,
             my_status_vehicle_total,
             my_good_weight_total,
             my_status_clear_total
        FROM SYS.DUAL;
      -- execute the query into the output refcursor
      OPEN report_data FOR
        my_report_data_statement;
      OPEN chart_data FOR
        my_chart_data_statement;
      OPEN footer_data FOR
        SELECT data_type_used,
               per_vehicle_total,
               binned_vehicle_total,
               error_vehicle_total,
               status_vehicle_total,
               good_weight_total,
               status_clear_total
          FROM edr_rpt_tmp_veh_totals_table;
    END gen_class_by_axle_type;
    PROCEDURE edr_rpt_gen_class_by_sawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      v_report_axle_group_type := c_axle_single_group_type;
      gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
    END;
    PROCEDURE edr_rpt_gen_class_by_fawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      v_report_axle_group_type := c_front_axle_only ;
      gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
    END;
    PROCEDURE edr_rpt_gen_class_by_tawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      v_report_axle_group_type := c_axle_tandem_group_type;
      gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
    END;
    PROCEDURE edr_rpt_gen_class_by_triawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      v_report_axle_group_type := c_axle_tridem_group_type;
      gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
    END;
    PROCEDURE edr_rpt_gen_class_by_qawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      v_report_axle_group_type :=  c_axle_quadrem_group_type;
      gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
    END;
    END edr_rpt_class_by_tawt_package;
    LIST
    SHOW ERROR

    Hi,
    PLS-00304: cannot compile body of 'EDR_RPT_CLASS_BY_TAWT_PACKAGE'
    without its specificationThis error usually indicates an issue with used datatypes in a package spec. that differs from a package body.
    Check your spec:
    FUNCTION  class_count
      in_lane_id                  edr_rpt_by_ranges_output.lane_id%TYPE,
      in_direction_id             edr_rpt_by_ranges_output.direction_id%TYPE,
      in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_interval_end_date_time   edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_axle_wt_min              edr_cls_by_tawt_report_data.group_weight%TYPE,
      iin_axle_wt_max             edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_class_min                edr_cls_by_tawt_report_data.vehicle_class%TYPE,
      in_class_max                edr_cls_by_tawt_report_data.vehicle_class%TYPE
    RETURN VARCHAR2; However in your package body:
    FUNCTION  class_count
      in_lane_id                  edr_rpt_by_ranges_output.lane_id%TYPE,
      in_direction_id             edr_rpt_by_ranges_output.direction_id%TYPE,
      in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_interval_end_date_time   edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_axle_wt_min              edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_axle_wt_max              edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_class_min                edr_cls_by_tawt_report_data.vehicle_class%TYPE,
      in_class_max                edr_cls_by_tawt_report_data.vehicle_class%TYPE
    RETURN NUMBERReturn number in spec. vs. return varchar2 in body..
    That won't compile, either return a number or a varchar2 in both. (spec and body).

  • Cannot save form error after form has been created

    I've created a form and fucntions well.
    It has been saved as a interactive pdf.
    When people with just the acrobat reader open the file and click anywhere on the form a window pops up stating that
    " you cannot save form..." then the OK button appears
    You are able to enter data into the fields and print, but can only save the form as a blank copy.
    Any help would be much appreciated.

    You need to reader enable the form in Adobe Acrobat. Click on Advanced >
    Enable Usage Rights in Adobe Reader and Click Save Now. You can then save a
    reader enabled version of the form and users will be able to save their data
    in the form.

Maybe you are looking for

  • Can't sync/update a 3GS without nuking its data first?

    I apologize in advance for a tech-supporty question, but I've looked all over the place and the information has been very conflicting, so I'm hoping you folks can advise me. I want to do an upgrade from 4.0 to 4.2 on my 3gs, so I plugged my phone int

  • Txt replies not appearing in open message

    This is something that started a few days ago. If I send a txt the reply no longer automatically appear in tht open txt. I get the notice in the upper left that there is a message but I have to go back to the main message screen and choose the name o

  • Session Creation while using Netscape Browser

    Why does a new Session not get created when a new instance of Netscape browser is opened? My simple JSP is: <html>      <head>           <title>Test Sesssion</title>      </head>      <body>      Session Id = <%=session.getId()%> <br>      </body> </

  • Yahoo Widgets Not Functioning

    Several months ago Yahoo Widgets malfunctioned on my Macbook Pro. When I activate it, the "gears" icon in the Desktop menu bar appears for a brief moment or two, then disappears. The app does not appear to be running as no widgets are visible nor doe

  • Pop up messages on DVR

    I find it very frustrating when I press the button to bring up the guide or DVR menu and the STB appears to do nothing because it's delayed by a pop up message about new movies or shows for on demand.  Is there any way to stop this delay from happeni