Skip to main content
Known Participant
Aug 10, 2022 2:49 PM UTC
Question

what does the error mean?

    39 replies

    stewart.burchell
    Employee
    Aug 10, 2022 3:17 PM UTC

    It's saying exactly what the error is - you're using the user() function and passing it a value Appian does not recognise as a valid User. Note that the value for a User is case sensitive e.g. Arunkh is not the same as arunkh. You can avoid this type of error by passing in the value in your rule input as the correct datatype i.e. set ri!userName as type 'User' and not 'Text'. Appian won't let you pick an invalid User for your unit test.

    Known Participant
    Aug 11, 2022 4:39 AM UTC

    user type is there as a data type for rule inputs in expression rule?

    Inspiring
    Aug 11, 2022 4:45 AM UTC

    The username which you entered is not exist. please try to use another username.

    Known Participant
    Aug 11, 2022 4:47 AM UTC

    username is the which we use to login into the environment?

    Inspiring
    Aug 11, 2022 4:48 AM UTC

    then use user(loggedInUser(),"firstName")&" "&user(loggedInUser(),"lastName")