Group by affected by the limit of number of line

I see some strange behaviors with the Group of features on APEX 4.0

Version APEX 4.0.0.00.46 and 4.0.1.00.03 on the 11.1.0.7.0 database

If I ask a Group By for an interactive report using the interactive stock reports > menu Format, group is applied after the APXWS_MAX_ROW_CNT filter has been applied, so that the Group of works only on a subset of the data. Worse still, no warning is displayed to the user once the Group has been applied, so there, that it's unclear whether the data in the report are not complete.

For example: if I create an interactive report on SELECT * from object.

And then using the help of the menu of interactive report, I do a group the OWNER column, obtaining the number of columns for each owner, I get back a result set with inaccurate information.

From a record of the session, the query that the IR is running is:

Select 'OWNER', COUNTY ("parameter") "APXWS_GBFC_01", count (*) (as apxws_row_cnt)
de)
Select *.
de)
Select *.
(of object) r) r
where rownum < = group of to_number(:APXWS_MAX_ROW_CNT) by the 'OWNER '.

Then as a suspect, the limit of number of lines is applied before the group. It's not logical to me, surely the limit of the lines must be applied only on the number of rows returned to the user?

Does anyone know of a workaround, for now what I can do is create a new report for each possible group by combination required. Anyone on the apex team: is this behavior of design, or is this a bug?

Thank you

James

Published by: James C on November 4, 2010 10:20

James,

It is a bug. We apply the limit max line in the inner query to prevent long-running queries. Given that the result is not what the user expects, interactive report should display a warning as follows over the group by:
Group By applied only to the first 10,000 lines. The report query returns more than 10,000 lines, please filter your data to ensure complete results.

I filed a bug for the same problem get fixed in the next version. If you null out the maximum number of lines, view report and Group By not applying the maximum lines filter at run time. I don't know if it would be a good work around because it will impact on performance if the query returns of large data sets.

Kind regards
Christina

Tags: Database

