UserApplication Entity DAL error


We have “integer” defined for “gidNumber” attribute in both eDirectory
Schema and in Workflow entity as well, But while passing the “gidNumber”
It gives me the below error. Request you to check and kindly assist me.

Error Message: Non-integer value: '[object Object]' was set for the
attribute: 'gidNumber' which is defined as a DAL Integer type


--
danlong_graingercom
------------------------------------------------------------------------
danlong_graingercom's Profile: https://forums.netiq.com/member.php?userid=12828
View this thread: https://forums.netiq.com/showthread.php?t=56817

  • How/Where do you try to pass the gidNumber?

    If you're transporting it through flowdata, make sure not to retrieve it
    with flowdata.getObject() but with flowdata.get()

    On 07.11.2016 17:44, danlong graingercom wrote:
    >
    > We have �integer� defined for �gidNumber� attribute in both eDirectory
    > Schema and in Workflow entity as well, But while passing the �gidNumber�
    > It gives me the below error. Request you to check and kindly assist me.
    >
    > Error Message: Non-integer value: '[object Object]' was set for the
    > attribute: 'gidNumber' which is defined as a DAL Integer type
    >
    >


  • Thank you for you help.

    I am trying to pass the value from script with the ID provider driver
    and its genereating the value through mapping and while assigning the
    value to gidNumber it gives this error. Here is the script:
    function spr() {
    try
    {
    var idpip = "10.0.0.0";
    var idpport = "1199";
    var policyname = "gidNumber";
    var client = "UserApp";
    var cn = new
    Packages.com.novell.idm.idprovider.IDClient.getNextID(idpip,idpport,policyname,client,'5')
    }
    catch(e){}

    return cn;

    }
    spr()

    This call the nextID in flowdata.get in gidNUmber in my entity dataItem
    mapping.


    --
    danlong_graingercom
    ------------------------------------------------------------------------
    danlong_graingercom's Profile: https://forums.netiq.com/member.php?userid=12828
    View this thread: https://forums.netiq.com/showthread.php?t=56817

  • Try either

    var idClient = new Packages.com.novell.idm.idprovider.IDClient();
    var cn = idClient.getNextID( ... );

    or

    var cn = Packages.com.novell.idm.idprovider.IDClient.getNextID( ... );

    Wolfgang


    On 07.11.2016 21:04, danlong graingercom wrote:
    > var cn = new
    > Packages.com.novell.idm.idprovider.IDClient.getNextID(idpip,idpport,policyname,client,'5')


  • Thank you for your continued help.

    I have Already executed those 2 steps while fetching
    flowdata.get('gidNumber') it gives the DAL error Could you Please help
    if there is any other that I can retrieve the generated value from the
    code, I tried Number() and value functions as well But No luck...


    --
    danlong_graingercom
    ------------------------------------------------------------------------
    danlong_graingercom's Profile: https://forums.netiq.com/member.php?userid=12828
    View this thread: https://forums.netiq.com/showthread.php?t=56817

  • Are you sure that you're using "new" correctly in your latest code?

    A comfortable way to test such workflow scripts is to try them in a pre
    activity mapping of a request form. Simply loading the request form will
    run the script and show the output.
    This is what you might want to do until you figured your function logic out.

    So, add a text field to a test request form; then use this script in the
    pre activity mapping for that text field to get debug output - and
    hopefully this identifies the problem.
    Also, keep an eye on errors in catalina.out

    function spr_test()
    {
    var test = "spr_test(): ";
    try
    {
    var idpip = "10.0.0.0";
    var idpport = "1199";
    var policyname = "gidNumber";
    var client = "UserApp";
    test = idpip ":" idpport "/" policyname "/" client;
    var idClient = new Packages.com.novell.idm.idprovider.IDClient();
    test = " / idClient:" typeof( idClient );
    var cn = idClient.getNextID(idpip,idpport,policyname,client,'5');
    test = " / cn " typeof( cn ) ": " cn;
    }
    catch(e)
    {
    test = " / Error:" e
    }
    return test;
    }
    spr_test()




    On 07.11.2016 21:54, danlong graingercom wrote:
    >
    > Thank you for your continued help.
    >
    > I have Already executed those 2 steps while fetching
    > flowdata.get('gidNumber') it gives the DAL error Could you Please help
    > if there is any other that I can retrieve the generated value from the
    > code, I tried Number() and value functions as well But No luck...
    >
    >


  • Wolfgang,
    My understanding is they have called IDProvider from a mapping entity
    and passing on the value to the group entity, which means there is no
    issues in accessing the gidNumber( sequence number using idprovider).

    In the entity ( group ) there are using flowdata.get(gidNumber)

    when submitting the form they are getting error as mentioned in the
    previous

    Regards
    Nirmal Dhanaraj


    --
    ndhanaraj
    ------------------------------------------------------------------------
    ndhanaraj's Profile: https://forums.netiq.com/member.php?userid=497
    View this thread: https://forums.netiq.com/showthread.php?t=56817