Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
9 subscribers
Views
3664 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Having problems with usernames. This really comes down to data source
adamm
over 10 years ago
Having problems with usernames.
This really comes down to data sources that are inconsistent in the upper/lower case of the usernames, say the Appian people tab definition of the user has the username "Username" but the data source we are getting a name from tells us it is "username".
We are trying to post a feed, or post to a feed, with the viewer/author using the "username" version. we get the error:
There is a problem with task “Post Closed Loan Feed” in the process “......”.
One or more users and/or groups specified for the Viewers input field does
not exist. Usernames: username. The system event was not sent.
the closest I can get to an easy simulation of the problem is using an expression rule:
working: user("Userame", "email")
failing: user("username", "email")
which we can not use as a test, as it does not return a null, or some other value, but totally fails:
Expression evaluation error at function 'us...
OriginalPostID-112110
OriginalPostID-112110
Discussion posts and replies are publicly visible
0
adamm
over 10 years ago
...er': Error evaluating function 'user' : com.appiancorp.suiteapi.common.exceptions.InvalidUserException: [InvalidUserException]
Any help out there for a way to test for the problem so we can manipulate the case, or other suggestion of a workaround?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 10 years ago
I know this problem from syncing usernames from active directory. In the Windows universe "Joe" is the same as "joe". In Appian these are different users. So my advice to customers is to use lowercase only usernames in Appian. When there are comming usernames from other sources in mixed case you only have to lowercase them to match the Appian user account. Anything other is very prone to failures as "Joe" might also be "jOe" or "joE" ...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
adamm
over 10 years ago
*chuckle* we actually do follow a standard of using the lower case names in our system, but we had some consultants come in and they set up a pilot user group within Appian with mixed case names and that led to this problem.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
prernas
over 10 years ago
isusernametaken("Username") returns true whereas isusernametaken("username") returns false. This is mis-leading because when we try adding "username" as user, it would throw an exception. How to handle this?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel