FRM-41051:  You cannot create records here

Hello all,
I have two blocks 'FIND_EMP' and EMP_HDR.
In 'FIND_EMP' i have fields below like
Dept name -------
Location ------
EMP no -------------
find(button) new_emp(button)
I you need to create a new employee we need to select dept name and location from lov and click new emp button.Then it will navigate to EMP_HDR block
In EMP_HDR block i have fields below like
Dept name -------(wiil be defaulted from 'FIND_EMP' block)
Location ------(wiil be defaulted from 'FIND_EMP' block)
EMP NAME ---------(USER INPUT)
DOB-----------(USER INPUT)
Emp no----------(populates a sequence no when user clicks submit)
Submit(button)
for the coresponding dept name and location user enters new employee name and dob and clicks submit button then empno field will be populated and it will close the EMP_HDR block window and will return to 'FIND_EMP' block.
Again if I try to create new employee by pressing new_emp(button) it is giving an error message below.Even in the block level propery pallete also insert allowed and update allowed is set to YES
"FRM-41051: You cannot create records here." (ie,Do not attempt to create and insert new records into this block until you have set the Insert Allowed block property to True.)
To avoid the above error i enabled the block property insert allowed to true under new_emp(button) logic
SET_BLOCK_PROPERTY('EMP_HDR',INSERT_ALLOWED,PROPERTY_TRUE);
now it is not giving any error and everything is working fine.
But my doubt here is before block property insert allowed to true is not enabled, then
for the first time I try to create new employee it is creating a record and for the same session
creating again new employee it is giving error message(FRM-41051). I could not understand.Any body please clarify on this.
Regards,
Kiran

i think you had some other code which was blocking the insert allowed in your EMP_HDR block...
kindly check other places where it was blocking it...
might be possible on submit button you have such code to block insert.. because you entered first record than submit,, after that block property changed to insert_allowed false...
-- Aamir

