Error creating Master/Detail Form

Hi,
I tried to create a master detail form. I went through all the steps fine, only when i click the button to create the form, i received the following errors:
ORA-20001: Unable to create master detail page. ORA-06502: PL/SQL: numeric or value error: character to number conversion error
Unable to create Master Detail pages.
Could someone please tell me what's wrong?
Thanks,
Patrick.

We are getting this message in several areas in the development environmnet. It's happening in the developer login screen, when creating new tabs, and when tryig to create master detail reports. Here is our error from the Apache Log:
[Mon MarĀ  2 11:41:31 2009] [error] [client 10.64.8.231] [ecid: 1236012090:148.94.143.136:24226:0:1621,0] mod_plsql: /pls/apex_qmnt/wwv_flow.accept HTTP-404 ORA-06502: PL/SQL: numeric or value error\nORA-06512: at line 31\n
I think this is different from the issue above as that is due to too many items in a shuttle list. Ours seems to be related to our new APEX insstallation. Any help is appreciated here.

Similar Messages

  • Having problem with creating Master Detail form , please help

    I have to work on a project to create a survey system using APEX, as am new on using this tool , am still facing some problems to finish my job..
    i created Master/Detail form using wizard, the master form is working fine but am when i try to add data using the detail form its giving me error :
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "A884FA378C851786DDFE3A33709CB23C", item checksum = "5F8B1EE5CD3D46437455F43B37B9A6A0"., update "ABA"."ABA_SURVEY_SUBCATEGORY_MAST" set "ASCM_CATEGORY_ID" = :b1, "ASM_SURVEY_CODE" = :b2, "ASSM_SUBCATEGORY_ID" = :b3, "ASSM_SUBCATEGORY_DESC" = :b4
    i tried to go through the posts from others but i still dunno what is this error !!!& how to solve it..
    my master data table have 2 primary keys.. the details data table have 3 primary key all of them using trigger to fire a sequence to get the next_val!!
    am desperate & need help urgently for this ASAP.

    hello
    here is the solution,i hope this might help u.
    go to the code of your button and change write the following
    go_block('name of your master block');
    execute_query(no_validate);
    and in the object navigator make the first item in the master
    block that it should be displayed in the canvas and it must be a
    navigable item too.not a display item.
    thank you
    Zeeshan Ahmad

  • Error in Master Detail Form

    Hi All,
    i m getting the following error when i m creating a master entry ...
    ORA-06550: line 5, column 23: PL/SQL: ORA-02289: sequence does not exist ORA-06550: line 5, column 16: PL/SQL: SQL Statement ignored ORA-06550: line 8, column 16: PLS-00364: loop index variable 'C1' use is invalid ORA-06550: line 8, column 9: PL/SQL: Statement ignored
    but while creating the master detail form i had specified the corresponding sequences and they even exist in the DB.
    Please ! do help me .
    Thanks & Regards,
    Nandini Thakur.

    Hi ,
    Though u choose the schema name ...the sequence is not appended with the schema name .
    Example you are craeting the application in schema 1 and ur database objects are in schema 2.
    so while creating the Master detail form you will get the option of choosing the schema, but then also the sequence name is not appended (as this may be the problem or bug in apex) .
    so one needs to manually go and append the schema name.
    In master detail form one needs to append it
    1) Form of the Master ...the process called as get primary key there the sequence name should be appended
    ex:- myschema.seq
    2) another is the detail tabular form . here you need to good to the id hidden field and edit it , then in the source column append it with the myschema.seq.
    Regards,
    Nandini Thakur

  • Trying to create Master - Detail form, getting  ORA-06502: PL/SQL: numeric

    Anyone know why we might get this error trying to create a Master Detail form in HTMLDB 2.0?
    ORA-20001: Unable to create master detail page. ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Unable to create Master Detail pages.
    Return to application.

    Please create the failing case in your workspace on apex.oracle.com and tell us the workspace name, app ID and steps to recreate.
    Scott

  • Insert error in master-detail form

    Probably a stupid question. When I populate the master block of
    a master detail form from an LOV, I am asked to save the form.
    Since the information is loaded from the LOV, there are no
    changes to save. If I answer yes, it gives an Insert error due
    to the primary key violation in the master block table. If I
    answer no, it opens the detail block and gives the correct
    information. The problem is that when I enter information into
    the detail block and try to save it, I get the same error
    message regarding the primary key violation in the master block.
    The form works fine if I do not populate the master block from
    the LOV (or from select statements in triggers). Any suggestions
    will be appreciated.
    LS

    Hi,
    Check for the form or block status.Looks like the status has
    changed.Thats why u r getting the message.If any of the base
    table item has changed then u will get such a message.Try
    working on this an check it out.
    Thanks
    Vinod

  • How to create Master Detail Form in htmldb 2.0

    This option use to be available in 1.6 but I can't see it anywhere in 2.0.

    Anonymous - Create Page>Form>Master Detail Form.
    Scott

  • FRM-40654 error in master-detail form while deleting record in detail block

    Hi,
    I am facing an issue in a custom form which is a Master-detail form while deleting a record in detail block. It is giving an error "FRM-40654 Record has been Updated by another user. Re-query to see change". I have checked the record is matching with that in database.
    Can anyone help on this.
    Thanks In Advance,
    Midhun

    Hi jan,
    master block is based on Table "A" and detail block is based on a View "X".
    View "X" definitions includes the tables "A","B","C" etc..
    Now I have tried removing table"A" from view "X", even then the same error is ocuuring but the lock is happening on table "B" instead of "A"
    Thanks,
    Midhun

  • Session storage errors in master-detail form

    hi,
    as the sequences do not work in master detail forms, i'm using session variables but the form does not compile and gives error.
    following is my code in the SAVE button of the master-detail form -
    declare
    new_prod_id number(10);
    begin
    select BPSIDEV.PRODUCT_ID_SEQ.NEXTVAL
    into new_prod_id
    from dual;
    p_session.set_value
    p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'A_PRODUCT_ID',
    p_value => new_prod_id
    doSave; -- This is generated code
    end;
    the action item values is as foloows -
    Master - INSERT
    Detail - INSERT
    am i missing here something ? or is anything wrong here ?? pls advise ...
    after the above changes the form would not compile at all.
    also how would i populate the the detail records with the foreign key ??
    thanx...
    null

    This problem is fixed in 3.0.8 release of Portal which will be available with the next release of iAS.
    Actuallty the fix is simple look at the generated package of EXAMPLE_MD_FORM from EXAMPLE_APP, onSave event handler looks like this:
    procedure onSave
    p_block_name in varchar2,
    p_object_name in varchar2,
    p_instance in integer,
    p_event_type in varchar2,
    p_user_args in varchar2,
    p_session in out WWV_30898.wwa_api_module_session
    is
    "_master_block" varchar2(30) := 'MASTER_BLOCK';
    Some more code.......
    And then closer to the end in detail processing section there is something like:
    "_d_data_rec".COMM:=p_session.get_value_as_NUMBER(
    p_block_name => "_detail_block",
    p_attribute_name => 'A_COMM',
    p_index => "_cnt"
    "_d_data_rec".DEPTNO:=p_session.get_value_as_NUMBER(
    p_block_name => "_detail_block",
    p_attribute_name => 'A_DEPTNO',
    p_index => "_cnt"
    ===========================================
    You'll need to insert following code, just one if statement, that's it. Please note every time you regenerate the package this code will be lost, so you'll need to add this agains and again. Not a perfect solution, that's why I like JS workaround better.
    ============================================
    if "_d_data_rec".DEPTNO is NULL and "_m_data_rec".DEPTNO is NOT NULL
    then
    "_d_data_rec".DEPTNO := "_m_data_rec".DEPTNO;
    end if;
    ============================================
    ============================================
    if "_detail_action" = 'DELETE' and "_DETAIL_ROWID" is not null then
    DELETE FROM WWV_30898_DEMO.EMP WHERE ROWID = "_DETAIL_ROWID";
    "_detail_deleted" := "_detail_deleted" + 1;
    elsif "_detail_action" = 'UPDATE' then
    UPDATE WWV_30898_DEMO.EMP SET EMPNO="_d_data_rec".EMPNO,ENAME="_d_data_rec".ENAME,JOB="_d_data_rec".JOB,MGR="_d_data_rec".MGR,HIREDATE="_d_data_rec".HIREDATE,SAL="_d_data_rec".SAL,COMM="_d_data_rec".COMM,DEPTNO ="_d_data_rec".DEPTNO WHERE ROWID = "_DETAIL_ROWID" ;
    "_detail_updated" := "_detail_updated" + 1;
    elsif "_detail_action" = 'INSERT' then
    INSERT INTO WWV_30898_DEMO.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) VALUES ("_d_data_rec".EMPNO,"_d_data_rec".ENAME,"_d_data_rec".JOB,"_d_data_rec".MGR,"_d_data_rec".HIREDATE,"_d_data_rec".SAL,"_d_data_rec".COMM,"_d_data_rec".DEPTNO) RETURNING ROWID INTO "_DETAIL_ROWID";
    "_detail_inserted" := "_detail_inserted" + 1;
    end if;
    ............................

  • Using layout wizard to create master details form

    I was using the layout wizard to create a master details form but for the details portion of the form, only one row of data was displayed. What needs to be done to have multiple rows displayed for the details portion of the master details form? I'm using Forms 9i.

    specify the number of records to display in either the layout wizard or in the block properties.

  • Problem in Master Detail form when using ADF table for Detail

    hi,
    jdev version-11.1.2.1.0
    i have create Master detail form using datacontrol drag as ADF Master Form Detail Table.
    Now when i create a new row in Detail table using CreateInsert button a blank new row created on the top of detail table.
    and other row show that data of previous record based on master.
    problem is that i want when i click on createInsert button all row of detail table should be blank and when user fill two or three row then commit.
    Thanks in Advance

    Hi,
    if a detail table has data, then createInsert adds to these. If you want to hide existing rows, create a new View Object instance and set its "Retrieve from the Database" option to "No Rows". The use an af:switcher to change the table shown when the user clicks the createInsert button. There is a bit of coding required to have this use case in ADF, but its mostly declarative. Bottom line is that there is no automated option other than creating new rows in a separate page or dialog if you are bothered by existing rows
    Frank

  • Can't put Combobox  in Master-Detail Form

    I'm trying to create Master-Detail form with LOV's, but in both the Master and Detail selection, the Item Type LOV doesn't include combobox.
    From the looking at some of the Posts, this seems to be possible.
    Does anyone know what I need to do?
    Thanks Larry

    Hi,
    This is because you do not have any LOVs defined in your application. This LOV will show the LOV types, only if the application contains any LOVs. Define a LOV and then edit the form. You will be able to see it.
    Thanks,
    Sharmila

  • Problem in Master Detail form

    Hello I am new to Form Developer and the question I am asking may be very simple for experienced programmers but as I said I am new to forms development so I am finding it a bit hard.
    I have got the following three tables in database.
    1. Student (roll_no, name) Primary key is roll_no
    2. Fee_type(Fee_code, Type, Amount) Primary key is Fee_code
    3. Fee_Receipt(roll_no, Fee_code, Date_of_Payment) roll_no & fee_code are foreign keys
    I want a form containing a combo box filled with all the roll numbers of students, a combo box containing all the fee types and then fields for entering data into fee_receipt table by using text items.
    I dont want to see the names of students, just their roll numbers filled in the combo box. I dont want to see the fee code i just want to see the fee types in the second combo box.
    how would i be able to do that. Any sort of help big or small will be appreciated. Thanks in advance

    Hi,
    Check this out... *[url http://www.holowczak.com/oracle/dev9i/#creatingmasterdetail]Creating Master-Detail Form*
    It is a similar kind of master-detail form. But you have to adapt your requirement accordingly.
    Hope it helps

  • Master detail form issue

    Hello,
    I am unsure if this is a bug or how I'm doing things. I'm using version 4.1.
    I am creating a master/detail report (on the same page) using the wizard to create the page. I have no problem creating the page and it works. The only changes I make to the detail region (which is a report) is to set it to display one record at a time, enable partial page refresh and change the layout to a vertical list including null columns. Essentially I want to see one record at a time. I can certainly page through them one at a time. However if I press "Add Row" it creates a new blank record below my existing one. If I keep pressing "Add row" I keep getting more blank rows. Shouldn't this blank row overwrite the currently displayed row so that there is only one row at any given time (whether its blank or a populated line). If I'm saying I only want one shouldn't it only ever display just one record regardless of whether your adding or reviewing existing detail records. It seems to me that if I tell it I only want one row, it shouldn't allow me to keep adding rows indefinitely which end up getting added to rows already on the screen. On a vertical listing with a lot of fields, you could end up scrolling for days.

    Hi -
    My assumptions are:
    1) That you have created Master/Detail form with both Master and Detail regions on the same page.
    2) The problem of NOT seeing the Detail happens when you are inserting (not updating) on Master,
    in other words when you are creating a new user in Master section.
    The Detail section (as created by Apex Master/Detail wizard) is a Report with a Condition set for display:
    "Value of Item in Expression 1 Is Not Null" with Expression 1 populated with PK of Master.
    So, change this condition to None and empty Detail section will appear in Create mode.
    Note that you must now set the Form object that holds the PK for new Master record by some means,
    (maybe a Page Process or such) before the Save is done, otherwise Detail record will not have FK.
    Also you are going to have to play with the Conditions on the ApplyMRU and ApplyMRD Processes created
    by the wizard to make sure they are only firing in Create mode when the Save for the whole page is submitted.
    Lastly you can clear the values on the page with a Process of type "Clear Cache for all Items on Pages" that fires
    last after page submission, again this may need a Condition to prevent clearing items before you are ready...

  • Master details form in Oracle BPM

    Hi All,
    Could anybody please let me know if we can create master details form in Oracle BPM too? If yes kindly help me in this regard. Thanks
    Regards
    Nasir

    Hi,
    I tested it on JDev12c and also works:
    Couple of tips:
    - Try to keep your payload as small as possible. Check this post: http://avioconsulting.com/blog/decoupling-oracle-bpm-process-instance-information If you put all your information on XML is like you have two databases and is annoying to keep them sync.
    - if you decouple your data, you will be able your UIs, so you could create an ADF app with bounded taskflows (e.g.: Master-Detail) and embed it on your ADF-HumanTask app.
    Hope this helps,
    Jorge

  • Download data as excel from master-detail form.

    Hi All,
    I have created master-detail form with two tables(i.e orders and items). how can i import data of specific order into excel using single button click. Can any one help me.
    I am using apex 4.1 version
    Regards,
    Vijay. J

    I have created master detail form. when i click on the button then the would downloaded to excel like below format. when we open the order and click the download button it fetch the line items of that order and display in below format (This like normal invoice form).
    CompanyName
    Bill to Address Shift to address
    Item code qty item price
    1 1 2000
    2 1 3000
    total 50000
    -------------------------------------------------------------------------------------------

Maybe you are looking for

  • Trying to sync Palm IIIc with Powerbook

    I have been trying to sync a Palm IIIc with my Powerbook which is currently running Tiger (I cannot run OS 9 at all). I bought the IIIc on eBay and it works flawlessly except for the fact that it won't sync. I can click on the hotsync square on the s

  • How do I clear the file list in "Grab"?

    When files are saved in Grab, they also go onto a list which is accessed from the Grab icon in the dock by right mouse clicking. Even after the file is totally deleted from everywhere including the trach bin, the file name still appears on the list a

  • Playing  movies on tv  via laptop

    can anyone help, i am trying to watch movies that i have downloaded onto my laptop, on my t.v. using s-video cable plus audio leads. I can hear the sound but cannot view the picture.

  • Regarding authorization issue for vf04

    Hi Experts, I have copied the vf04 transaction into ysdvf04 transaction. And my requirement is One user is responsible for one plant. In YSDVF04 we have the field shipment point field on the selection screen. When that user executes this transaction

  • Increase the screen size in ARD.

    I control a Mac Mini via ARD from an iMac which has a 2560x1440 screen. The maximum screen size shown by the Mini is 1680x1050. Is there any way I can get the Mini to display on the full 2560x1440?