Skip to main content
November 24, 2023
Solved

Invalidgroup Exception Error while accessing interface

  • November 24, 2023
  • 6 replies
  • 0 views

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),

Best answer by stefanhelzle0001

Yup, visibility is the issue. If you are not a member, you have no access to the group.

6 replies

stefanhelzle0001
Brainy
November 24, 2023

Did you check the security settings of these groups? An admin call always see all groups and their members. A normal user can only see public groups.

docs.appian.com/.../Configuring_Security_for_Groups.html

March 5, 2024

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?

 

stefanhelzle0001
Brainy
March 5, 2024

You did not mention the visibility setting of that group.

annap0005
November 27, 2023

check the groups Privacy Policy