CA Gen

Expand all | Collapse all

Error on Model lock in Gen API

  • 1.  Error on Model lock in Gen API

    Posted 03-17-2017 04:17 AM

    Hello,

    I have an issue when trying to lock a model for edit (EapiWriteLock).

    After I call function I am getting this error:

    GENCLNT: Group  is not found in Message Dispatcher INI file.
    LOCK: StartClient failure, mdsrc = 28340

     

    What could be source of this error?

    THNX



  • 2.  Re: Error on Model lock in Gen API

    Posted 03-17-2017 04:56 AM

    Dear Svalbonas

    this could be a couple of reasons like:

    -there is no environment variable as IEF_DIRGROUP or IEF_ENCYGROUP
    -the IEF_MDNAME environment parameter was not set. Should be: iefmdname/portno

    I would suggest to open a Support case for this error. Please provide details about the version installed and if available a error log.

    Thanks

    Thomas



  • 3.  Re: Error on Model lock in Gen API

    Posted 03-17-2017 08:08 AM

    Dear Thomas,

    On a user PC there are 2 environment variables set : IEF_MDNAME(host1/2500) and IEF_RDSNODE(host1/2502).

    The host has 2 encyclopedias configured.

    Login works OK as :LogIn("ency2/ency2@host1", "ENCYADMN");

    Should IEF_DIRGROUP and IEF_ENCYGROUP be set on encyclopedia host machine ?( which is AIX).

    Thanks

    Gintaras



  • 4.  Re: Error on Model lock in Gen API

    Posted 03-22-2017 08:45 AM

    Dear Gintaras,

    The IEF_ENCYGROUP environment variable is used by a CSE client connecting to the CSE Server/iefmd. That value is used to map to the correct GroupName listed
    at the end of the iefmd.ini file so that the correct Encyclopedia is accessed. The CSE Ency API connects direct to the CSE database and not to the iefmd
    process,but also required the IEF_ENCYGROUP value. The IEF_MDNAME environment parameter looks fine ( iefmdname/portno ).


    https://docops.ca.com/ca-gen/8-5/en/encyclopedia/client-server-encyclopedia/using-the-client-server-encyclopedia/encyclopedia-communication/encyclopedia-communications-tasks
    https://docops.ca.com/ca-gen/8-5/en/encyclopedia/client-server-encyclopedia

     

    If this not helps,please open a Support case.

    regards

    Thomas



  • 5.  Re: Error on Model lock in Gen API

    Posted 03-27-2017 09:47 PM

    I guess you are using the Unix API as per:

    https://docops.ca.com/ca-gen/8-5/en/reference/encyclopedia-api-reference/using-windows-and-unix-apis/unix-encyclopedia-api

    ??

    I haven't done this on unix but should be similar in to windows.

    Basically, you connect to Ency, connect as user, do model lock stuff. The demo should compile and let you do things like this.

    Here is some sample C code from the windows world (cut and paste from the demos):

     

     //printf("\nConnecting to Ency DB ...");
     rc = EApiConnectToEncy((PDBPARMS) "DBNAME=DBCSE  DBUSER=ENCYUSR  DBPSWD=password"); 
     

    //printf("\nLogin as user ENCYUSR..."); 

    rc = EApiPasswordValidate((PUSERID) "ENCYUSR",(PPASSWORD) "password");


     //printf("\nGet Lock on Model %i ...",modelId); 
     rc = EApiLockModel((MODELID)      modelId, 1); 

     

    I would look at your listener and see how the IEFMD.ini connects - refer to the UnitParameters field ... use the settings there for the connect to ency. Then utilise whatever user that has the right access to the target model.