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.

Similar Messages

  • 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

  • I just installed Lightroom CC. When I try to open it, I get an error message: "An internal error has occurred.  Cannot create the required folder: ..."

    I just installed Lightroom CC. When I try to open it, I get an error message: "An internal error has occurred.  Cannot create the required folder: ..."

    Cannot create the required folder

  • Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain

    Hi, When im giving a default value to a date column in the attribute settings i get this error when im running my jsp page (bc4j web application):
    Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value: 31-dic-2099
    How can i fix that? I�ve already trying all possible date formats.
    Thanku

    The default format for Date (oracle.sql.DATE which is the superclass of oracle.jbo.domain.Date) is yyyy-mm-dd.

  • I have installed Adobe Lightroom CC.  In the process of launching, a popup appears, that says:  "AN INTERNAL ERROR HAS OCCURRED.  Cannot create the required folder:  /Users/(my user name)/Library/Application Support/Adobe/Lightroom/Develop Presets."  So e

    I have installed Adobe Lightroom CC.  In the process of launching, a popup appears, that says:  "AN INTERNAL ERROR HAS OCCURRED.  Cannot create the required folder:  /Users/(my user name)/Library/Application Support/Adobe/Lightroom/Develop Presets."  So even though Lightroom CC is installed, it will not launch.  What do I need to do to allow it to launch?

    The problem was solved today.  Here's the full story.  I'm a Mac user.  At first I installed Lightroom CC on my iMac (desktop).  I had this problem so I called Adobe, and was referred to a "special unit" .  After about an hour the tech solved it for me ... we did a screen sharing and she took control of my computer for a loooong time.  Because of language difficulties, at first I wondered if she knew what she was doing but she eventually solved it.  Although she couldn't explain exactly what she was doing, she summarized it by saying "it was a permissions problem."  I asked if I would have the same issue later when I installed it on my laptop (Macbook Air).  She said probably not.
    But I did.  The same internal error popup arose on launch and launch did not complete on my laptop.  I tried chat but no joy so I eventually called Apple Care.  I had noticed that on my laptop (and the iMac for that matter), that there was no Library folder after my user name.  The Apple tech explained that the Library folder is actually there but it is hidden because it's very easy for users to do some very nasty things to their computer by going astray while in the Library folder.  The folder is actually there, but they hide it.  I did remember seeing that the tech helping me with my iMac had typed the work "Library" while she was controlling my computer.  Basically she had activated the hidden Library folder so she could open the path that Lightroom was trying to follow to create that "Develop Presets" folder.  For some reason, the inability to create that folder in the launch process was preventing launch from being completed.  The Apple tech said she didn't actually have to do that and activated the Library folder by use of the Go selection on the menu bar.  Anyway, once that complete path was replicated and opened, the next step was to go to the Lightroom Permissions field and add my user name to the user categories already there and enable "read and write" permissions to my user name.  Once done, I shut down my laptop, and then rebooted.  I launched Lightroom and then boom, voila, heavens to betsy, etc. it launched and suddenly a dismal weekend turned into a great one. 
    I am not a geek, so I hope this makes some sense.  I also hope Lightroom launches again tomorrow and beyond! 

  • I am trying to activate  new qualitative research software. When I attempt to activate it my Apple Air will not allow it and gives an error message saying we cannot verify the identity of the developer of the software

    I am trying to activate  new qualitative research software. When I attempt to activate it my Apple Air will not allow it and gives an error message saying we cannot verify the identity of the developer of the software

    The developer isn't recognized by the App Store, so your Mac is trying to protect you in case the program is malware. As long as you are sure it isn't, follow this procedure:
    In the Finder, locate the app you want to open.Don’t use Launchpad to do this. Launchpad doesn’t allow you to access the shortcut menu.
    Press the Control key, then click the app icon.
    Choose Open from the shortcut menu.
    Click Open.The app is saved as an exception to your security settings, and you will be able to open it in the future by double-clicking it, just like any registered app.
    OS X Mavericks: Open an app from an unidentified developer

  • Unable to activitate IMessage and Facetime - error message "Imessage activiatation could not sign in please check your network connection and try again

    Unable to activiate Imessage and Facetime - error message: imessage activation could not sign in please check your network connection and try again

    FaceTime, Game Center, Messages: Troubleshooting sign in issues

  • Error message "This program cannot display the webpage when uploading images to Cafe Press

    I have had a Café Press shop for five years and except for sometimes being slow, no problems uploading images. Now, suddenly for 3 days I get the message "This program cannot display the webpage
    Most likely causes:
    • You are not connected to the Internet.
    • The website is encountering problems.
    • There might be a typing error in the address.
    What you can try:
    Check your Internet connection. Try visiting another website to make sure you are connected.
    Retype the address."
    I got the messsage about half way through the uploading of an image. People suggested using "firefox" instead of IE so I now get a similar error message from Firefox. I signed in, clicked on the image I wanted to upload and hit "upload" and get message as follows:
    Server not found
    Firefox can't find the server at members.cafepress.com.
    * Check the address for typing errors such as
    ww.example.com instead of
    [url=http://www.example.com]www.example.com[/url]
    * If you are unable to load any pages, check your computer's network connection.
    * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
    None of this makes sense because I WAS connected to the internet (obviously) or I wouldn't have been able to sign in, go to my media basket, browse for the image and click "upload" and watch as the progress bar showed percentage of upload such as 20%, etc. and even went to 100% at times before giving me the error message. Plus I couldn't make a typing error since I wasn't typing anything but uploading an image. Any suggestions?
    Whatever your suggestion, I need step by step instructions as I am totally computer illiterate. I don't even know what a "proxy" is and don't know if I have a "firewall" as the message suggests. I have "Comodo" security and am using Windows XP.
    I contacted CP which was no help at all. All they did was tell me to clear my cache which I do after every session. Thanks
    Nancy
    http://www.cafepress.com/calendarflr

    Sounds like your desktop application is in fact running from
    a server. CHMs were identified as a security risk by Microsoft and
    are best suited to the user's PC.
    Click
    here for more information.

  • I am getting an error message stating it cannot find the apps on my ipad.

    I am getting an error message saying "iTunes cannot sync apps to iPad (name) because the apps installed on the iPad cound not be determined."
    I have logged out of iTunes on both iPad and in iTunes.  Rebooted both iPad and computer then logged back in.
    I am using:
    os 10.7.5
    itunes 10.7
    ipad os 6.0

    I couldn't open it, so I couldn't check on how it was running. But I actually just tried reinstalling the program and for now it seems to be working.
    Thanks for your help!

  • HT201210 hey, i cant access the itunes store or log into the app world. i have attempted to download the latest ios6, and it cut of with an error message that said : cannot access the itunes store

    hello, cant access the itunes store or log in with my apple id as i get an error message saying cant connect to the i tunes store. i even attempted to download the latest ios6 which cut of. just does not want to accept my apple id

    Hi Mr Lenz
    I had the exact same problem yesterday when i tried to get some music from the store. The same messages appeared on my screen. I just waited for an hour or so and logged on again with no problem. I was able to download music normally. Perhaps there was a momentary glitch at the iTunes store at that time.
    You might try to log on again and see what happens.
    Rick

  • TS2167 i'm getting an error message.. can't create the file "header.jpg." The disk may be damaged or full, or you may not have suuficient access priveleges.

    I need to publish to a local folder on my desk top and I am getting this error message.
    can’t create the file “header.jpg.” The disk may be damaged or full, or you may not have suuficient access priveleges.
    Please help... I need to copy to a disk... it was working fine until I attached a big project, I tried to delete the project, but still not workng.

    Try the following:
    1 - delete the iWeb preference file, com.apple.iWeb.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iWeb's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iWeb folder (Snow Leopard and Earlier).
    3 - launch iWeb and try again.
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • While trying to back up my iPhone i keep getting the error message that it cannot read the contents of my phone... It then directs me to restore it back to factory settings. Anyone know why this is happening?

    I've used this same iTunes account multiple times to back up phones and restore them when I've gotten new devices. I have restored this device as well once before, but i want it as up to date as possible becuase I am getting the iPhone 6 tomorrow. I've run a diagnostics test and under the connectivity test its saying there is no iPhone found, as well as under the sync test. I've gone through all the steps and what the possible problem could be (un-installing and re-installing, making sure all the software is active and up to date on my computer and making sure everything is installed correctly and running properly) and I'm still getting the same error message. I'm out of options and idea. Please help!

    Hey avitz99,
    Thanks for the question. After reviewing your post, it sounds like the iPhone is not recognized in iTunes. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    iOS: Device not recognized in iTunes for Windows
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Trying to update from mac os 10.5.2 to 10.5.8 and i get an error message saying it cannot validate the package

    Had to restore my macbook to original operating system that came with the computer when purchased in the spring of 2008. I am now trying to complete a software update to mac os x 10.5.8 and i get an error message stating "The installer could not validate the contents of the "MacOSXUpdCombo 10.5.8" package. Contact the software manufacturer for assistance.

    That's usually a bad download.

  • TS3212 Hi I am trying to update my Ipad ios4 software to Ios6. I have connected my ipad to my computer and gone ti itunes on my computer to download the new software. I get an error message saying I cannot download the software because I am not connected

    Hi, I am trying to update mmy IPad to Ios6. I have coonected it to my computer. When I goto Itunes and try to update my software it comes up with an error message. I am definetly connected to the Net. I have reinstalled Itunes twice but still get the same message.

    Hi James,
    I understand that you are able to access the web on your computer, however you are unable to access the iTunes Store. I have found the following resource which may resolve your issue:
    iTunes for Windows: iTunes Store connection troubleshooting
    http://support.apple.com/kb/HT1527
    If the issue persists after following the above article, you may want to follow the "Windows" section of this resource:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Thanks,
    Matt M.

  • I am trying to log in to my MSN Hotmail e-mail account, and after entering my login info, I get the error message that Firefox cannot find the server. Why not?

    When trying to log into my MSN Hotmail account (@msn.com), after I enter my credentials, Firefox gives me an error message that "Firefox can't find the server at blu152.mail.live.com". I am able to log in easily from the same computer using Internet Explorer. I think this problem just started yesterday. Why is Firefox unable to connect to my e-mail account?

    Clear the cache and the cookies from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"

Maybe you are looking for

  • ECC 6.0 installation error - DB2/ AIX

    Hello, I am installing ECC 6.0 using DB2 database Version 8 Fixpak 12 on AIX system in HACMP clustering envt. I have insatlled DB2 & Central Instance in Node A and DB2 and Dialog Instance in Node B. But now while starting DB2 in node B by command "st

  • How to deploy.sca file  in portal?

    Hi I am new to portal..can any one explain step by step process to deploy .SCA File  into portal using SDM. Thanks Rahul

  • File to file design advice

    Hi experts, i have a file to file scenario. The third party wants the IDOC data as a IDOC file. So we have created file port and posting the idoc to that file port which creates file in the application server. here is my doubt when it comes to PI des

  • Can someone tell me why every I have to reset my options when a new version of Firefox is released?

    So I just installed the latest version, and I had to reset Tabs on Top to false, reset my font because the default is too small for me to see well, reset how I want PDF documents handled (I do NOT want them to open in the browser), and a few other ni

  • Upgrade from SP11 to SP14

    Hi All, I'm currently trying to upgrade from SP11 to SP14. I started with upgrading the J2EE Engine. Whe doing so the Installation stops at step 17 with the following error message in log-file callSdmViaSapinst.log: ERROR: Not deployed. Deploy Servic