Similar Messages

  • FRM-41106 You cannot create records without a parent record.

    Hello!
    Forms 6i.
    I have a Parent-Detail-Relationship. At the Detail-Block a "When-create-record" sets some default values on the Detail-Block.
    I got error "FRM-41106 You cannot create records without a parent record" when the Parent-Block executes a execute_query.
    I debuged the problem an found out, that the error appears in the standard-programunit "Clear_All_Master_Details".
    The error appears, when the code is deleting the detail-block "code: Clear_Block(NO_VALIDATE)".
    This is strange: The error appears only when I uses the "When-create-record"-trigger on the detail-block.
    If a comment out the trigger, no error appears.
    Why Is a "When-create-record"-trigger initiated when deleting the detail-block?
    Default-Code of "Clear_All_Master_Details":
    -- Clear all the detail blocks for this master without
    -- any further asking to commit.
    currel := Get_Block_Property(trigblk, FIRST_MASTER_RELATION);
    WHILE currel IS NOT NULL LOOP
    curdtl := Get_Relation_Property(currel, DETAIL_NAME);
    IF Get_Block_Property(curdtl, STATUS) <> 'NEW' THEN
    Go_Block(curdtl);
    Check_Package_Failure;
    Error appear here----> Clear_Block(NO_VALIDATE);
    IF :System.Block_Status <> 'NEW' THEN
    RAISE Form_Trigger_Failure;
    END IF;
    END IF;
    currel := Get_Relation_Property(currel, NEXT_MASTER_RELATION);
    END LOOP;
    Thx in advance,
    Wolfgang

    Wolfgang,
    To be honest, I've always done this kind of thing in the Pre-Inse rt or Pre-Upda te triggers. Why is it so important for the user to see the value of these field BEFORE the IN SERT or UPDAT E? Once the record is commited, they will see these values in your form. In my experience - users are typically satisfied with this approach. If your users are not OK with this approach, perhaps you could us a When-Validate-Record trigger instead of the When-Create-Record trigger.
    I think the When-Create-Record option would still work, but your code will need a little tweak. Give the following a try:
       IF ( NVL(:termin.best_nr,'MSTR') = NVL(:pos.best_nr,'DTL')
            AND NVL(:termin.best_jj,'MSTR') = NVL(:pos.best_jj,'DTL')
            AND NVL(:termin.best_pos,'MSTR') = NVL(:pos.best_pos,'DTL') ) THEN
           <<...set_values..>>
       END IF;Remember, NULL values do not always get evaluated correctly so it is always best to use the NVL function to ensure fields are evaluated correctly.
    BTW, you indicated that you ran DEBUG on your trigger, when your IF statement was evaluated did the "set_Values" section of your code run? If it didn't - do you have other code in your WCR trigger that is setting values outside of your IF statement?
    Craig...

  • 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..

  • You cannot create an Apple ID using a MobileMe account. If this is your email address, it is also your Apple ID

    I am dumping my Android and getting an IPhone to go along with my IPad, primarily because of the ICloud and the ease of synching all my mail, contacts etc. My original Apple ID was my gmail address. I now have the @me.com address when I put IOS 5 on my iPad. I want to dump gmail and just have one email address...the @me.com address. When I set up iCloud, I used the @me.com address. When I try to change my Apple ID to the @me.com address from the gmail address, I get this message "You cannot create an Apple ID using a MobileMe account. If this is your email address, it is also your Apple ID". Any ideas?

    I also have the same problem. Is there a solution?

  • You cannot create ARE3 for duty paid Deemed exports excise invoice!

    You cannot create ARE3 for duty paid Deemed exports excise invoice!
    Message no. 4F326

    Hi murali,
    How can you create ARE document for duty paid excise invoice
    ARE docs are for excise exption purpose only
    regards
    bvdv

  • You cannot create a customer with grouping ZLES

    hi friends,
    I am encountered with the below message during BP creation "You cannot create a customer with grouping ZLES"
    ZLES being the account group..
    I ve come across the following..
    I made config for BP to Customer ( auto creation)
    and also BP to Vendor ( auto creation)
    at a time only one of the thing is working either BP to customer or BP to vendor..
    when i check the config  under Number Range>Define Groupings and Assign Number ranges> in this there is a radio button Int.Std.Grping if this is marked for the grouping of Mast tenant with Cust acc  then there is no error for this but error persists while creating BP to Vendor.. and if the radio button is ticked for Landlord with vendor Account then the issue comes for BP to Customer i.e the error "You cannot create a customer with grouping ZLES"
    how can i tick both of them together ( if there is possiblity)
    kindly help

    sorry for late reply.
    if ur issue isn;t solved?----
    in  Define Groupings and Assign Number Ranges dont select the raido button for your grouping . and next thing is while creating business partner. follow these steps...
    1 bp
    2 click on person, group or org as desired
    3 select the role and click create. AND
    4 at right hand side corner there is Grouping select the Grouping ( i was missing this step due to which i used to get the error)
    hope this will solve ... also check the account groups of both BP and Customer or else there will be synchronisation error..
    regards

  • Cannot create record group

    All,
    I have one form. I have When-new-block-instance trigger on first
    block, which populate list of values for first item in block(
    Using Create_group_from_query and populate_group builtins). If I
    run form on NT it works fine but while I put form on web -
    inshort running through Solaris it gives me error "Record Group
    cannot created."
    Any clue,
    Any answer appreciated.

    Hi,
    Move the code to form level, for ex. WHEN-NEW-FORM-INSTANCE.
    I guess Oracle Forms Server did't have enough time to populate
    the record group and arrange items in the block at the same
    time, or it failed to coordinate that.
    Everything is a bit slower on the web.
    Hope this helps
    BANG DINH

  • FRM _40200: You cannot update this field

    How can I get this message to display?? I have a text item which has insert allowed, and update allowed set to false, and if the user tries to update the text item, then I want that message to display, like I have seen on other forms... but it doesn't...
    cheers

    Hi Paul,
    Try getting the warning message , i don't remember FRM-40.... <cannot update field> and using this message warning in ON-ERROR trigger in order to display the message you want...
    Or ,
    getting the status of the text item (new , updated , changed) and on a trigger such as post-text-item , key-others .... call the message procedure to display the message you want....
    Simon

  • "You cannot create an Apple ID because you do not meet the minimum age requirement."

    I made this account for my mom. After she puts in her info it tells her she is not old enough. Birth date is 0/09/1964. She cannot acces the apple store from her ipod touch because of this.

    Apple ID FAQ
    http://support.apple.com/kb/HE37
    Apple ID Support
    My Support Profile
    http://www.apple.com/support/appleid/contact/

  • Error: you cannot create an internal table as work area

    Hi, My code is as follows and when i perform a check it gives the above mentioned error in the select statement.
    TYPES: BEGIN OF t_vbrk,
            vbeln            TYPE vbrk-vbeln,
            vtweg            TYPE vbrk-vtweg,
          END OF t_vbrk.
    DATA vbrktab TYPE TABLE OF t_vbrk.
    SELECT      vbeln
                    vtweg
             FROM   vbrk
             INTO  vbrktab
             FOR ALL ENTRIES IN xxcvb
             WHERE  vbeln       = xxcvb-vbeln.
          INSERT TABLE vbrktab.
        ENDSELECT.
    where xxcvb is another internal table with some key values.

    Hi
    I don't know how you've defined XXCVB, but u should write:
    TYPES: BEGIN OF T_VBRK,
             VBELN TYPE VBRK-VBELN,
             VTWEG TYPE VBRK-VTWEG,
           END OF T_VBRK.
    DATA: VBRKTAB    TYPE TABLE OF T_VBRK,
          WA_VBRKTAB TYPE T_VBRK.
    SELECT VBELN VTWEG FROM VBRK INTO TABLE VBRKTAB
      FOR ALL ENTRIES IN XXCVB
         WHERE VBELN = XXCVB-VBELN.
    LOOP AT VBRKTAB INTO WA_VBRKTAB.
    ENDLOOP.
    Max

  • Oracle 10g FRM-41051 on a non-database text item with a LOV

    Hi all,
    I'm struggling with a problem I'm convinced must have a really simple solution, but for the life of me I can't figure it out!
    I have a data block called query. It is a non-DB block with a number of items, with either LOVs or drop down lists. It is used to choose values, which are them programatically 'translated' into values in two other database data blocks (which are populated in the WHEN-BUTTON-PRESSED trigger of a button in the non-DB block).
    This is necessary as I have a slightly complex query which takes values from many different tables and displays bits of information from all the different tables.
    My problem is that, on my text item (which has a LOV attached to it with Automatic Display set to Yes); when I click on it, I expect the LOV to show and I am able to choose a value from it. Instead I get the error 'FRM-41051 You cannot create records here' and the LOV does not display.
    I don't understand this. Everything on the block is a non-DB item, including the block itself, and I don't want to 'create' any records, all I want to do is choose values into my text items which I can then use in a DB query (written in my trigger).
    What am I doing wrong?
    Abigail

    Probably this other item or block has got property insert allowed to FALSE.
    I have suggested you to use a push button in order to check that everything in the LOV is OK.
    Lov can also return value to item in another block; probably in your case there is something that fires the error.
    Normally when I develop my form I disable on-error and on-message trigger in order to follow every step at runtime...
    I'm happy that you have resolved your problem :D
    Fabrizio

  • Error while querying - You cannot update this record

    Hi all,
    I have a builded a form and was successful when i enter the data. But when i query the form it is showing me the error FRM-14050 YOU CANNOT UPDATE THIS RECORD.
    I have pre-insert, pre-update and pre-query triggers at block level.
    In PRE_INSERT iam setting the property to insert allowed and true.
    same way for pre-update and pre-query.
    Can any one guide me.
    Thanks
    Sunil

    Hi
    check your fields name name and match with database fields.
    vikas

  • Cannot create mysites from powershell: Original XSLT List View Web Part not found

    I have a bizarre problem in my SharePoint 2013 farm. This does not occur in my test farm, only in the farm we were going to go live with.
    I'm on windows Server 2012, SQLServer 2012 SP1, SharePoint 2013 April CU. 1 appserver/centraladmin server, 2 web servers.
    When I log into our mysitehost and click newsfeed, it will create a mysite (even though first it displays "we are sorry there was a problem creating your site")
    But from powershell, whether I use $UserProfile.CreatePersonalSite() or New-SPSite, I get the following error:
    Original XSLT List View Web Part not found
    So far I've only found one other person with this:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2503e42c-e114-4e89-8e00-89fe70f0b154/cannot-create-sharepoint-mysite-programmatically
    This is a brand new farm, created with the same scripts I created my test farm with, and same version of SharePoint. Only the service accounts are different. (Farm account has admin on the servers right now since I was setting up profile service).
    Some other errors from the same correlation ID that look related:
    It can't seem to find the listemplate 101
    And something looks wrong with the MySiteDocumentLibrary feature
    I have tried the following:
    1. run psconfig.exe on each server
    2. install-spfeature -AllExistingFeatures
    3. looped through the directory under Features and for each called Install-SPFeature $dirname -Force
    4. uninstalled and reinstalled MySiteDocumentLibrary feature
    5. blew away the whole farm (removed all servers from farm, deleted all databases) and recreated it.
    6. tried creating the UPA from the CentralAdmin gui.
    The only real difference I can think of between the working farm and non working farm is, I installed the working farm using RTM, then as they came out added the March PU and April CU. For this farm I installed RTM and March and April, and then ran my build
    farm script.
    I am at a loss. What do I need to do, re-install the binaries? That's all I can think of. What I love is that our test / POC system worked fine, and now 2 weeks before go-live I'm seeing errors on the production servers I've never seen before. Using the
    same scripts no less.
    Feature Activation: Feature 'Fields' (ID: 'ca7bd552-10b1-4563-85b9-5ed1d39c962a') was activated
    Feature Activation: Feature 'CTypes' (ID: '695b6570-a48b-4a8e-8ea5-26ea7fc1d162') was activated
    No document templates uploaded for list "$Resources:core,global_onet_solutiongallery_list;" -- none found for list template "100"
    Failed to find <ListTemplate> tag corresponding to ID "101", tried both onet.xml for site definition ID "0" language "1033" and global site definition. Operation failed.
    No document templates uploaded for list "$Resources:core,stylelibraryList;" -- none found for list template "121".
    System.Runtime.InteropServices.COMException: A user may not remove his or her own account from a site collection.<nativehr>0x81020051</nativehr><nativestack></nativestack>, StackTrace: at Microsoft.SharePoint.SPUserCollection.UpdateMembers
    Feature Activation: Feature 'MySitePersonalSite' (ID: 'f661430e-c155-438e-a7c6-c68648f1b119') was activated
    Feature Activation: Activating Feature 'MySiteDocumentLibrary'
    Calling 'FeatureActivated' method of SPFeatureReceiver for Feature 'MySiteDocumentLibrary'
    SharePoint Foundation Upgrade MySiteDocumentLibraryFeatureReceiveraj08n INFO Creating new My Documents library
    Unknown SPRequest error occurred. More information: 0x80070002
    SPRequest.GetMetadataForUrl: UserPrincipalName=, AppPrincipalName= ,bstrUrl=http://contoso/personal/cbuchholz/DOCUMENTS ,METADATAFLAGS=59
    System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>, StackTrace: at Microsoft.SharePoint.SPWeb.GetObjectForUrl at Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryUtil.GetSPObjectFromUrl ...
    <nativehr>0x80070002</nativehr><nativestack></nativestack>There is no Web named "/personal/cbuchholz/DOCUMENTS"
    Possible mismatch between the reported error with code = 0x81070504 and message: "There is no Web named "/personal/cbuchholz/DOCUMENTS"." and the returned error with code 0x80070002.
    Attemping to add webpart id 0F6072F2-E804-4CFD-837E-BB37332B9D1C to web http://contoso/personal/cbuchholz
    Adding XsltListViewWebPart calling SPRequest::CreateListViewPart. Web part id 0F6072F2-E804-4CFD-837E-BB37332B9D1C, web http://contoso/personal/cbuchholz
    Feature receiver assembly 'Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c', class 'Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryFeatureReceiver', method 'FeatureActivated' for feature 'e9c0ff81-d821-4771-8b4c-246aa7e5e9eb' threw an exception: System.InvalidOperationException: Original XSLT List View Web Part not found at Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryUtil.ReplaceListViewWebPart
    Feature Activation: Threw an exception, attempting to roll back. Feature 'MySiteDocumentLibrary'
    Exception in EnsureFeaturesActivatedAtSite: System.InvalidOperationException: Original XSLT List View Web Part not found
    Failed to activate site-collection-scoped features for template 'SPSPERS#2' in site collection 'http://contoso/personal/cbuchholz'
    Failed to apply template "SPSPERS#2" to web at URL "http://contoso/personal/cbuchholz
    I've had other problems in this farm: the bug where when you add Administrators to a Search Service via the Manage Service Applications page, it removes the SPSearchDBAdmin role from the search service process account. That one did not happen in the other farm.
    At least other people have that one and I could just use the farm admin instead (still troublng of course).

    Ok,
    Here is the problem:
    When creating a mysite from powershell or script, apparently you can ONLY do this from a wfe (or a server running Microsoft SharePoint Foundation Web Application in services on server).
    You CANNOT create mysites from script on your appserver if it is not also a Web Application Server. I confirmed the same is true in my test farm. I guess I was always running most of these scripts on the webserver.
    I searched all over and cannot find this documented anywhere.
    Who do I contact to have Microsoft document this?
    It's Thursday morning, I've been working non stop since Saturday morning so you don't have to :)

  • Cannot create and add a new entry to LDAP

    Hi,
    I'm pretty new at LDAP and JNDI, i've been trying to create and add a new entry to the directory but somehow it's not working.
    here is my code and I would appreciate it if someone can help.
    import java.util.Hashtable;
    import javax.naming.ldap.*;
    import javax.naming.directory.*;
    import javax.naming.*;
    import javax.net.ssl.*;
    import java.io.*;
    public class Newuser
         public static void main (String[] args)
              //LDAPEntry myEntry = new LDAPEntry();
              Hashtable<String, String> env = new Hashtable<String, String>(11);
              String adminName = "CN=ldap_admin,o=JNDITutorial,dc=img,dc=org";
              String adminPassword = "secret";
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              //set security credentials, note using simple cleartext authentication
              env.put(Context.SECURITY_AUTHENTICATION,"simple");
              env.put(Context.SECURITY_PRINCIPAL,adminName);
              env.put(Context.SECURITY_CREDENTIALS,adminPassword);
              //connect to my domain controller
              env.put(Context.PROVIDER_URL, "ldap://localhost:389/o=JNDITutorial,dc=img,dc=org");
                   // Create the initial directory context
                   //JNDILDAPConnectionManager jndiManager = new JNDILDAPConnectionManagerImpl();
                  try{
                       DirContext ctx = new InitialDirContext(env);
                        System.out.println("Connection to LDAP server done" );
                       final String groupDN ="ou=people,o=JNDITutorial,dc=img,dc=org";
                      //DirContext dirCtx = jndiManager.getLDAPDirContext();
                      People people = new People("Thiru","Thiru","Thiru Ganesh","Ramalingam","ou=people","[email protected]");
                      // The Common name must be equal in Attributes common Name
                      ctx.bind("cn=Thiru," + groupDN, people);
                      System.out.println("** Entry added **");
                      //jndiManager.disConnectLDAPConnection(ctx);
                  }catch(NamingException exception){
                      System.out.println("**** Error ****");
                      exception.printStackTrace();
                      System.exit(0);
    }here is the Object class People that i'm trying to instantiate
    public class People implements DirContext {
         public People(String uid,String cn,String givenname,String sn,String ou,String mail) {
        BasicAttributes myAttrs = new BasicAttributes(true);  //Basic Attributes
        Attribute objectClass = new BasicAttribute("objectclass"); //Adding Object Classes
        objectClass.add("inetOrgPerson");
        /*objectClass.add("organizationalPerson");
        objectClass.add("person");
        objectClass.add("top");*/
        Attribute ouSet = new BasicAttribute("ou");
        ouSet.add("people");
        ouSet.add(ou);
        myAttrs.put(objectClass);
        myAttrs.put(ouSet);
        myAttrs.put("cn",cn);
        myAttrs.put("sn",sn);
        myAttrs.put("mail",mail);
    ...the message i keep getting is:
    javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - entry has no objectClass attribute]
    the thing is that I can create and add a new entry in openLDAP from the console and it works.
    and here is how I proceed
    I create a text file: new.txt
    dn:cn=Hamido Saddo,ou=People,o=JNDITutorial,dc=img,dc=org
    cn:Hamido Saddo
    mail:[email protected]
    telephonenumber:3838393038703
    sn:hamdio
    objectclass:top
    objectclass:person
    objectclass:organizationalPerson
    objectclass:inetOrgPersonand i use this command to add the entry:
    ldapadd -D "cn=ldap_admin,O=JNDITutorial,dc=img,dc=org" -W -f new.txtand everything works, i get no errors.
    does anyone has a clue maybe???

    You must have an IMAP email account in order to add additional folders on the iPad mail app.
    If you go to your email account in the Mail app and look at the window where your inbox, trash folder and sent folder are - if there is an Edit button at the top of the window - tap that and then tap Add Mailbox at the bottom.
    If the Edit button is not there - you cannot create folders on the iPad. Your email account is not IMAP. Only IMAP email accounts can create folders on the iPad. Any folders that you would already have in an IMAP account would sync to the device as well.

  • Cannot Create EJB

    Hello All,
    I have a very simple problem, but I am stuck.
    I need to create a EJB. I can create a EJB Project, but when I want to create the EJB there is no option to do this in the wizard. I cannot find out why.
    Some configuration or some lib is missing I guess.
    Here is my configuration.
    Windows 7 32bit
    NWDS 7.1 SP9
    JDK1.5.0.22
    Configured runtime SAP PI 7.1 EHP. This instance is on a remote server.
    Any ideas?
    Thanks in advance.
    Peter

    Hi Peter,
    as far as I remember when you have created an ejb project, you should see an ejb.xml in the tree and in its context menu you can create the entity beans, session beans, etc.
    If this is not helping then can you please be more specific why you cannot create an ejb?
    Best Regards,
    Ervin

Maybe you are looking for

  • Report printing failed with "Servlet error: An exception occurred. "

    Hi, I use Apex 3.1 in Oracle Express edition develop few applications. In one of the application, when I enable report printing in stardard reports and try to print to PDF/Excel, the servlet error occur. I had configured FOP in my server and I can do

  • Can't get external editor to work

    Using LTR 3.6 on iMac, external editor PSE 10.  I choose option to open in the external editor after applying any LTR changes.  File is created in LTR, external editor is opened, but image file is not opened.  It used to work fine.  I had a hard disk

  • Restriction of a document on the material plant views

    Hello everyone, I would like to link a document to a material, but to restrict this link only to the views related to plant level. The document must not be reachable in the views "Basic data 1" and "Basic data 2", but must be reachable in the view QM

  • ITUNES 7 BUG NO ARTWORK IN IPOD

    NO ARTWORK TRANSFERED TO UPDATED 5TH GEN IPOD = I updated to iTunes 7 twice (first time it erased my purchased item authorization). For second install I successfully updated the iPod firmware. PROBLEM now is it will not transfer the song artwork. TRI

  • Several USB HD's to 802.11n via USB Hub AC Powered

    I have a Western Digital Hard Drive connected to the USB Port on the back of 802.11n and when I've tried to connect a Lacie HD up to a AC Powered Hub (that was connected up to the USB Port on the back of 802.11n) I can't get the Network to pick it up