Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Expression Evaluation in rule - A User and group Picker component [label ='']has an invalid value for value. All users and groups must be valid and visible to the viewer

Hi,

I am getting above error while selecting user for task assignment on the interface.

a!pickerFieldUsersAndGroups(
value: rule!<rulename>(
fv!item.Assignee
),

Rule code

if(
rule!APN_isBlank(
ri!userOrGroup
),
null,
if(
charat(
tostring(
ri!userOrGroup
),
1
) = "[",
togroup(
ri!userOrGroup
),
touser(
ri!userOrGroup
)
)
)

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to nirupamaanuragt

    No need to be sorry, we are here to help!

    Firstly you can check the values in the Assignee column of your list. 
    In the pickerFieldUsersAndGroups() code that you have on your interface, can you try the below code and check the results. 

     a!pickerFieldUsersAndGroups(
        instructions: a!foreach(
          local!list, /*Replace with the list you have in your foreach()*/
          if(
            rule!APN_isBlank(fv!item.Assignee),
            null,
            if(
              charat(tostring(fv!item.Assignee), 1) = "[",
              a!doesGroupExist(tointeger(fv!item.Assignee)),
             
              isusernametaken(fv!item.Assignee)
            )
          )
        ),

    In my case as you can see here I have the output like this 

    In the instructions I have false at index 3 which means 3rd item in the list is invalid. Similarly check for your list which all values in the Assignee field is invalid. 

    P.S. as the list will have group id and not the name, I have updated previous answer to check valid groups using a!doesGroupExist() instead of a!groupsByName().