FRM-41072 Can't Create Group.

Dear Friends
i have problem with my form, it is simple form. and this is my code.
DECLARE
     RG_NAME VARCHAR2(100):= 'CUST_NAME' ;
     RG_ID RECORDGROUP ;
BEGIN
RG_ID := CREATE_GROUP_FROM_QUERY(RG_NAME,'SELECT CUSTOMER_NAME FROM CUSTOMERS');
END;
each time i got FRM-41072, i tried to search all other posts and until now, no solution.
Best Regards

Hi,
what is the purpose of the record group?? LOV, list item?
The error message frm-41072 info from Online help:
Cause:  
Caused by one of the following
1. Duplicate column names in SQL statement.
2. Invalid record group name.
3. Query is invalid.
Action:  Check the group name and/or correct the SQL statement.
Try running your query from sql plus and make sure it works.
After, modify your code to verify if the record group has been created already.
This sample is available on forms online help:
/*** Built-in: CREATE_GROUP_FROM_QUERY
** Example: Create a record group from a query, and populate it.
DECLARE
rg_name VARCHAR2(40) := 'Salary_Range';
rg_id RecordGroup;
errcode NUMBER;
BEGIN
** Make sure group doesn't already exist
rg_id := Find_Group( rg_name );
* If it does not exist, create it and add the two
** necessary columns to it.
     IF Id_Null(rg_id) THEN
     rg_id := Create_Group_From_Query( rg_name, 'SELECT SAL-MOD(SAL,1000) BASE_SAL_RANGE,'
     ||'COUNT(EMPNO) EMPS_IN_RANGE '
     ||'FROM EMP '
     ||'GROUP BY SAL-MOD(SAL,1000) '
     ||'ORDER BY 1');
     END IF;
/* ** Populate the record group */
errcode := Populate_Group( rg_id );
END;
Regards,
Hugo.

