Invalidgroup Exception Error while accessing interface

Certified Senior Developer

When i am trying to access when particular dashboardpage in interface for displaying active tasks i am getting the UI error saying like below and i could see group ids was not taking correctly and other thing is through Admin access the page was accesible but specific to group access it was throwing error

Expression evaluation error [evaluation ID = 36716:124d6] in rule 'ctest_test_pendingtaskgrid' (called by rules 'cmtest_fies_testdashboard' > 'cmyd_ets_dashboard_requests') at function 'getdistinctusers' [line 114]: [InvalidGroupException]

the code available at 114 line was this 

a!sideBySideItem(
showWhen:not(rule!APN_isBlank(ri!acceptedByGroup)),
item: a!dropdownField_20r2(
label:"Accepted By ",
labelPosition: "ADJACENT",
choiceLabels:apply(rule!Cfsdsd_getFullnameByUser_LastFirst,getdistinctusers(topeople(ri!acceptedByGroup))),
placeholderLabel:"--- Show All ---",
choiceValues:getdistinctusers(topeople(ri!acceptedByGroup)),
value: local!taskOwner,
saveinto:{ local!taskOwner,a!save(local!taskGridSelection.pagingInfo.startIndex,1)}


)),

the value passing to the ri!acceptedByGroup from parent was below highlighted:

rule!CMDS2_FBM_pendingTaskGrid(
label: "Cases Pending Pre Approval - Next Period",
processModelId:cons!CMDSFBM_PExxID_COEPPROVE,
taskName:cons!CMDSFBM_TN_CEO_PREAPPROVAL,
workstream:index(cons!CMDSFBM_WORKSTREAMS,1,""),
linkToTask_bool:true(),
batchsize:25,caseId:local!caseId,
acceptedByGroup:togroup({cons!CMDS_tetsts_Ctest_ATLAS_GROUP,cons!CMDS_FTestM_COE_COMET_GROUP}),
requestToBeProcessedFor:cons!CMDSFBM_REQUEST_TO_BE_PROCESSED_FOR[2],
selectedTasks:ri!selectedTasks,userAction:ri!userAction),

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Stefan Helzle

    I'm getting the same error 'Expression evaluation error..... at function 'getdistinctusers' : [InvalidGroupException]'

    My code at the line where error is pointing:

    getdistinctusers(GROUP_CONSTANT)

    In the group, I have 4 users and 1 Group in which the same 4 users are there.

    I have checked the Security and the groups Privacy Policy.

    Security: Admins

    Privacy Policy

    What could be the cause of the error, how to fix it?

     

Children