Ndata not returning all possible results

i created an index with userdatastore, basic lexer and basic wordlist preferences. Also a section group with ndata section. base letter, substring index all are true.
but when i search for 'scri', i am not getting 'de*scri*ption' in the results. pls help.

Roger,
Since the original poster has not provided a test case, I threw one together based on the information provided and found a couple of surprising things. The first surprise is that "scri" appears in the indexed tokens, even though a search for it returns no rows. The second surprise is that you do not need to put curly brackets around "not" and "and" when used within ndata like you do with other queries; Just using a stoplist without them is sufficient. Please find my test script and execution below.
-- test script:
drop table table1
exec ctx_ddl.drop_section_group ('mystery_sg')
exec ctx_ddl.drop_preference ('mystery_wl')
exec ctx_ddl.drop_preference ('mystery_lex')
exec ctx_ddl.drop_preference ('mystery_ds')
-- table:
create table table1
  (column1         varchar2(60),
   indexed_column  varchar2(1))
-- test data:
insert all
into table1 values ('description', null)
into table1 values ('this not that', null)
into table1 values ('this and that', null)
select * from dual
-- procedure:
create or replace procedure mystery_proc
  (p_rowid in            rowid,
   p_clob  in out nocopy clob)
as
begin
  select '<tag1>' || column1 || '</tag1>'
  into   p_clob
  from   table1
  where  rowid = p_rowid;
end mystery_proc;
show errors
-- preferences:
begin
  ctx_ddl.create_preference ('mystery_ds', 'user_datastore');
  ctx_ddl.set_attribute ('mystery_ds', 'procedure', 'mystery_proc');
  ctx_ddl.create_preference ('mystery_lex', 'basic_lexer');
  ctx_ddl.set_attribute ('mystery_lex', 'base_letter', 'YES');
  ctx_ddl.create_preference ('mystery_wl', 'basic_wordlist');
  ctx_ddl.set_attribute ('mystery_wl', 'substring_index', 'true');
  ctx_ddl.create_section_group ('mystery_sg', 'basic_section_group');
  ctx_ddl.add_ndata_section ('mystery_sg', 'tag1', 'tag1');
