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.
Similar Messages
-
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 -
Error message:FRM-12001: Cannot Create the record group(check your query)
Requirement: Need to get employee name and number in the LOV in search criteria.
So I created LOV "full_name" and Record group Query under Employee Name property palette with
select papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name
,papf.employee_number
from apps.per_all_people_f papf, apps.per_person_types ppt
where sysdate between papf.effective_start_date and papf.effective_end_date AND papf.person_type_id=ppt.person_type_id AND ppt.system_person_type IN ('EMP', 'OTHER', 'CWK','EMP_APL')
AND PPT.default_flag='Y' and papf.BUSINESS_GROUP_ID=1
order by papf.full_name
I was unable to save and getting error message "FRM-12001: Cannot Create the record group(check your query)".
I cant use PER_ALL_PEOPLE_F.FULL_NAME since full name here is last_name||title||middle_names||firstname.
But my requiremnet is papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name .
Can any one of you help me.First, Magoo wrote:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">create or replace function emp_full_name ( p_title in varchar2,
p_last_name in varchar2,
p_first_name in varchar2,
p_mid_names in varchar2 ) return varchar2 is
begin
for l_rec in ( select decode ( p_title, null, null, p_title || ' ' ) ||
p_last_name || ', ' || p_first_name ||
decode ( p_mid_names, null, null, ' ' || p_mid_names ) full_name
from dual ) loop
return ( l_rec.full_name );
end loop;
end;</font></pre>
Magoo, you don't ever need to use Select from Dual. And the loop is completely unnecessary, since Dual always returns only one record. This would be much simpler:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">create or replace function emp_full_name
( p_title in varchar2,
p_last_name in varchar2,
p_first_name in varchar2,
p_mid_names in varchar2 ) return varchar2 is
begin
Return ( Ltrim( Rtrim ( p_title
||' ' ||p_last_name
||', '||p_first_name
||' ' ||p_middle_names )));
end;</font></pre>
And second:
user606106, you did not mention how you got your record group working. However, you DO have an issue with spaces. If you change this:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">select papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name
,papf.employee_number </font></pre>
to this:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">select Ltrim(Rtrim(papf.title||' '||papf.last_name||', '
||papf.first_name||' '||papf.middle_names)) AS emp_full_name,
papf.employee_number</font></pre>
it should work. The Ltrim(Rtrim()) removes leading and trailing spaces from the resulting full name. -
Frm-41826: Cannot replace group; columns don't match LOV
Hi-
I am Oracle ERP developer.
frm-41826: Cannot replace group; columns don't match LOV
this message absolutely don't know .
please help me.If it is being created programatically, you may want to do a find on some of these key words..
CREATE_GROUP_FROM_QUERY
POPULATE_GROUP
SET_LOV_PROPERTY
They should all be within the same section of code, see what is going on in there.. The code may be trying to use a record group the LOV is not designed for ? -
FRM-47001: Cannot create parameter list aamir : list with this name exists.
Sir I use parameter list in my form whose name aamir first time when I call report system give result right but second time I call report then system give this error
FRM-47001: Cannot create parameter list aamir : list with this name exists.
Please give me idea how I get print view second time
Thank
aamirHello aamir,
Use the following to delete existing parameter.
DECLARE pl_id ParamList;
BEGIN
pl_id := Get_Parameter_List('tempdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List(pl_id);
END IF;
END;
Cheers,
Suresh -
FRM-12001: Cannot create the record group (check your query).
I WANT TO ADD A RECORD GROUP IN PRI BUILD FORM THE QUARY IS VERY SIMPLE LIKE
SELECT item_code
FROM items
WHERE active = 'Y'
AND item_code like 'FAJ%'
BUT THE SYSTEM SHOW THE ERROR MESSAGE
Cannot create the record group (check your query).Make sure the user connected to the database from the forms builder has the privilege of select from the table, or there's a synonym.
Try your query from SQL*Plus connected with the same user.
Tony -
Cannot Creat Groups in iOS8?
No Groups in iOS8?
After many years of holding out I committed to the latest version of the IPhone hoping to indulge in the new tech that rivaled my 6 year old phone that rhymes with "annoyed". As soon as I got passed the oooh and aaah of the interface I needed to get to the basics. Unfortunately they weren't there. I needed to create group contacts from the hundreds of names i have on my phone but was befuddled that I couldn't figure out how to do it (my wife made fun of me as she did it in two taps on her phone that rhymes with "sam sung his best Friday".
After much research I found that I had to either PURCHASE a third party app or sign into my ICloud account to do it. Why? Why do I have to do that? My old phone with my cheap service did it seamlessly. My new state of the art work of art bleeding edge premium service talking device doesn't. Why not? It's not hard to implement it seems for anyone else so please tell me what prevents it from happening on my brilliant pocket protecting gizmo? I paid a lot and sacrificed a lot to have the basics work and the extras thrill not the extras distract and the basics retract.
What's more... yes roll they eyes, when I was relieved to finally create a couple of groups through ICloud, I realized that you still have to add the contacts from them one by one when sending a message! (quiet whimper). I am committed to making this relationship work, so please someone from Apple or their wonderful community tell me what I should do ? Guide me, help me to trust... help me. (disclaimer: I'm usually not this much of a cry baby)Why are you complaining to us? We can't change anything.
Submit your feedback to Apple here:
http://www.apple.com/feedback -
Why i cannot create group in OWA?
I wish to create a personal contact group, i search help and forum saying that, there should be a
+New and choose Create New Group. But my OWA only have
+ new contact. How to create a group?Hi,
Yes, we can't use this feature in Exchange 2013 RTM. If you want that functionality, you need to update your Exchange server to at least Exchange 2013 CU1.
Best regards,
Belinda
Belinda Ma
TechNet Community Support -
Hi All,
We have a typical scenario.
In our application we have a form 'Cust_fmb' which will give count of records for customer. We are populating the customers group using following query.
rg := create_group_from_query('custgrp','
select cust_id rlabel,cust_id rvalue
from custschema.customer_tab
When user login into our application and open that Cust_fmb form , form is populating the customer group but when user login into our application and opens and access multiple forms and then opens Cust_fmb forms
we are getting the error 'FRM-41072: Cannot create Group custgrp'.
We are not able to find out the cause why we are getting this error.
Please helps us,
Thanks in advance,
maddyThanks for the response
My code as below
PROCEDURE POPULATE_CUST_GROUP IS
rg recordgroup;
nn number;
rquery varchar2(600);
BEGIN
rg := find_group('custgrp');
if not id_null(rg) then
delete_group(rg);
end if;
rg := create_group_from_query('custgrp','
select cust_id rlabel,cust_id rvalue
from custschema.customer_tab
nn := populate_group(rg);
if nn <> 0 then
message('Populate group had error ');
end if;
populate_list('MAIN.GROUP_ID',rg);
END;
Can any one tell me why do I get this error. Please..
Thanks,
maddy -
Error while creating Group Asset
Dear All
While Creating Group Asset I am getting the Following error:
No depreciation area in company code 1000 allows group assets.
Message no. AY160
Diagnosis
You cannot create group assets in company code 1000. There are no depreciation areas that can manage group assets in this company code.
Procedure
Make sure that you really want to create a group asset in company code 1000.
If so, then allow group assets in the desired depreciation areas.
Please advice.
Thanks & Regards
KanwaljitHi,
Check the config in OAYM and OAAX.
Then your issue will get solved.
Thanks,
Srinu -
How do you create groups in Contacts?
Is there a way to create groups in the Contact software on the iPad?
No, and yes. Groups are created on your computer, and synced to contacts. You cannot create groups on the pad. But don't get excited, because when you sync over the groups it is very difficult to get them to do anything.
The good news is that there are a couple of apps that do this pretty well. I used group email a lot and it works just fine. There are a couple of others. Read the reviews. -
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 RegardsHi,
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. -
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
ravihi,
check your syntax and for more clear help
search it in online help in form builder.
recid:=find_group('recgrpname');RECID:=FIND_GROUP(RECGRPNAME); -
Cannot create new Calendar Group in Mountain Lion
I am using a brand new iMac. I didn't use the migration tool-- instead I exported all of my Calendars from Snow Leopard and Imported them via the File menu in the Calendar application in Mountain Lion.
Under the File menu, there is no "New Calendar Group" option. Command-Shift-N results in an error alert sound and no action.
I do not use iCloud for anything other than email-- everything is turned off in System Preferences.
In Calendar, under the Preferences -> Accounts section, I have NO accounts. It is completely blank.
My previous groups from my export/import are there under the "On My Mac" section of the Calendars panel. I can edit them. But I cannot create any new ones.
Any suggestions? Everything on the internet says I need to deactivate my iCloud account calendars... but I don't use them.Ah, Barney, you are a lifesaver!
Sorry for the late reply, I was away from my computer this weekend.
All of my calendars had been in groups. I moved one of them outside, and TA DA-- "New Calendar Group" appeared.
Thanks so much for the help. I will have to leave 1 calendar outside of a group so I can add as many as I'd like.
Maybe you are looking for
-
Just trying to stream music from my iphone to my mac mini speakers. Any way I can do that in a similar way that I can do it via applte tv?
-
Color on Screen just doens't match output
Consider me a newbie. I am using LR Beta 3, along with PS8/PSE8. However, I am really having a diffiucult time getting output of my printed impages (especially at 8X10) that match what I see on the screen. Things seem to be pretty close at 4
-
How to disable SSLv3 and keep only TLS for LDAP connection.
Hi, I'm planning to keep only TLSv1.2 for LDAP connections. I tried to set LDAP_OPT_SSL_INFO in LDAP Session Options using a SecPkgContext_ConnectionInfo Structure with dwProtocol SP_PROT_TLS1_2_CLIENT(as described here - https://social.msdn.microso
-
Return url for the current page
Hi, I would like to know how to return the url for the current page?
-
Hi guys please provide me the concepts on workflow
hi guys, please provide me the concepts on workflow. i have no idea on workflow, if you have any helpfull documentation and also some scenarios where u have faced and solved those,also some real time examples. please help me, and also i will give poi