Similar Questions

  • Number of lines in OBIEE export limit / OLIVIER

    We currently have a limit of 2 500 lines for export to excel in OBIEE and OLIVIER. There is a report that requires 75 000 lines, so we are looking to increase the limit of 2 500 lines.


    What is the limit for your reports?


    Is there a general number that is mostly used?

    https://support.Oracle.com/RS?type=doc&ID=1558070.1

    The PDF is linked to the it.

    Take a look at page 12 when they start to talk of "Considerations relating to the features of Microsoft Office performance", some numbers are provided as well as a comparison between the formats and tools.

  • Limit the number of lines per group

    Hi guys,.

    I would use a query that returns only n number of lines per group and always show all columns in a table.

    For example:

    We have a table_customer, I would like to get a 100 records per dealer in a sql


    What would be the best way to do this? This isn't really my question saves back them, the top 100 or random, etc.

    Thanks in advance

    Hi and welcome to the forum!

    You can use the ROW_NUMBER() analytic function with a subquery to get the results you need. For example the following pseudocode (given that I have no definitions or column names) could be modified to work for your case

    SELECT     *
    FROM
    (
         SELECT     TABLE_CUSTOMER.*
         ,     ROW_NUMBER() OVER (PARTITION BY  ORDER BY 
    

    HTH!

  • TCP ip has reached the limit of security imposed on the number of tcp simultaneous connect

    Idle process original title: System, create tcp/ip connections to achieve maximum attempts allowed on win xp
    Continue to event viewer showing warning saying tcp/ip has reached the limit of security imposed on the number of tcp connect attempts simultaneous and system idle process, that's what causes this error.  To many connections 127.0.0.1:6999 127.0.0.1:4426 time_wait

    127.0.0.1:4427 TIME_WAIT
    etc etc etc.

    Hello

    Thanks for asking! If I have understood correctly, you receive tcp ip error message has reached the security limit imposed on the number of simultaneous tcp connect in Event Viewer. I suggest you follow the troubleshooting steps to check if this may help.

    1. don't you make changes on the computer before the show?
    2. when exactly do you face the question?
    3. what anti-virus is installed on the computer?

    Method 1:
    It is a warning that a malicious program or a virus can be run on the system. You can run a Microsoft security scanner to make sure that the computer is free from virus infection:
    http://www.Microsoft.com/security/scanner/en-us/default.aspx
    WARNING:
    If you run the antivirus program that is infected by the virus scan will get deleted. Therefore, reinstall the program. Also if the files and folders are affected by the virus, while they might even get deleted


    Method 2:
    Check the behavior by starting the computer in a clean boot state. How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353
    Note: When the diagnosis is complete do not forget to reset the computer to a normal startup. Follow step 7 in the above article.

    Method 3:
    Please close some of the connections (some types of downloads can use multiple connections).

    Check out the link:
    http://www.Microsoft.com/technet/support/ee/transform.aspx?ProdName=Windows+operating+system&ProdVer=5.2&EvtID=4226&EvtSrc=Tcpip&lcid=1033

    Please follow these recommended steps, review the additional information provided and post if you still experience the problem. I'd be happy to help you more

  • Can I limit the number of lines of text entered into a TextArea?

    Hello

    I use Flex Builder 2 to create an application that allows users to enter text in different TextAreas and eventually create a PDF file with their different text. My only problem is that I can't limit the number of lines of text used in each text box. I can limit characters by using maxChar, but this does not take into account a user entering multiple presses "return" - this does not affect the character limit, but can result in the final PDF layout (spitting the text on page 2).

    Is there a way to keep track and limit the number of lines of text in a text box (in Flex 2)?

    (Ideally I won't disable the ability for users to use the 'back' button to create several paragraphs)

    Any help would be appreciated.

    Thank you

    Ben.

    Hello

    Try this code.

    import

     

    flash.events.KeyboardEvent;

    Import flash.events.TextEvent;

    Import mx.controls.TextArea;

    public class LimitedLinesTextArea extends TextArea {}

    private var numLinesAllowed:int = 0;

    private var moreCharsAllowed:Boolean = true;

    public function LimitedLinesTextArea():void

    {

    this.addEventListener (flash.events.TextEvent.TEXT_INPUT, textInputHandler);

    }

    override protected function keyDownHandler(event:KeyboardEvent):void

    {

    if (this. textField.numLines > numLinesAllowed)

    moreCharsAllowed =

    fake;

    on the other

    moreCharsAllowed =

    true;

    Super.keyDownHandler (event);

    }

    private function textInputHandler(event:TextEvent):void

    {

    If

    (! moreCharsAllowed)

    Event.preventDefault ();

    }

    public function the value numberofLines(value:int):void

    {

    numLinesAllowed = value;

    }

    }

  • What is the limit of the number of emails that can be sent in an email list?

    Just a simple question! Requested because a friend is having problems with MS Outlook by limiting the number of e-mails it can sent at the same time and both its ISP & MS say that the other is responsible for the problem. Before that I suggest using Mozilla Thunderbird for emails that I want to know the limit. Simple as that.

    Just a simple answer. There is none.

    A more complex answer is that Thunderbird has no limits, nor does Outlook if I remember correctly. However, email providers have almost universally limits, but what they are is fully defined by the supplier in question. I am aware of the limits as little as 5 and as high as 200.

    Certain limits are really complex, a provider of account of all addresses in a list, and CC ' ed and Bcc'ed and you are limited to only so an hour. If someday a list will work, the next day, after you meet some other emails it's not because you have exceeded their limit to make it on time. Google has a daily limit. But it depends if you are a business customer or a free client. It is also different in business accounting, if the emails are processed internally to your domain or outside the Internet in general.

    Maybe your friend you need to use a service like mailchimp to avoid spam ISP limiting rules.

  • 907 invalid cod exceeded the limit of the number of OS 5 bytes

    Hello

    I do face-down issue with jad installation from a Web server. I put all my files of cod with a jad file in our weserver. and appealed to the jad file. After a few seconds, the message as below. The same thing works with phone OS 6 version, but not with the OS 5

    907 invalid cod exceeded the limit of the number of bytes

    Thank you

    RAM

    If you are testing on simulators on the same PC running the same MDS Simulator, the article on connection limits may apply.

    Sorry beat me to it, I've never had the OS 5.0 browser throw up his hands on a download I created it, that the OS 6.0 browser was fine with.  The size of your files is not huge.

    If you really want to count the MDS Simulator out run, start the WiFi on the 5.0 OS simulator (manage connections--> set up the Wi - Fi network, you follow the nose, and then start the WiFi on the device), then change the configuration of the default browser (--> Advanced--> browser Options) in the Hotspot browser.  Stop the MDS Simulator and see if you can still browse.  Then, try the download again.

  • Collect in bulk in stores less number of lines in the collection when you use the LIMIT?

    I wrote the following PL SQL anonymous block. However, the line dbms_output.put_line (total_tckt_col. FINALLY gives me) output as 366 (DBMS_OUTPUT is Developer SQL) which is correct when there is no limit. If the limit is set at 100 in the FETCH statement then dbms_output.put_line (total_tckt_col. Give me FINALLY) 66. What I'm doing wrong here?


    DECLARE

      
    CURSOR cur_total_tckt 
      
    is
      
    select  t.ticket_id ticket_id, t.created_date created_date, t.created_by created_by, t.ticket_status ticket_status,
      t
    .last_changed last_changed, h.created_date closed_date
      
    from n01.cc_ticket_info t
      
    inner join n01.cc_ticket_status_history h
      
    on (t.ticket_id = h.ticket_id)
      
    where t.last_changed >= '6/28/2012 17:28:59' and t.last_changed < (sysdate + interval '1' day);

      type total_tckt_colcn
      
    is
      
    TABLE OF cur_total_tckt%rowtype;
      total_tckt_col total_tckt_colcn
    ;
      total_coach_col total_tckt_colcn
    ;
      
    begin

      total_tckt_col 
    := total_tckt_colcn ();
      total_coach_col
    := total_tckt_colcn ();
      
    OPEN cur_total_tckt;
      loop
      
    fetch cur_total_tckt bulk collect into total_tckt_col;
    -- fetch cur_total_tckt bulk collect into total_tckt_col limit 100;
      
    EXIT
      
    WHEN (cur_total_tckt%NOTFOUND);
      
    END LOOP ;
      
    CLOSE cur_total_tckt;  

      dbms_output
    .put_line(total_tckt_col.LAST); 

      
    FOR i IN total_tckt_col.first..total_tckt_col.last
      LOOP

      dbms_output
    .put_line(i);

      
    END LOOP;
      
    end;

    Jocelyn says:

    This is a modified version of your code on the standard table EMP in schema scott.

    Have you tested it? All you have is last batch has 4 rows. But you print outsite the loop. That way if the last batch is incomplete (within boundary lines) last batch does not have your loop. Suppose you want to print the enames:

    DECLARE

    CURSOR cur_total_tckt

    IS

    Select ename

    EMP; -I have a total of 14 records in this table

    type total_tckt_colcn

    is

    TABLE OF THE cur_total_tckt % rowtype;

    total_tckt_col total_tckt_colcn;

    BEGIN

    total_tckt_col: = total_tckt_colcn ();

    OPEN cur_total_tckt.

    LOOP

    Cur_total_tckt fetch bulk collect within the limits of the total_tckt_col 5;

    EXIT WHEN cur_total_tckt % NOTFOUND;

    FOR v_i IN 1.total_tckt_col.count LOOP

    dbms_output.put_line (total_tckt_col (v_i) .ename);

    END LOOP;

    END LOOP;

    CLOSE Cur_total_tckt;

    END;

    /

    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER

    PL/SQL procedure successfully completed.

    SQL >

    As you can see, it didn't print the last batch. Why? Because NOTFOUND is set to true if the number of lines that you asked to fetch was not recovered. This last batch has 4 rows while the claim code to get 5. Therefore, NOTFOUND has the value true and outputs code before dealing with this last batch. Therefore, repeat the treatment code again once outside the loop:

    DECLARE

    CURSOR cur_total_tckt

    IS

    Select ename

    EMP; -I have a total of 14 records in this table

    type total_tckt_colcn

    is

    TABLE OF THE cur_total_tckt % rowtype;

    total_tckt_col total_tckt_colcn;

    BEGIN

    total_tckt_col: = total_tckt_colcn ();

    OPEN cur_total_tckt.

    LOOP

    Cur_total_tckt fetch bulk collect within the limits of the total_tckt_col 5;

    EXIT WHEN cur_total_tckt % NOTFOUND;

    FOR v_i IN 1.total_tckt_col.count LOOP

    dbms_output.put_line (total_tckt_col (v_i) .ename);

    END LOOP;

    END LOOP;

    FOR v_i IN 1.total_tckt_col.count LOOP

    dbms_output.put_line (total_tckt_col (v_i) .ename);

    END LOOP;

    CLOSE Cur_total_tckt;

    END;

    /

    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER

    PL/SQL procedure successfully completed.

    SQL >

    But you have to accept to repeat that twice the processing code is no better solution. When you use BULK COLLECT LIMIT we should not leave NOTFOUND but rather by collection.count = 0:

    DECLARE

    CURSOR cur_total_tckt

    IS

    Select ename

    EMP; -I have a total of 14 records in this table

    type total_tckt_colcn

    is

    TABLE OF THE cur_total_tckt % rowtype;

    total_tckt_col total_tckt_colcn;

    BEGIN

    total_tckt_col: = total_tckt_colcn ();

    OPEN cur_total_tckt.

    LOOP

    Cur_total_tckt fetch bulk collect within the limits of total_tckt_col 6;

    WHEN OUTPUT total_tckt_col.count = 0;

    FOR v_i IN 1.total_tckt_col.count LOOP

    dbms_output.put_line (total_tckt_col (v_i) .ename);

    END LOOP;

    END LOOP;

    CLOSE Cur_total_tckt;

    END;

    /

    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER

    PL/SQL procedure successfully completed.

    SQL >

    SY.

  • The limit to the number of columns to display in the report. Help!

    Hi all

    Maybe this is a stupid question. But why get this error with a report of the IR? and what is the solution for this. Please help me with this.

    Error

    The limit to the number of columns to display in the report. Please, click on select columns under Actions menu to minimize the list of columns in report view.

    Oh... And I also have a blob column... If the format is not given, the table is very good... but happen to get this error only when the BLOB download format is given.

    Thanks and greetings
    John

    Published by: JB on March 30, 2012 11:08

    Hello

    I implemented a small suitcase of test on apex.oracle.com and I get the error even if I use the download format.

    I have a table
    test_blob (identification number, name varchar2 (10), blobcont blob)

    If I create IR as

      select
        id,
        name,
        blobcont
      from test_blob
    

    and then I set the download format I got the error.

    If you want this to work you need to change your query to

      select
        id,
        name,
        dbms_lob.getlength(blobcont) blobcont
      from test_blob
    

    And there still define download for blob on column blobcont format.

    Kind regards
    Aljaz

  • apex_application.g_fxx - is there a limit to the number of lines of treatment?

    Hello

    is there a limit to the number of lines, I'm processing in a relationship with apex_application.g_fxx?

    I have a report with 7000 lines. My pk_row is apex_item.display_and_save(1,pk_id).

    When I want to loop through these lines after submit and access with apex_application.g_fxx, I get the error "page not found".
    If I have just 500 lines or 1000, it works.

    Please help, it's urgent :-(

    I'm going to guess it's the parameter maxplsqlparameters for your instance of the Apex.

    I had this happens with forms tabular and master / detail where you have a large number of lines or a number high columns resulting in a product that exceeds the value of the parameter (the number of parameters is something like lines * columns more some other small hold there).

    By default, this setting is installed in 2000 (so we had some forms had slightly more than 60 rows and columns 30 - ish which would be run against this on submit.)

    We have increased this setting to 10000 and so far, so good. We have noticed no ill effects of this. We arrived at this functional entry number based on key end users on the largest number of lines they would probably see at some point in the page.

  • How to limit the number of line TextArea

    Hello

    I want to set the number of line TextArea to 1 initially. And I want the number of rows to grow dynamically as the user inserts "entry".
    I could do it in javafx 1.3 with the lines property, in javafx 2.0 who disappeared. I tried to use the setPrefRowCount (.) but it does nothing (I guess because it's just a preferred setting).

    How can I achieve this in javafx2.0?

    Thanks in advance,
    Pedro Duque Vieira

    Nice workaround.

    I think that this problem is fixed in 2.0.2, however: see http://javafx-jira.kenai.com/browse/RT-16827

  • Interactive report returns misleading data because of the limit ROWNUM

    Hi, we have relied on the internal decision-making interactive reports widespread in our society, and they have been very popular. However, a user has found an inconsistency of data when sorting to a report because the ROWNUM limit: APXWS_MAX_ROW_CNT is applied before the user requested the ORDER BY clause. We run Apex version 3.2.0.00.27 on a 10.2.0.4 database.

    Request quotes from our application IR returns citing custom and the number of lines by default is 100 (and is editable by the user). The user wants to see the most recent citations, so he chose the column heading "Date of creation" and simply applied a descending filter. The last quote returned was dated last week. However, if he has applied an additional filter of "date of creation last week", he sees today date and for most of the current quotation lines.

    When I ran on its IR application debugging, I see that the ROWNUM limit is applied first, followed in ORDER BY. This means that the database retrieves the x first lines that match the provided parameters and then orders the result set. However, this isn't what the user meant, he wanted the first lines of an ordered set.

    This is the result of the query to debug (deleted community because it is long):
    select 
           "QUOTE_NUMBER",
           "CUSTOMER",
           "CUST_CONTACT",
           "QUOTE_STATUS",
           "TOTAL_PRICE",
           "TOTAL_WEIGHT",
           "WHSE",
           "SHIP_DATE",
           "PO_NUMBER",
           "ORACLE_REFERENCE",
           "INSIDE_SALESREP",
           "OUTSIDE_SALESREP",
           "CREATION_DATE",
           "ID",
           "ORA_CUST_ID",
           "CUST_CONTACT_ID",
           count(*) over () as apxws_row_cnt
     from (
    select  *  from (
    SELECT 
      kh.id,
      kh.ora_cust_id,
      kh.quote_number quote_number ,
      kh.cust_contact_id,
      k2_customers_pkg.get_contact(cust_contact_id) cust_contact ,
      k2_customers_pkg.get_cust_name(kh.ora_cust_id)customer,
      k2_customers_pkg.get_cust_number(ora_cust_id)
    
     ( ......... more sql goes here )
    
    AND k2_customers_pkg.get_outside_salesrep_number(kh.ora_site_id)||'%' LIKE :P64_OUTSIDE_SALES||'%'
    AND kh.whse_code like :P64_WAREHOUSES||'%'
    AND ((1=
        CASE WHEN :P64_ITEM_ID IS NULL THEN
            1
        ELSE
            (SELECT 1
               FROM k2_quote_lines kl
               JOIN k2_ingredients ki
                 ON ki.quote_line_id=kl.id
              WHERE (1=1
                AND kh.id=kl.quote_id
                AND ki.ora_item_id=:P64_ITEM_ID AND ROWNUM=1))
        END)
        OR 1=(
            SELECT 1 FROM k2_quote_lines kl WHERE kl.quote_id=kh.id AND kl.part_id=:P64_ITEM_ID AND ROWNUM=1
        ))
    )  r
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT) 
     order by "CREATION_DATE" DESC,"QUOTE_NUMBER" DESC
    However, what the user must have the ORDER BY applied first, then the limit. I realize performance can be affected, but users are now alarmed that they cannot trust these reports. I'm tempted to connect a SR with Oracle on it.

    Any ideas on that? What is this problem fixed in 4.0?

    Thank you, Moritz Wolf

    Hi Wolf,

    I don't think that the problem is with the number of rows displayed. I think that it is a function of the attribute of the ratio "number of lines". And as assistance at the level of the elements of this attribute indicates "defines the maximum number of rows in the query. Note that this attribute impact on performance. Get fewer lines can improve performance and get thousands of lines can adversely affect performance. »

    You can set the maximum number of rows to an artificially high - greater number that we'll never be your total number of lines. But this does not alter the fact that the ORDER BY still apply on the outer part of your query.

    Joel

  • "You have reached the limit for the reservations authorized by customer.

    I got this error, whatever i use different apple ID. and also another telephone number of her present on ireserve. But if I try to use another type of government identification. This works. I don't know why the apple system can keep to see my id personal Government reach the limit and it should be fine clear every day. I try to call hong kong apple support. but they said they don't have solution and any part can help with my problem. It is quite interesting that they suggested me to use the information for other people to do the ireserve. can anyone help?

    I'm really confused by your question

    You have reached too much supply of iPhone on iReserve and get an error when you try to use a different number of phone or Apple ID, telling you that you have booked too much. So you try to book using a most other Hong Kong Government issued IDS, and it works

    I'm confused on what you need help with

  • How to change the limit Max in the Ring

    Hi all

    I'm trying to use a ring to implement the 4 different freq form 18Hhz to 20Ghz, but the ring Max limit only 65535. How I change the limit max? Or no matter what way we could set up 4 difference Freq number of user select any person they wish to use.

    Thank you

    Change the representation of the ring, it is default U16.

  • The limit of the device must be less than or equal to the limit of life cycle license in first cisco 2.2

    Hi all

    I have seen under error in the tool main 2.2 Cisco infrastructure

    The limit of the device must be less or equal to the limit of license of life cycle and also secondary device ISE inaccessible since premium.

    Could you please suggest how we can solve your problem.

    Thanks in advance...

    Kind regards

    Sachin

    Yes. Life cycle license are by smart device managed. See this page for a good overview:

    http://www.Cisco.com/c/en/us/support/docs/cloud-systems-management/Prime...

    .. as well as this page:

    http://www.Cisco.com/c/en/us/products/collateral/cloud-systems-Managemen...

    .. who States:

    Life cycle license: allows access to all the features of the life cycle, which includes the configuration of the devices, image management software, basic health and performance monitoring, fault management, troubleshooting and customer visibility on the network. The license of the life cycle is based on the number of managed devices. Life cycle of the licenses are available in sizes from package of 25, 50, 100, 500, 1000, 2500, 5000, 10,000 and 15 000 devices and can be combined as needed to reach a total number of device under license.

    A device is uniquely identified through the assigned IP address and system object ID (SysOid). Routers, switches, light/unified access points and network first Cisco (NAMs) analysis Modules are charged on the number of licenses. If a switch stack is managed via a single IP address, it counts as a single device. A single frame will, however, be counted as multiple devices if the chassis is configured with several IP addresses. For example, a switch with several service cards, such as a firewall and so forth, or a stackable switch with an IP address assigned to each switch who is involved in the stack is considered multiple devices within the first Cisco Infrastructure. Cisco Wireless LAN controllers (WLCs), autonomous and peripheral access points third are not counted against the number of licenses.

    When you have more devices that licenses, you will receive the error see you and prevented from adding additional devices to your inventory.

    We see it more often when it is light (i.e. not independent) APs are added to a wireless controller. PI will not prevent the new APs to be added, they are managed under their association with the WLC. However, if you try to add a new switch it would prevent you to do until the deficit of licenses has been sent.

Maybe you are looking for

  • How can I get rid of the toolbar of footerroll?

    A new toolbar has appeared at the bottom of the screen when the BBC website. Links to footerroll.letssearch.com. Nothing appears in one of my modules, extensions or installed programs that could be causing it. There are a few others reports online as

  • Tiara DAC supports SMU systems?

    Hello I want to know if it is possible to install and run the DIAdem on an SMU (chassis and controller) system, and use the DAC for a quick setup of measurement and installation. Does anyone have experience with this configuration? I know I could use

  • which one to buy, a55 or a65?

    these cameras are the only ones that I can afford, and since im new to this type of cameras any help or suggestion or whatever it is will be appreciated... Now what I need is: Click here: I mean I want the one with the soft click so I don't have to p

  • Unable to install FSHOTSFX on Windows 7 64 bit.

    Original title: error: 91 object variable or variable block not set__And error: 429 ActiveX component can't create object People: I need your help. I have a registered copy of the program FSHOTSFX.  I very well, runing this program on windows xp pro

  • Install XP does not recognize my drive as full version

    Hello. I tried to do a clean install of XP Pro (academic version) with new partitions. I did this several times. Unfortunately, this time, I interrupted the process of partitioning. When I tried to reboot, the installation program now says he "cannot