end;
-- index:
create index test_idx
on table1 (indexed_column)
indextype is ctxsys.context
parameters
  ('datastore      mystery_ds
    lexer          mystery_lex
    wordlist       mystery_wl
    section group  mystery_sg
    stoplist       ctxsys.empty_stoplist')
-- tokens created by indexing:
select token_text from dr$test_idx$i
-- queries:
select column1, score(1) from table1
where  contains (indexed_column, 'ndata(tag1, scri)', 1) > 0
order  by score(1) desc
select column1, score(1) from table1
where  contains (indexed_column, 'ndata(tag1, escr)', 1) > 0
order  by score(1) desc
select column1, score(1) from table1
where  contains (indexed_column, 'ndata(tag1, not)', 1) > 0
order  by score(1) desc
select column1, score(1) from table1
where  contains (indexed_column, 'ndata(tag1, and)', 1) > 0
order  by score(1) desc
/-- execution:
SCOTT@orcl_11gR2> -- table:
SCOTT@orcl_11gR2> create table table1
  2    (column1      varchar2(60),
  3       indexed_column     varchar2(1))
  4  /
Table created.
SCOTT@orcl_11gR2> -- test data:
SCOTT@orcl_11gR2> insert all
  2  into table1 values ('description', null)
  3  into table1 values ('this not that', null)
  4  into table1 values ('this and that', null)
  5  select * from dual
  6  /
3 rows created.
SCOTT@orcl_11gR2> -- procedure:
SCOTT@orcl_11gR2> create or replace procedure mystery_proc
  2    (p_rowid in           rowid,
  3       p_clob     in out nocopy clob)
  4  as
  5  begin
  6    select '<tag1>' || column1 || '</tag1>'
  7    into   p_clob
  8    from   table1
  9    where  rowid = p_rowid;
10  end mystery_proc;
11  /
Procedure created.
SCOTT@orcl_11gR2> show errors
No errors.
SCOTT@orcl_11gR2> -- preferences:
SCOTT@orcl_11gR2> begin
  2    ctx_ddl.create_preference ('mystery_ds', 'user_datastore');
  3    ctx_ddl.set_attribute ('mystery_ds', 'procedure', 'mystery_proc');
  4    ctx_ddl.create_preference ('mystery_lex', 'basic_lexer');
  5    ctx_ddl.set_attribute ('mystery_lex', 'base_letter', 'YES');
  6    ctx_ddl.create_preference ('mystery_wl', 'basic_wordlist');
  7    ctx_ddl.set_attribute ('mystery_wl', 'substring_index', 'true');
  8    ctx_ddl.create_section_group ('mystery_sg', 'basic_section_group');
  9    ctx_ddl.add_ndata_section ('mystery_sg', 'tag1', 'tag1');
10  end;
11  /
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> -- index:
SCOTT@orcl_11gR2> create index test_idx
  2  on table1 (indexed_column)
  3  indextype is ctxsys.context
  4  parameters
  5    ('datastore     mystery_ds
  6        lexer          mystery_lex
  7        wordlist     mystery_wl
  8        section group     mystery_sg
  9        stoplist     ctxsys.empty_stoplist')
10  /
Index created.
SCOTT@orcl_11gR2> -- tokens created by indexing:
SCOTT@orcl_11gR2> select token_text from dr$test_idx$i
  2  /
TOKEN_TEXT
^ad$
^an$
^and
^dec
^des
^dsc
^esc
^hat
^his
^nd$
^no$
^not
^nt$
^ot$
^tat
^tha
^thi
^ths
^tht
^tis
and$
cipt
crip
crit
crpt
decr
desc
desr
dscr
ecri
esci
escr
esri
hat$
his$
ion$
ipio
ipti
ipto
itio
not$
pion
ptin
ptio
pton
ripi
ript
riti
rpti
scip
scri
scrp
srip
tat$
tha$
that
thi$
this
ths$
tht$
tin$
tio$
tion
tis$
ton$
65 rows selected.
SCOTT@orcl_11gR2> -- queries:
SCOTT@orcl_11gR2> select column1, score(1) from table1
  2  where  contains (indexed_column, 'ndata(tag1, scri)', 1) > 0
  3  order  by score(1) desc
  4  /
no rows selected
SCOTT@orcl_11gR2> select column1, score(1) from table1
  2  where  contains (indexed_column, 'ndata(tag1, escr)', 1) > 0
  3  order  by score(1) desc
  4  /
COLUMN1                                                        SCORE(1)
description                                                          60
1 row selected.
SCOTT@orcl_11gR2> select column1, score(1) from table1
  2  where  contains (indexed_column, 'ndata(tag1, not)', 1) > 0
  3  order  by score(1) desc
  4  /
COLUMN1                                                        SCORE(1)
this not that                                                       100
1 row selected.
SCOTT@orcl_11gR2> select column1, score(1) from table1
  2  where  contains (indexed_column, 'ndata(tag1, and)', 1) > 0
  3  order  by score(1) desc
  4  /
COLUMN1                                                        SCORE(1)
this and that                                                       100
1 row selected.
SCOTT@orcl_11gR2>

Similar Messages

  • Search not returning all 10 results per page

    Anyone seen this?
    When i do a search, i don't get all 10 per page...
    "Results from your search: 1055. Showing: 1-7."
    however, when i hit 'next'
    "Results from your search: 1055. Showing: 11-16."
    why aren't i seeing 8, 9 17, 18, 19....etc?
    6.1 portal

    out of the box.
    i'm hoping to dodge this issue because i'm upgrading to a new environment in a few weeks hopefully where the search index is rebuilt.

  • API Not returning all RTMP ingest endpoints

    The web portal shows both URLs for RTMP
    rtmp://etcetc.channel.mediaservices.windows.net:1935/live/...
    rtmp://etcetc.channel.mediaservices.windows.net:1936/live/...
    but the API (ex - myChannel.Input.Endpoints) only returns a single one (...:1935).
    Any reason why the web portal and the API don't return the same info?

    Hi,
    According to your post, my understanding is that Search is not returning all STS_Web.
    You need to set the Trim Duplicates to false, please follow the steps as below:
    Export the Search Results Web Part from your page.
    Open the .webpart file in your favorite editor.
    Search for “Trim Duplicates”, you will find it as part of the DataProviderJSON property.
    Set the Trim Duplicates property to
    False.
    Upload the web part.
    Add the web part to your page.
    More information:
    SharePoint Online Search Results Duplicates “Trap”:
    http://www.hartsteve.com/2013/07/sharepoint-online-search-results-duplicates-trap/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Web proxy not returning all elements

    Web proxy generated over a web service does not return all elements of an array. Testing of the web service on the application server results in three detail elements. However executing the web proxy only results in the first element being processed. Not sure where the disconnect is when generating the response object. Any suggestion is appreciated.
    Edited by: bstegen on Jul 29, 2009 12:53 PM

    Hi,
    I have also tried using 'Web Service Data Control' as an alternate method to overcome the above mentioned issue. But I have ended up the error "DCA-29000: Unexpected exception caught: java.lang.NullPointerException,msg=null" and failed to create a data control.
    The JDeveloper version which I am using is 11.1.1.5.0. I also came to know that there is a patch (9790388) which has resolved this bug in JDeveloper. I also applied the same patch in my Oracle Home using OPatch utility.
    But unfortunatley, the version suitable for this patch is 11.1.1.4.0 and I suspected that could be one of the reason that the problem has not got resolved yet.
    Please suggest the patch or any solution which can also help me in resolving this issue. I really appreciate your time and effort in sharing your thoughts for the problems which I have mentioned over here.
    Thank you !!!
    With Regards,
    Thiyagarajan V

  • TABLE(CAST()) function not returning the correct results in few scenarios.

    I am using TABLE(CAST()) operation in PL/SQL and it is returning me no data.
    Here is what I have done:
    1.     Created Record type
    CREATE OR REPLACE TYPE target_rec AS OBJECT
    target__id          NUMBER(10),
    target_entity_id NUMBER(10),
    dd           CHAR(3),
    fd           CHAR(3),
    code      NUMBER(10),
    target_pct      NUMBER,
    template_nm VARCHAR2(50),
    p_symbol      VARCHAR2(10),
    pm_init          VARCHAR2(3),
    target_name     VARCHAR2(20),
    targe_type     VARCHAR2(30),
    target_caption     VARCHAR2(30),
    sort_order      NUMBER (4)
    2.     Created Table type
    CREATE OR REPLACE TYPE target_arr AS TABLE OF target_rec
    3.     Created Stored procedure which accepts parameter of type target_arr and runs the Table(Cast()) function on it.
         Following is the simplified form of my procedure.
         PROCEDURE get_target_weights
         p_in_template_target IN target_arr,
         p_out_count          OUT NUMBER,
         IS
         BEGIN
              SELECT count(*) into p_out_count
         FROM TABLE(CAST(p_in_template_target AS                     target_arr)) arr;
         END;
    I am calling get_target_weights from my java code and passing p_in_template_target with 10140 records.
    Scenario 1: If target_pct in the last record is 0, p_out_count returned from the procedure is 0.
    Scenario 2: If target_pct in the last record is any other value(say 0.01), p_out_count returned from the procedure is 10140.
    Please help me understand why the Table(Cast()) is not returning the correct results in Scenario 1. Also adding or deleting any record from the test data returns the correct results (i.e. if keep target_pct in the last record as 0 but add or delete any record).
    Let me know how can I attach the test data I am using to help you debugging as I don’t see any Attach file button on Post Message screen on the forum.

    I am not able to reproduce this problem with a small data set. I can only reproduce with the data having 10140 records.
    I am not sure if this is the memory issue as adding a new record also solves the problem.
    This should not be the error because of wrong way of filling the records in java as for testing purpose I just saved the records which I am sending from java in a table. I updated the stored procedure as well to read the data from the table and then perform TABLE(CAST()) operation. I am still getting 0 as the output for scenario 1 mentioned in my last mail.
    Here is what I have updated:
    1.     Created the table target_table
    CREATE Table target_table
    target_id          NUMBER(10),
    target_entity_id NUMBER(10),
    dd           CHAR(3),
    fd           CHAR(3),
    code      NUMBER(10),
    target_pct      NUMBER,
    template_nm VARCHAR2(50),
    p_symbol      VARCHAR2(10),
    pm_init          VARCHAR2(3),
    target_name     VARCHAR2(20),
    target_type     VARCHAR2(30),
    target_caption     VARCHAR2(30),
    sort_order      NUMBER (4)
    2.     Inserted data into the table : The script has around 10140 rows. Pls let me know how can I send it to you
    3.     Updated procedure to read data from table and stored into variable of type target_arr. Run Table(cast()) operation on target_arr and get the count
    PROCEDURE test_target_weights
    IS
         v_target_rec target_table%ROWTYPE;
         CURSOR wt_cursor IS
         Select * from target_table;
         v_count NUMBER := 1;
         v_target_arr cws_target_arr:= target_arr ();
         v_target_arr_rec target_rec;
         v_rec_count NUMBER;
         BEGIN
         OPEN wt_cursor;
         loop
              fetch wt_cursor into v_target_rec; -- fetch data from table into local           record.
              exit when wt_cursor%notfound;
              --move data into target_arr
              v_target_arr_rec :=                     cws_curr_pair_entity_wt_rec(v_target_rec target_id,v_target_rec. target_entity_id,
                        v_target_rec.dd,v_target_rec.fd,v_target_rec.code,v_target_rec.target_pct,
         v_target_rec.template_nm,v_target_rec.p_symbol,v_target_rec.pm_init,v_target_rec.template_name,
         v_target_rec.template_type,v_target_rec.template_caption,v_target_rec.sort_order);
              v_target_arr.extend();
              v_target_arr(v_count) := v_target_arr_rec;
              v_count := v_count + 1;
         end loop;
         close wt_cursor;
         -- run table cast on target_arr
         SELECT count(*) into v_rec_count
         FROM TABLE(CAST(v_target_arr AS target_arr)) arr;
         DBMS_OUTPUT.enable;
         DBMS_OUTPUT.PUT_LINE('p_out_count ' || v_rec_count);
         DBMS_OUTPUT.PUT_LINE('v_count ' || v_count);
    END;
    Output is
    p_out_count 0
    v_count 10140
    Expected output
    p_out_count 10140
    v_count 10140

  • Loop Not Returning All Rows

    I finally need to turn to the forum after trying for a few days to resolve my problem I decide to turn to the Oracle people for help.
    The following code below does two things:
    1. If I have the get_menu_label in side of it's own loop it never returns
    2. If I take the get_menu_label out side of it's own loop it returns but does not return all the data.
    DECLARE
    -- GETTING THE DATABASE NAME
    CURSOR get_db_name
    IS
    SELECT DATABASE
    FROM uaf_mfgp_menus_and_groups_vm
    GROUP BY DATABASE
    ORDER BY DATABASE ASC;
    -- GETTING THE OBJECT_ID FOR EACH DATABASE
    CURSOR get_object_id_db (l_db_name VARCHAR2)
    IS
    SELECT object_id
    FROM UAF_FORM_OBJECTS
    WHERE object_label_2 = l_db_name;
    -- GETTING THE GROUP NAME
    CURSOR get_gp_name
    IS
    SELECT group_name
    FROM uaf_mfgp_menus_and_groups_vm
    GROUP BY group_name
    ORDER BY group_name ASC;
    -- GETTING THE OBJECT_ID FOR GROUP WITH GP NAME AND DATABASE
    CURSOR get_object_id_gp (l_gp_name VARCHAR2, db_id NUMBER)
    IS
    SELECT object_id
    FROM UAF_FORM_OBJECTS
    WHERE object_label_2 = l_gp_name AND parent_object_id = db_id;
    -- GETTING MENU LABEL
    CURSOR get_menu_label (l_db_name VARCHAR2, l_gp_name VARCHAR2)
    IS
    SELECT menu_label
    FROM uaf_mfgp_menus_and_groups_vm
    WHERE DATABASE = l_db_name AND group_name = l_gp_name;
    got_object_id_db NUMBER (20);
    got_object_id_gp NUMBER (20);
    got_db VARCHAR2 (100);
    got_menu_label VARCHAR2 (200);
    BEGIN
    FOR c1 IN get_db_name
    LOOP
    FOR c2 IN get_gp_name
    LOOP
    OPEN get_object_id_db (c1.DATABASE);
    FETCH get_object_id_db
    INTO got_object_id_db;
    OPEN get_object_id_gp (c2.group_name, got_object_id_db);
    FETCH get_object_id_gp
    INTO got_object_id_gp;
              CLOSE get_object_id_db;
    CLOSE get_object_id_gp;
    OPEN get_menu_label (c1.DATABASE, c2.group_name);
    LOOP
    FETCH get_menu_label
    INTO got_menu_label;
    END LOOP;
    CLOSE get_menu_label;
    DBMS_OUTPUT.put_line ( 'GP_OBJECT_ID= '
    || got_object_id_gp
    || ' '
    || 'MENU_LABEL= '
    || got_menu_label
    END LOOP;
    END LOOP;
    END;
    /

    Javier, this the wrong way to use PL/SQL. Oracle SQL can do all this for you using JOINs.
    This code, even if it did work, would be terrible slow - unable to scale with data volumes.
    This code breaks a few fundamental Oracle rules:
    - row-by-row processing using PL/SQL
    - huge number of context swicthes per PL/SQL loop iteration
    - not maximizing SQL and minimizing PL/SQL
    I suggest you trash this code and write a SQL JOIN instead.

  • RowSetIterator not returning all the rows

    Hi,
    We have a use-case where we need to create a new row iterator to insert rows(values) in it. Immediately after insertRow(), we are reading the values by creating a secondary row set iterator (createRowSetIterator) but it is not returning all the inserted rows. Here is the code snippet:
    Code to insert rows:
    public void insertTerrLineOfBusiness(CreateOperation operation, TerritoryVORowImpl newTerritoryRow, TerritoryVORowImpl selectedRow){     
    if((operation.equals(CreateOperation.CREATE))
    || operation.equals(CreateOperation.COPY)
    || operation.equals(CreateOperation.ADD_EXISTING)){
    RowIterator selTerritoryLineOfBusinessIter = selectedRow.getTerritoryLineOfBusiness();
    //RowIterator newTerrLineOfBusinessIter = newTerritoryRow.getTerritoryLineOfBusiness();
    ViewRowSetImpl newTerrLineOfBusinessIter = (ViewRowSetImpl) newTerritoryRow.getTerritoryLineOfBusiness();
    newTerrLineOfBusinessIter.setAssociationConsistent(true);
    while(selTerritoryLineOfBusinessIter.hasNext()){
    TerritoryLineOfBusinessVORowImpl selTerrLineOfBusinessRow =
    (TerritoryLineOfBusinessVORowImpl)selTerritoryLineOfBusinessIter.next();
    TerritoryLineOfBusinessVORowImpl newTerrLineOfBusinessRow =
    (TerritoryLineOfBusinessVORowImpl)newTerrLineOfBusinessIter.createRow();
    newTerrLineOfBusinessRow.setTerritoryVersionId(newTerritoryRow.getTerritoryVersionId());
    newTerrLineOfBusinessRow.setLobCode(selTerrLineOfBusinessRow.getLobCode());
    newTerrLineOfBusinessIter.insertRow(newTerrLineOfBusinessRow);
    Code to read:
    public List getTerritoryLobsValues() {
    List <String> lobsValues = new ArrayList<String>();
    if (this.getTerritory().getCurrentRow() != null) {
    TerritoryVORowImpl territoryVORowImpl =
    (TerritoryVORowImpl)this.getTerritory().getCurrentRow();
    if(territoryVORowImpl.getTerritoryLineOfBusiness() != null){
    ViewRowSetImpl territoryLob =
    (ViewRowSetImpl)territoryVORowImpl.getTerritoryLineOfBusiness();
    RowSetIterator itr = territoryLob.createRowSetIterator(null);
    if(itr!=null){
    while(itr.hasNext()) {
    Row r = itr.next();
    String lobCode = (String)r.getAttribute("LobCode");
    lobsValues.add(lobCode);
    itr.closeRowSetIterator();
    return lobsValues;
    Can anybody suggest what could be the issue? How to fix it?
    Thanks,
    Akhila

    Thanks for your response.
    Jdev version:
    Primary == FUSIONAPPS_PT.V1REL6INT_LINUX.X64_120719.0800 (Primary Product for the view)
    Primary depends on FMWTOOLS == FMWTOOLS_11.1.1.6.0_GENERIC_120112.0037.2
    FMWTOOLS depends on label == JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1
    The above label originated from base label == JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192
    Use case: We have a tree table, each record may or may not have Line of Business(LOB) associated with it. On creating a child node in the tree table, the child node copies all the attributes of parent. These attributes are not committed explicitly, if user wants to save the child node only then the attributes are committed.
    Giving secondary rowSetIterator a name did not help in resolving this issue.
    If I am calling postChanges() before reading from secondary row iterator then its returning all the inserted values. But this.getTransaction().postChanges() is a JAudit violation, so cannot use it:
    RuleId: apps-jbo-category.File.AdfModel.54
    Rule: insertTerrLineOfBusiness - Review DBTransaction.postChanges call to ensure passivation-safety
    Any pointers on this?

  • Parameter not returning all values

    I have a crystal report built off an oracle DB.  For one parameter it is not returning all values.  I can display data or the entire table it shows me all values, but when i build a parameter it only shows me through August.  It is a date/time field.

    check the following thread
    [Dynamic Parameter only showing 1000 records when Crystal report is run.;
    regards,
    Raghavendra.G

  • REUSE_ALV_GRID_DISPLAY_LVC not returning all of entered changes in T_OUTTAB

    Have 4 columns in IT_FIELDCAT_LVC marked with EDIT  = 'X'. T_OUTTAB is examined in I_CALLBACK_USER_COMMAND.  Only the first keyed fields are returned.  The number of fields returned with the keyed changes varies.  Could not find a relevant SAP note.

    Found that a double-click anywhere on the report reliably returns all entered changes.  An added button on the application toolbar did not return all entered changes.
    Edited by: Jim Gebhardt on Nov 11, 2008 11:11 PM

  • **All attributes not returned in search result**

    hi everyone,
    I urgently need some help on ldap search.
    I have a directory structure something like
    c=xyz
    +-ou=x
    ------+-ou=1
    ------+-ou=2
    ------+-ou=3
    ------+-cn=crl here
    ------+-ou=4
    now when i am searching this node and displaying all "ou" under
    "ou=x,c=xyz" the search is not showing the nodes after the "cn",which
    is in-between the "ou"s
    i am using jsp, jndi, critical path directory server
    ================some code i am using for the search
    DirContext ctx=new InitialDirContext(env);
    SearchControls constraints = new SearchControls();
    constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
    constraints.setReturningObjFlag(true);
    NamingEnumeration results=ctx.search
    (SearchBase,"objectClass=*",constraints);
    while(results!=null && results.hasMore())          
    SearchResult sr = (SearchResult) results.next();
    attrs=sr.getAttributes();
    attr= attrs.get("ou");
    %>
    <hr>attrs: <%=attrs.toString()%>
    <br>Cert Name: <%=attr.get()%>
    <%     
    }// end of while
    ================
    the code above returns only
    ou=1
    ou=2
    ou=3
    But it is not returning
    "ou=4", which comes after "cn=crl.."
    thankyou in advance for your help
    from vikram.

    Hi Sigge,
    as i know, when we do crawl, it is based on the crawl scope, and it should crawl all the web applications.
    http://technet.microsoft.com/en-us/library/dn535606(v=office.15).aspx#BKMK_CrawlDefaultZone
    perhaps you can check for the managed property rules, and make sure the managed property is listed, and try to change to searchable.
    references:
    http://blogs.technet.com/b/tothesharepoint/archive/2013/11/11/how-to-add-refiners-to-your-search-results-page-for-sharepoint-2013.aspx
    http://technet.microsoft.com/en-us/library/jj679902(v=office.15).aspx
    http://sharepoint.stackexchange.com/questions/86556/problem-using-sharepoint-2013-search-to-filter-by-managed-property
    http://www.spsdemo.com/lists/code/psview.aspx?List=e8ea501a-fd9d-4dae-9626-808a49d34dc8&ID=21&Web=b5d35eb4-a015-4614-9ff6-b860c3d3d1af
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Dynamic Prompt not returning all values it should

    I am using Crystal Report 2008 CR Developer with service pack 3.1. 
    I have a report that has a SQL command statement.
    Using just the SQL statement, I get all results correctly (all "Events" show up).
    When I use the same report and create a dynamic prompt for the "Events", I get some of the values in the results, but not all of them.
    Also, the Events that I do get back in my results change randomly (one time I get Court Trial, the next time I don't). 
    The u201CEventsu201D field is the 2nd Group in the report.
    I also have a date time parameter in the report.
    The only thing Iu2019ve found so far related to this is the Max Rowset issue.
    I have used the registry fix to set the LOV value to 3000, even though there are only 1644  possible values for that particular field in the database. I changed it for all versions 11, 11.5 & 12.
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Crystal Reports\DatabaseOptions\LOV  "MaxRowsetRecords"="3000"
    My understanding of Dynamic Prompts is that each time the report is run, it first looks at all possible values in that field and return those as values to select in the prompt. For example, if there were 1644 values in the table, it would show 1644 values to select in the parameter to be used in the report. Is that regardless of group level or date parameter or if "Save Data with Report" is selected?
    Any ideas on why my parameters are not pulling the correct list of values to select for use in the report?

    Try connecting to the database directly rather than using a command object.
    Or... purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Regular Report Not Returning All Rows

    Greetings,
    On APEX version 4.1.1.00.23 Using latest versions of Chrome and IE. I found some threads that discussed this aspect some, but not to the extent that is helpful to my situation.
    I know it is crazy to have APEX return 40K+ rows on a report, but I have a need to do so. I need to return that many rows from a table so that an APEX page can be opened via Excel and then have an Excel macro run over the report results and import all 40K+ rows into a worksheet. As I said, that's crazy, but the decision isn't mine. :-) We have the macro working and it passes parameters to the APEX page and imports data from the APEX page.
    Also, the report has 14 columns on it, not that many.
    Given the requirement above I have a regular report page that only has the report and 2 page items on it. The page items contain values that are passed via Excel and are then used in the WHERE condition of the report. Using the same WHERE condition, when I run the SQL for the report outside of APEX it returns 46,840 rows. I have the both the Number of Rows and Maximum Row Count settings set to 50000. And, I have the Pagination Scheme set to Row Ranges X to Y of Z (with pagination).
    When I run the page and enter the selection criteria the report only returns 15,500 rows. Yes, that's a lot rows. And, it takes about 5 minutes to populate. But, it doesn't return ALL of the rows. Also, the pagination suggests that all rows were returned because it reads - row(s) 1 to 15500 of 15500. I have changed the pagination and max rows settings a lot to see of it's just a matter of having the correct report setting. I've yet to find a setting that will cause the whole 46840 result set to be returned.
    It may end up that the report selection needs to change in order to return fewer rows. But, regardless of that why isn't APEX returning the complete result set now? And, is there a way to force it to return the complete result set regardless of the size?
    Any suggestions are appreciated.
    Thanks, Tony

    cloaked wrote:
    Thanks for the response. Yup, you're correct. Downloading to a CSV might be better. I've set reports up that way many, many times. I have even developed pages that import from a CSV into APEX using PL/SQL, years before it was an APEX feature. I initially set the report up to allow it to be downloaded, but the user doesn't want it to work that way.
    The worksheet will be used by a lot of people in our accounting department and they want the process to be as simple as possible. Right now Excel opens up the APEX page, logs into the application, passes parameters to it for the month and company, hits the Select button, waits on the report to build, then automatically imports it, and finally closes the page. It is quite slick. Yes, it takes 5 minutes to run, but the user is OK with that given what the automation provides.
    So, in order for the automated import to work properly all 45K rows need to display on one page, without pagination. I currently have pagination on the page simply to determine if APEX is returning all of the rows.A process of this nature might work better using an export: XML or export: CSV report template, which won't go anywhere near pagination. When a page containing a report using these templates is requested APEX sends the report results in XML or CSV format rather than rendering the page. This should be faster, avoid complications with pagination, and be easier to parse in Excel.
    Previous thread along similar lines: +{thread:id=2285213}+

  • Wierd Coherence bug with keySet() / entrySet() not returning all data.

    So I have a cache with 3 key/values in it.
    If I call cache (over extend) with specific keys, i get all values back.
    Object valueA = namedCache.get("A");
    Object valueB = namedCache.get("B");
    Object valueC = namedCache.get("C");
    i.e. valueA/B/C are all not null.
    If I now try to use keySet()/entrySet(), I only get 1 value back.
    eg:
    int cacheSize= namedCache.size(); //cache size is 3
    int keySetSize = namedCache.keySet(); //cache size is 3
    int actualKeySetSize = (new HashSet(namedCache.keySet())).size(); // actual size is 1
    The same happens if I iterate over keyset/entryset, i.e. there is only 1 value in the result.
    I have 2 storage nodes, JMX shows 1 node has 1 unit and other node shows cache has 2 units.
    Are there any known bugs where above can occur, we are using Oracle Coherence GE 3.5.3/465p3.
    i.e. keySet/entrySet not returning full result sets!
    Cheers,
    Neville.

    Apparently a timing issue between the "creation" of a cache, and the processing of requests against that cache. Because of the nature of the cache creation protocol, it is possible for the client creating the cache to return before all storage members have been notified of the cache name. It is therefore possible for cache requests to arrive at a storage member before that member has had a chance to instantiate its backing map.
    Fix is part of 3.6.0 GA, and is now slated to be back ported for 3.5.3p8.
    Have tested against 3.6 and all looks ok now.

  • Crystal Report not Adopting all possible Dropdown Values from BEx Variable

    Hi all,
    I am having an issue in a Crystal report where the drop down parameter that is sourced from a BEx query variable does not include all the possible values in the cube (or in master data). After learning my lesson the first time of not changing the name of the variable or changing it to dynamic (this causes it to break), I had the understanding that the value list may not be complete when running the report in the Crystal client or in the viewer, however, I thought it should be correct when published to the BOE and run in infoview. I am getting the same incomplete list in infoview. I published the report into infoview using the Crystal 2008 desktop client, not the /CRYSTAL/RPTADMIN transaction.
    I know there are a couple ways of sourcing a Crystal report from a BW query - using MDX vs. not, etc. I created this report using the SAP menu > "Create new report from a query". I don't believe Crystal will easily let you use that menu option to create a report off two BW queries joined together (which is what I am doing), so I built it off one originally (using the SAP menu), then added the other later on. I have the checkbox for "Use MDX driver with support for Multiple structures" checked. In database expert, my "Selected Tables" both are of database type "SAP BW Query".
    Do I have the right understanding of how the value list should work when sourced from a BEx variable? If so, can anyone offer any suggestions for getting the value list populated correctly?
    Here's some info:
    Crystal version: CR2008, version 12.2.4.507
    BOE version 3.1
    SAP BW 7.01 EhP 6
    Thanks,
    Chad

    Hi,
    - in the Crystal Reports designer the list of values is not online and there is a maximum number of values - configured by a registry setting:
    (windows 7)
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Business Objects\Suite 12.0\SAP\BWQueryReportWrapper
    Key: MaxPickListSize
    and correct you can not change the name of the variable or set it to dynamic as the definition is based on the BEx query.
    I know there are a couple ways of sourcing a Crystal report from a BW query - using MDX vs. not, etc. I created this report using the SAP menu > "Create new report from a query". I don't believe Crystal will easily let you use that menu option to create a report off two BW queries joined together (which is what I am doing), so I built it off one originally (using the SAP menu), then added the other later on. I have the checkbox for "Use MDX driver with support for Multiple structures" checked. In database expert, my "Selected Tables" both are of database type "SAP BW Query".
    The checkbox on the Multi Structure is not for the option to combine 2 Bex queries - it is for Bex queries with 2 structures and the BW query driver has been deprecated already and you have to use the MDX Driver.
    Do I have the right understanding of how the value list should work when sourced from a BEx variable? If so, can anyone offer any suggestions for getting the value list populated correctly?
    in Crystal Reports Designer the list is static and when you publish the report using the BW Publishing to your SAP BusinessObjects Enterprise system the list becomes dynamic in InfoView.
    regards
    Ingo Hilgefort

  • Socket read not returns all bytes

    Hi all,
    we developed an java application which creates customer orders over the internet. The java application sends commands to our erp system, which creates the order. The communication between these system is realised with sockets. On my local pc everything works fine. But on our live system (sun - solaris) we become some problems. For the first entry send over the socket it works. But if another entry is added we got a problem. After sending ovber the socket the erp system creates the order and returns the checked data. The data returned are read as followed:
    protected void readFromSocket(byte[] buffer, int offset, int length)
    throws IOException {
    Arrays.fill(buffer, (byte) 0xee);
    int bytesRead = 0;
    while (bytesRead != length) {
    bytesRead = getIn().read(buffer, offset + bytesRead, length - bytesRead);
    While reading the second entry from the stream, it hangs. The socket does not return the full number of bytes we recommended.
    I will be thankfull for any idea.
    Thanks

    I would suspect that you have an infinite loop because you're not performing the correct logic, not that the socket hangs. Try putting a System.out.println("I read another " + bytesRead + " bytes from the socket...") statement after the read and see if it keeps printing something over and over.

Maybe you are looking for

  • CC App shows LR5 not installed even though it's installed and working

    I subscribe to the Photography CC Plan and I went to the CC App today looking for the LR 5.7.1 update.  The CC App showed LR5 as being up to date even though LR5 shows its version as 5.7.  I quit the CC App to see if that would force it to show the u

  • Hi Time series comparsion error

    Hi i am practising Obiee labs i got these problem, Time series error I created Time Series measure in my Fact and saved with out error it thou,In answer when i selected those columns to compare with Dollar iam getting these Error Error Codes: OPR4ONW

  • Yet another routing problem :/

    I'm trying to setup something like this: ADSL line | 192.168.0.1 Netgear router | 192.168.0.2 eth0 Arch box 192.168.1.1 eth1 / | 192.168.1.2 Windows box The rc.conf lines are: MODULES=(dmfe 8139too uhci_hcd snd-via82xx snd-pcm-oss !usbserial !ide-scs

  • ACR updates for Elements

    Why aren't there any?

  • Can't open certern web pages / proxy settings/firewall ?????

    i just get a grey box come up and says it's ether firwall or proxy settings can any one help