FRM 40507 Unable to fetch next query record ??

I am working on forms/oracle 10G
there is this form which has a Combo Box list item.
data in this list is fetched from a table 'A'.
while saving data the value in the list item is saved in
another table 'B'
Now when i try to query the form using F11 and Ctrl + F11
it gives me an error :
FRM: frm 40507 UNABLE TO FETCH NEXT QUERY RECORD
please guide what should i do ?? ...
regards

Details of the FORM :
a) there is only one table
b) we are using 2 datablocks . parent and child. This is because the child is
displaying about 5 records. No parent child relation is set in the datablocks yet or in the table. can we do this in a single table ?
c) now the user shall select a value from the activity list ( combo box ) . The date and time are auto populated in when new form instance. User then enters data for the child records and clicks save.
d) data is save correctly.
e) but while querying data that is saved it errors out saying that : FRM 40507 Unable to fetch next query record
Will we have to define a parent child relation in the single table or in the datablocks ?
i m really confused ??
Regards

Similar Messages

  • Form Error 40507: unable to fetch next query record

    Hi there folks,
    I have a Form (10g) where I have a Master Block and a Detail block. However, the other day, there was an Error reported:
    ORACLE error: unable to fetch next query record
    When we do capture Errors, we also capture the Last Query run. From that, it says that the last record that was queried was in the Detail block (Which is multi-record block) in tabular form. I looked at the Error Message but there is not much information on this Error.
    So, it's just a base table block and it has a drop down list which has two values. Any ideas what could have happened?
    Thanks!

    The Block is based on a a table. As a mattr of fact, there are 3 blocks in the form and they are all based on tables. Now, it migth be wrong for me to assume that the detail block in the one that caused the problem just because the Last Query was based on the detail block.
    Block 1 is a single record block -- Master Block
    Block 2 is a tabular block -- Detail Block
    Block 3 is a tabular block -- Detail Block
    There are two relations:
    Block 1 and Block 2
    Block 1 and Block 3

  • Unable to fetch 50,000 records from SQL using Orchestrator

    Hi Team,
    I have a table in MS SQL which is having more than 50,000 records. I am trying to fetch 50,000 records using orchestrator, but unable to fetch the records..
    There is no problem with the SQL query because I can able to get 40,000 records..
    I am using SCORCH DEV - SQL Integration Pack.
    Regards,
    Soundarajan.

    Hi,
    Thanks for your query.
    I have also used timeout parameter but it is not working.. As you said I also tried with Query database Activity which is out of the box...
    Now i can able to fetch more than 80,000 records but the output what i am getting is not in the format which we are looking for..
    Attached the output...
    How to edit this..?
    I tried to write the output in excel but all the data sits in the first column itself..
    Regards,
    Soundarajan.

  • How to fetch n records at a time from a FM and then fetch next n records

    I have a report program which is calling a function module . This function module returns all the records from a table. As the table has millions of records, it cant be returned at a time. How can we return N records from a function module and then return Next n records .The Function module and the report program are in different system .
    Thanks in Advance.

    Use open cursor and fetch cursor.
    Check the program as in SAP Help.
    DATA: BEGIN OF count_line,
            carrid TYPE spfli-carrid,
            count  TYPE i,
          END OF count_line,
          spfli_tab TYPE TABLE OF spfli.
    DATA: dbcur1 TYPE cursor,
          dbcur2 TYPE cursor.
    OPEN CURSOR dbcur1 FOR
      SELECT carrid count(*) AS count
             FROM spfli
             GROUP BY carrid
             ORDER BY carrid.
    OPEN CURSOR dbcur2 FOR
      SELECT *
             FROM spfli
             ORDER BY carrid.
    DO.
      FETCH NEXT CURSOR dbcur1 INTO count_line.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      FETCH NEXT CURSOR dbcur2
        INTO TABLE spfli_tab PACKAGE SIZE count_line-count.
    ENDDO.
    CLOSE CURSOR: dbcur1,
                  dbcur2.
    Regards
    Kannaiah

  • Is there an easy way to fetch next/previous record in Apex?

    I am new to APEX/Oracle, but have a lot of expierence as a mainframe programmer and some experience with SQL.
    I have been tasked by my boss to create a set of pages in an application as follows.
    Page 1: Select an Employees Name and go to Page 2.
    Page 2: Display Employee's Biography Information.
    Add a "Next Employee" button and a "Previous Employee" button that will fetch the next/previous Employees Biography info respectively.
    In essence, he wants a query with every employee's biography information with the employee selected on page 1 used as the starting pointer.
    I have successfully built "select an Employee's name on page 1" and "display his/her info on page 2" with a query that returns a single record.
    What I can not figure out is how to get a next and previous button to get the next or previous record in a multi record query, using the intially selcted employee as the intial pointer.
    Is their an easy way to build this using built-in APEX functionailty, or will it require programming to achieve this requirement?

    Bob,
    I installed the Aria application, but now I wish I'd run the preview first. It's a cool application, but I don't see anything like what greich requested. I'm looking for the same thing.
    <ol>
    <li>     and clicked the Edit or View Details button for an individual. </li>
    <li>That takes me to a custom Form page that shows one person. </li>
    </ol>
    I'm trying to imagine how I'd code buttons for that Form page to let me click to see the next or previous person on that same form. My mind gets totally boggled when I consider that the user might have filtered the report to only show a few records. How do I have any idea what those IDs were and what order they were showing in, to know which is the next individual.
    My only thought it to create a process on the report that could save primary key (e.g. employee ID) to a table or Apex collection? Then the form button runs a process that finds the current ID then uses next or previous?
    I'm not sure how I could capture the PK in the report in order to save it.
    Does this make sense? Anyone got a better idea?
    Thanks,
    Stew

  • Unable to fetch and display records

    Hi, I am using Oracle 11g
    The procedure is compiled without any errors.
    The select statement retrieves records well when executed at SQL promt.
    But the same records are not displayed in this procedure by fetch from cursor.
    The last message in the procedure 'completed' is also displayed.
    Please help me in retriving the records.
    create or replace procedure disp_rec(vid IN varchar2, vfeat IN number)
    is
    cursor c1 is select gid, listagg(vindex, ',') within group (order by tid) idx from ridrecords where idarpt=vid and feattype=vfeat group by gid;
    type vg is table of number;
    type vi is table of varchar2(3500);
    a vg;
    b vi;
    begin
    if vfeat = 0 then
    open c1;
    loop
    fetch c1 bulk collect into a, b;
    exit when c1%notfound;
    for indx in a.first..a.last loop
    dbms_output.put_line(a(indx)||b(indx));
    end loop;
    end loop;
    close c1;
    elsif vfeat = 1 then
    open c1;
    loop
    fetch c1 bulk collect into a,b;
    exit when c1%notfound;
    for indx in a.first..a.last loop
    dbms_output.put_line(a(indx)||b(indx));
    end loop;
    end loop;
    close c1;
    end if;
    dbms_output.put_line('completed');
    end disp_rec;

    Is it ok now ?
    1  create or replace procedure disp_rec(vid IN varchar2, vfeat IN number)
    2  is
    3  cursor c1 is select gid, listagg(vindex, ',') within group (order by tid) i
    x from ridrecords where idarpt=vid and feattype=vfeat group by gid;
    4  type vg is table of number;
    5  type vi is table of varchar2(3500);
    6  a vg;
    7  b vi;
    8  begin
    9     if vfeat = 0 then
    10     open c1;
    11     loop
    12     fetch c1 bulk collect into a, b;
    13     for indx in a.first..a.last loop
    14     dbms_output.put_line(a(indx)||b(indx));
    15     end loop;
    16     close c1;
    17     elsif vfeat = 1 then
    18     open c1;
    19     loop
    20     fetch c1 bulk collect into a,b;
    21     for indx in a.first..a.last loop
    22     dbms_output.put_line(a(indx)||b(indx));
    23     end loop;
    24     close c1;
    25     end if;
    26  dbms_output.put_line('completed');
    27 end disp_rec;

  • Frm- 40505 Unable to query (table does not exist)

    Hey,
    I have a form which has two blocks that are master and detail blocks. On the form, there are 3 fields that allow the query. If there is record found in the master then it works fine. If nothing found, it shows "query causes no records" which is also fine. But afterwards, no matter what I type in to query, it always show frm-40505. Oracle error, unable to perform query. I click "display error", it shows:
    SELECT ROWID,LOC,INV_NUMBER,RECNO,FACTOR,C_DESC,ADJ_TYPE,CODE,AMT FROM OE_INVOICE_ADJ
    WHERE (LOC=:1) and (INV_NUMBER=:2) order by recno
    frm - 09402:Table or view does not exist.
    Here oe_invoice_adj is the detail table and it does exist. If I stop the form and run it again then it's fine. It only happens after "query causes no records".
    Any ideas? thanks a lot in advance.

    Jay, Have you created public synonym for the tables so that the users don't have to refer the tables with the schema scott.xtable...
    and have the users been given the SELECT privilege to those tables....
    mb
    I actually created the tables and views for my application by logging in as scott/tiger.Now the users I have created with due privileges are just able to log in but unable to perform any query or DML.The error message is FRM 40505'UNABLE TO PERFORM QUERY' which says table or view does not exist.How do I fix this problem?
    Please get me a solution
    Thanks
    Jay

  • PDE-PLI031 Unable to fetch record from table tool_modulre

    Dear ALL
    I am creating PL/SQL Libraries in report builder.
    but When I try to save the Library to database, a error
    PDE-PLI031 Unable to fetch record from table tool_modulre.
    Would you please tell me how to solve this problem
    and why it coming
    thankyou very much
    pritam singh

    Hi ,
    Saving a library (.pll) to database would store the object inside specific tables that are to be created.
    If you are using 6i, then you should find toolbild & toolgrnt.sql files which you have to run in the order specified. The above scripts creates the necessary tables and henceforth you won't get those errors while saving.
    Hope this helps.
    Thanks,
    Vinod.

  • FRM - 41105 You Cannot query records without a saved parent record

    I have 3 data blocks. The contro data block have document type and document number if we come to new record(I have written execute query for both header and detail part) the header block will show the detail of the documnet header(Header Details) and detail block will show the detail part.
    But my problem is when new record instance only the header block is querying and detail block is not querying and giving an error message(*FRM - 41105 You Cannot query records without a saved parent record*)!!
    Plz help me!!
    Thanks in advance,

    yea header tables PK is refered in the details table.
    and i have master record created already and have the detail record for those master records in the table.
    i want to query the detail record related to that master when we select a document number and document code in the control block.
    Its querying the master detail relevent to that header and giving this error messge while quering the detail record..

  • How many records are  fetched my query into my internal tables

    Hi
    I am in the debugger, would like to know, how many records are  fetched my query into my internal tables. How do I  find out ?
    thanks
    siva

    Hi,
    Do the following,
    Step 1:
      Fill your internal table with select query.
    Step 2 : Use DESCRIBE statement with LINE addition to get the no of rows in the internal table.
    for further informations, check
    http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3798358411d1829f0000e829fbfe/content.htm
    Regards,
    Anirban

  • DB Tools Fetch Next Recordset

    I am having trouble iterating through the set of recordsets returned from a query that returns multiple tables.  I am using the DB Tools Fetch Next Recordset.vi in a loop to iterate through recordsets until they have all been processed.  One problem I have is that there is no indication that you have iterated past the end of recordsets.  DB Tools Fetch Next Recordset does not produce an eof type indication like you get when iterating through records in a recordset.
    My code is attached:
    1.  Open a database and execute a query that returns more than 1 table (SELECT * FROM tblA SELECT * FROM tblB)
    2.  Fetch the current recorset data and store in array.
    3.  Use DB Tools Fetch Next Recordset to move to the next recordset.
    Question:  What is the stop condition to test for?
    Errors propogate through to the close vi which reports:
    Error 97 occurred at Rec Get Recordset Properties (R).vi->Rec Fetch Recordset Data (R).vi->Untitled 1
    Possible reason(s):
    Unknown System Error in Rec Get Recordset Properties (R).vi->Rec Fetch Recordset Data (R).vi->Untitled 1
    Any help or example for navigating recordsets?
    Thanks,
    -cb
    Attachments:
    Iterate recordsets3.png ‏21 KB

    Hi, 
    I have a sql query in labview 2011 and i receive a lot of recordsets from it, i can group all records in arrays but i have the same error at the last cycle (i think is normal because it lost each recordset when i use fetch next recorset so the last cycle is consider like EOF and BOF at the same time) but i have other issues, when i tried to free the connection it appear error code 1045 about Rec Destroy and using the execution trace toolkit there are a lot of References Leak, i think maybe one per cycle.
    My results are the expected but i have this problems.
    I did a very simple example to reproduce my problems, it can use any sql db connection because it doesnt query colunms or  data and presents  the same things.
    Thanks for your time
    Attachments:
    fecthallrecordset.JPG ‏83 KB
    problems.JPG ‏71 KB

  • How to fetch all the records

    Hello everybody,
    I am currently working on SQL Developer for the couple of weeks. I have specific need to check, how much time one query take to fetch all the records. Currently it can fetch only 50 records and when scroll then next 50 records and so on.
    Can anybody tell me, how to set this to fetch full records
    Regards,
    Martand M Joshi

    Martand,
    There's no setting to fetch all records. You wouldn't like SQL Developer to fetch for minutes on big tables anyway.
    If, for 1 specific table, you want to fetch all records, you can do Control-End in the results pane to go to the last record. You could time the fetching time yourself, but that will vary on the network speed and congestion, the program (SQL*Plus will be quicker than SQL Dev because it's more simple), etc.
    Now, what I think you really want here, is getting the execution time. If you really want to analyze the query's performance, you'd have to use the explain plan, autotrace and tkprof (see the manual for tuning and performance).
    To make us life easier, the makers of SQL Developer included support of the explain plan, and as of v1.1, autotrace!
    I'm sure you've got enough to work things out from here...
    Regards,
    K.

  • FRM-41214 unable to run report

    Hi,
    i'm trying in this days to migrate my software from 6i to 9i....
    Particularly i had some problems when i try to launch a report from my form...
    The form had migrated from Oracle 6i and it seems that it hasn't any type of problem but when i try to call a report from the web i obtain the error FRM-41214 (unable to run report)
    but this report is correctly positioned in the right path and when i use a different report of a different project (compiled for the 9i) i note that the error occurs when i use one of my group obtained from my queries like source for a new repeating frame.....
    Exactly until when i use one of the old groups of the old report it's all right but when i try to use a new group referred to a my new query i obtain the precedent error
    (FRM-41214, unable to run report)
    But i don't have any type of error when i compile...
    Can anyone help me? Some one can tell me what can i do or some one can indicate me same document where i can read all the step to migrate a report??
    Thanks a lot in advance

    Problem resolved. Copy of document can be found
    in METALINK, NOTE: 1069651.6. This will resolved the problem.
    Thanks.

  • Error while importing EJB model in Web dynpro: Unable to fetch the EJBs.

    Hi,
    We are getting the below error while importing ejb model to Web dynpro.
    Error :
    Unable to fetch the EJBs. Check if the selected Enterprise Application contain the EJBs.
    I have created the public part-> It has a reference to EJB client and the enterprise application also has reference to the EJB project.The EJB is also added in dependency list.
    But still we are getting this error. Could anyone please explain what can i do to solve this issue.
    Best Regards,
    Karthika

    Hi Vishweshwara,
    Thanks for your reply.
    Please find the steps i followed while importing EJB model in webdynpro.
    1. The Entity forwarding permission has been enabled.
    2. public part reference has been created and through the reference entity option the ejbDC->Client public part is selected.
    I followed all the steps mentioned in the document. But still i am getting that error. In EJB DC we have list of JPA entities and stateless session beans are exposed as a webservice(top-down manner).The enterprise application has a reference to the EJB DC.
    I could be able to invoke the ejb service beans from ejb explorer and Webservice navigator.
    I am able to insert,delete and modify the records from there.
    Please let me know what could i do to resolve this error?
    Best Regards,
    Karthika
    Edited by: SAKarthika on Apr 29, 2011 1:43 PM

  • ORA-01403: no data found  .  Error Unable to fetch row

    Hi
    I have a form that, when inserting a new record, should submit the form but remain in the same page with the same info. I have set up the "after processing" branch (unconditional) to redirect to that specific page (page 5), the "reset pagination for this page" option selected and "clear cache" option empty. What happens is that, when inserting a new record, i get error ORA-01403 indicating that it's unable to fetch the record. Although i get this error, the new record is inserted in the DB... I have also selected option "Only when current value in session state is null" for source used for all fields of form. What am i doing wrong? I thank in advance all replies!

    Hi again
    Because you have a trigger on the table that selects the current max(ID)+1, when creating the form you should have used "Existing Trigger"when defining the source for the primary key, not "Existing Sequence". You should also change the trigger to use the sequence.NEXTVAL for the ID.
    When you created the form using "Exisitng Sequence", Apex would have created a "Get PK" process which gets the primary key value from the sequence before passing control to the DML process. You should delete the Get PK process and let the database trigger do it's job.
    In the DML process, set "Item Containing Primary Key Column Value" to the page item name e.g. "P5_ID", and set "Primary Key Column" to "ID" (the name of your table column).
    That should do the trick.
    Cheers
    Richard
    Message was edited by:
    Richard.

Maybe you are looking for

  • OIM: Invalid LookupQuery when trying to save

    OIM: 11g (11.1.1.5.2) When trying to create a form field, of type LookupField, I am entering the following Lookup Query property value: select UD_ADGRP.UD_ADGRP_OBJECTGUID,UD_ADGRP.UD_ADGRP_DISPLAYNAME,UD_ADGRP.UD_ADGRP_DESC from UD_ADGRP,OIU,OBJ,OST

  • Could not find the specified responsibility

    Hi All, I have created project for Employee Self-Service. Got all the relevant file by seeing through the "About this Page" link. Firstly I am not able to find the envVO file. Can anybody tell me where it is ? Secondly Compiled the project and run th

  • Multiple members in dimension

    Hello experts, As I am new to BPC, I am still learning the lingo whle trying o develop a template for some analysis. I want to be able to pull multiple GL_Accounts where GL_Account is one of my dimensions.  The hierarchy that was created has the indi

  • Exception Error: INTERNAL WS_ADAPTER_SYS_ERROR

    Hi, I have a file to proxy scenario with file data posting into ECC using web service WSDL and getting the following error. Can anyone advice what this error is pointing to? Thanks. <SAP:Stack>System error while calling Web service adapter: <sap:Exce

  • MST/RSTP not quite working

    Hi, I have 6 x 3560 switches all connected in a redundant ring topology and interconnected using fibre. I have enabled the fibre ports as trunk ports with dot1q encapsulation. I have created 6 VLANS and defined ports on each device as members of the