Similar Messages

  • FRM-41072:Can't create Group (for a tree)

    Hello,
    the following code is trying to refresh data while saving the record which is a child of the child of the Grand parent.
    In Key-commit Trigger..
    The Query was working just fine without the new modification concept to have a child from the child.
    e.g.
    Electrical Equipment
    |_ Computer
           |_ Mother BoardAny way the Query works fine in Toad it displays what i want but in the forms' tree ..!!!
    Getting the following Error:
    --===========================
    FRM-41072:Can't create Group RG_DAL_MED
    FRM-41076 :Error populating Group.
    FRM-41085 :Error getting Group Row count.
    --===========================
    Using Forms 6i Windows XP ..!
    DECLARE
        selektas VARCHAR2(5000);
          rg_name VARCHAR2(4000) := 'RG_DAL_MED';
          rg_id      RecordGroup;
          find_node Ftree.NODE;
          n NUMBER (38);
          htree ITEM := Find_Item('TREE_BLOCK_TEST.TREE13');
          v_WHERE   VARCHAR2(5000);
    BEGIN
      rg_id := Find_Group(rg_name);
       IF NOT Id_null(rg_id) THEN
        DELETE_GROUP(rg_id);
       END IF; 
              V_WHERE := ('PARENT_ID IN ( SELECT   INSP_EQUIPMENT.EQUIPMENT_ID FROM INSP_EQUIPMENT 
         WHERE CLASS_ID IN (1,2,3,4)');
              V_WHERE := V_WHERE || (' AND INSP_EQUIPMENT.EQUIPMENT_TYPE_ID = ' || :INSP_EQUIPMENT.EQUIP_TYPE_ID ||'' );
              V_WHERE := V_WHERE || ( '     AND ( INSP_EQUIPMENT.PARENT_ID= '|| :EQUIP_ID );
              V_WHERE := V_WHERE || ( '   OR INSP_EQUIPMENT.PARENT_ID IS NULL ))');
              V_WHERE := V_WHERE  ||(' CONNECT BY PRIOR INSP_EQUIPMENT.EQUIPMENT_ID = INSP_EQUIPMENT.PARENT_ID START WITH  INSP_EQUIPMENT.PARENT_ID IS NULL ORDER BY EQUIPMENT_id ');
            selektas :=  'SELECT       1       NODE_STATE,                    LEVEL               NODE_DEPTH,
                                                       EQUIPMENT            NODE_LABEL,
                                     NULL                 NODE_ICON,
                        EQUIPMENT_ID         NODE_VALUE                           FROM                 INSP_EQUIPMENT
              WHERE V_WHERE ';
         rg_id := Create_Group_From_Query(rg_name, selektas);         
               n := Populate_Group(rg_id);
                n := Get_Group_Row_Count(rg_id);
    IF n > 0 THEN
       Ftree.set_tree_property(htree,Ftree.record_group,rg_id);
    END IF;
    END;Regards,
    Abdetu..

         selektas := 'SELECT 1 NODE_STATE,                    LEVEL NODE_DEPTH,
                                       EQUIPMENT NODE_LABEL,
    NULL NODE_ICON,
         EQUIPMENT_ID NODE_VALUE           FROM INSP_EQUIPMENT
              WHERE V_WHERE ';You have to add the V_WHERE as a value to your select:
    selektas :=  'SELECT  1       NODE_STATE,
                          LEVEL               NODE_DEPTH,
                          EQUIPMENT            NODE_LABEL,
                          NULL                 NODE_ICON,
                          EQUIPMENT_ID         NODE_VALUE                          
                     FROM INSP_EQUIPMENT
                    WHERE ' || V_WHERE;

  • Frm-41072 can  not create group

    hi...
    i like to create dynamic lov at the rum time but iam getting error frm-41072. when i ran
    the foll0wing coding.... please tell me what wrong with my codings
    declare
         recgrpname varchar(20):='tst_lov';
         recid recordgroup;
         recclm groupcolumn;
         errcd number;
    lv boolean;
    begin
    recid:=find_group('recgrpname');
    if id_null(recid) then
         recid := Create_Group(recgrpname);
         recclm:=add_group_column(recid,'agr_no',number_column);
         recclm:=add_group_column(recid,'name',number_column);
         end if;
    errcd:=populate_group_with_query(recid,'select count(agr_no),count(name) agr_mstr where rownum<=5 ');
    by
    ravi

    hi,
    check your syntax and for more clear help
    search it in online help in form builder.
    recid:=find_group('recgrpname');RECID:=FIND_GROUP(RECGRPNAME);

  • HT3529 My group messaging on/off label isn't showing up at all. I can only create group messages but every time someone starts a group chat it says its send to my number but I never got any text. I wen't to settings Messages and I can't find any on/off sw

    I can only create group messages but every time someone starts a group chat it says its send to my number but I never got any text. I wen't to settings>Messages and I can't find any on/off switch.

    Hello there, Idaniabb.
    The following Knowledge Base article offers up some great information in regards to group messaging and also links to another excellent resource for troubleshooting messages as well:
    iOS: Understanding group messaging
    http://support.apple.com/kb/HT5760
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Can I create group in users' My sites?

    Hi All,
    Can I create group in users' My sites? Also, Is it possible to create a personal site as https://<My site host site collection url>/managed path/username ? I am creating host based site collections with My Site Host site template.
    Thanks,
    Moohak

    Yes You can create group in users mysites.
    Create Host header site collection, then create my site host in that host header site collection.
    Then update this URL as shown below in my site settings
    http://technet.microsoft.com/en-us/library/ee624362%28v=office.15%29.aspx
    In the My Site Host section, type the URL of the My Site host site collection that you created earlier in this task.
    If this helped you resolve your issue, please mark it Answered

  • FRM-10044:Can't Create File

    Dear All..s
    i am getting the following error:FRM-10044:Can't Create File
    after trying to save any .fmb or mmb file Forms 6i
    Can anyboady help me..pls.!!
    Abdetu..

    Oh yess it's so simple even though i have a full permission i found out the properties of my app. folder available read only soo i unchecked this option and every thing go on very smoothly no problem..
    Thank u Rosario.
    Abdetu

  • FRM-10044 Can not create a file URGENT PLEASE!!

    I installed Oracle 8i and Forms 6i in a pentium 4 changing the symcjit.dll -> symcjit.old.
    Now I want to use the same scripts and Forms that I have saved using my old machine but I can't save new forms or update the old ones.
    FRM 10044 Can not create the file
    I can run the scripts in SQL.
    Please Help me it is urgent.
    I have installed and uninstalled the Data Base many times and I have read previous posts.
    Thank you a lot.

    Hi,
    "Cannot Create File" means forms failed to create/save the file. Check the following
    * Do you have full access to the drive?
    * Did you mark either the form or its directory as read only?
    Regards,
    Momen.
    Hi Helena,
    How are you? We are into Arabic development environment. I am trying to migrate from 6i (CS) to 9i (web). Everything went fine but when I run the report, the browser is displaying junk characters.
    Did you experience this problem?
    If you have any suggestions you can mail me on [email protected]
    Regards,
    Momen.

  • Can you create groups on ipad numbers

    Is it possible to have rows grouped in numbers for IPad?
    I would like to do the following
    Customer 1
    Subdata 1
    Subdata 2
    Subdata 3
    Customer 2
    Subdata 1
    Subdata 2
    Customer 3
    Subdata 1
    Subdata 2
    Subdata 3
    Subdata 4
    Customer 4
    Subdata 1

    It should be something that you are able to do on the iPad, but you can't. Why, I don't know. That feature has been missing from iOS forever.
    There are a couple of third party apps that I know of .... But do not use myself ... That will let you creat groups and email to those groups, which you can't do with the built in mail app either.
    MailShot and Group Email with Attachments are the apps that you can look at.
    If you want to add your name to the list of those that would like to see the ability to do this in iOS .....
    http://www.apple.com/feedback/ipad.html

  • Can't Create Group Wiki On ML Server

    Have a Mac Mini Server (late 2012) running OS X 10.8.3 and Server.app. Have some groups and users sprinkled among them.
    Would like to create group wiki, but when I push that button a web page opens with the error message:
    "The requested URL /wiki/projects was not found on this server."
    What is going on here? How can I create a group wiki?

    What if you can't do a clean installation?! How would I be able to make it work anyway?!

  • How can I create groups on my Iphone

    I need to create a group so that when I need to text a certain group of people i only have to click on the group rather than typing each individual name in.

    iOS 5 does not support this feature. You can use Easy Group, a free application I have developped. You can create your groups with it, and then send group text and group emails.
    http://itunes.apple.com/fr/app/easy-group/id461469079?mt=8
    Rémi
    Note: I may receive some form of compensation, financial or otherwise,from my recommendation or link.

  • I can't create group chat in messages using Bonjour connection

    Need help, please.
    I wanted to use messages for group chat while connecting under bonjour.
    I only able to chat private but not creating group.
    Anybody had experience this before?

    This isn't quite what I'm looking for. I want to be able to simultaneously chat with more than one person. For example, if I am person A, I want to chat with persons B and C at the same time, so that our chat would involve people A, B, and C.

  • Absolutely can not create groups on fascinate!

    no matter how i change up the display groups, when i go to create or even add a member to a group, the only people it will allow me to choose from are the last few people i have added to my phone contacts, not my facebook or google contacts, i can not get any of them to come up for me to add members!!! spent hours on this...help!!

    I had the same problem. I was not able to assign any contacts that were transferred from my old phone to a group, only newly created ones. I called Customer Service & they suggested doing it through gmail, which I did, but the group still didn't show up on my phone. So I think the only way to do this is to re-create the entry, which is obviously a huge inconvenience.

  • How can i create groups with my contacts?

    I am wondering if apple has made it possible to add groups to my contacts. It takes forever to send one message to 30 people when you have to select them individually from your contacts. Also worry about missing one of the contacts that needs the message. Any help or news?

    I don't know if there is a limitation to the number of characters you can have in an email address line in contacts, but you could try the following:
    Create a list of email addresses in notepad separated in by commas.  Highlight and copy the list.  Create a new contact.  Paste the list into one of the email fields. Create a new email and select the new entry from the contact list.  When you send the email you will get a message indicating that the emal address appears to be invalid.  Tap the send any way button.

  • FRM-41072 - Cannot create Group GRP_NAME

    In the layout I'm trying to populate Grp_name column values from GRP_TAB table, in the 'GRP_NAME' item list.
    This is the code I had written. But when I run the Form, I'm getting 'FRM-41072 - Cannot create Group GRP_NAME'error. What could be the error?
    DECLARE
    rg_tags varchar2(20) := 'GRP_NAME';
    rg_id RecordGroup;
    errcode number;
    list_id ITEM;
    BEGIN
    rg_id := create_group_from_query ('GRP_NAME', 'select GRP_NAME, grp_name from grp_tab');
    list_id := find_item('GRP_NAME');
    errcode := populate_group(rg_id);
    populate_list (list_id, rg_id);
    END;
    P.S. I'm writing this code in WHEN-MOUSE-CLICK Trigger in GRP_NAME list item. Is this the right place to write the code?
    Thanks.

    > select GRP_NAME, grp_name from grp_tab
    Looking up the on-line help for FRM-41072:
    FRM-41072: Cannot create Group %s
    Cause:     Caused by one of the following
    1. Duplicate column names in SQL statement.
    2. Invalid record group name.
    3. Query is invalid.
    Action:     Check the group name and/or correct the SQL statement.
    Looks like you violated rule number 1.

  • FRM-41072:  cannot create Group

    Hi,
    I am populating a pick list from a dynamic record group. I keep getting this error message FRM-41072: cannot create Group "start_year_rg". Everything works fine, the picklist gets populated fine everytime I change the value in :control.p_code_control field.
    This is my code, it is on a POST-TEXT-ITEM TRIGGER:-
    :global.p_code:=:control.p_code_control;
    DECLARE
    group_id RecordGroup;
    list_id Item := Find_Item('col1');
    status NUMBER;
    qstring varchar2(300);
    BEGIN
    qstring:='select distinct START_YEAR col1, START_YEAR col2
    from project10
    where project_code = :global.p_code
    order by START_YEAR';
    group_id := Create_Group_From_Query('start_year_rg',qstring);
    status := Populate_Group('start_year_rg');
    POPULATE_LIST('control.start_year_control', 'start_year_rg' );
    end;
    I am not sure why I keep getting this error message FRM-41072: cannot create Group.
    Any help...

    Hi ,
    Try out the following...
    DECLARE
    NUMB_VAR NUMBER;
    BEGIN
    Pick_List.DELETE_Picklist;
    Pick_List.Create_Picklist;
    NUMB_VAR:=Pick_List.Populate_Picklist_With_Query
    (PICK_LIST.LIST_IN,
    'select distinct START_YEAR col1, START_YEAR col2
    from project10
    where project_code = :global.p_code
    order by START_YEAR');
    Pick_List.Display_Picklist(PICK_LIST.LIST_IN);
    END;
    Simon

Maybe you are looking for

  • Can't import photos from DVD

    I have a DVD-ROM with a bunch of images on it. Works fine if I drag the folder(s) from it to my hard drive - but - trying to import in Aperture doesn't seem to work... There's one folder on the DVD & a bunch of subfolders in that. The import window i

  • Offsets in variables

    Hi, I created a query using variable 0FPER for 0FISCPER and then created offsets to go to prior month from selection month. The result showed the selection month value for the prior month also. When I use the text variables, the values for selection

  • Loader Component Question

    Can I have two loader components in one flash file (my main web page)  I have a main loader for my pages to load into when the corresponding button is clicked.  I need to add a second one for a small .swf file of a interactive calendar.  So I guess I

  • SUPPLEMENT DESCRIPTION OF MATERIAL - printed on the invoice and sales docum

    Hi, Exists in the master materil some field where we can include complement the description to be printed on the invoice and sales document?

  • Reverting changes made to Standard SAP objects(Workflow Tasks)

    Hi,     How to revert back changes made to Standard SAP program . The changes are stored in a Repair request . The details of repair request is as folloews .     GD1K900068   ABAP         Standard Task             20000166             20000167