Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
Replies
3 replies
Answers
1 answer
Subscribers
8 subscribers
Views
2731 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I am getting the following error: There is a problem with task “Update User
rishub356
over 9 years ago
I am getting the following error:
There is a problem with task “Update User Profile” in the process “xxx”. The selected user is invalid.
But my user is:
1. deactivated in Appian but I am trying to sync it from Entitlements.
2. Responding to the user() function
3. The 'Update User Profile' node is working correctly for other Users.
Can anyone guide please over the issue?
OriginalPostID-207242
OriginalPostID-207242
Discussion posts and replies are publicly visible
0
ChristineH
Certified Lead Developer
over 9 years ago
I'm not sure I understand what "sync it..." means, but I don't believe you can perform an update or use the user function on a deactivated user.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
shailendras593
over 9 years ago
Hi Rishub,
Seems you are correct! User function works even for a deactivated user.
One workaround would be to check if the selected user is active or not, in a script task just before the 'Update User Profile' node. For that you can use isuseractive() function, which is a custom function, to check the selected user. If it returns true(), only then route your process flow to the 'Update User Profile' node.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
Instead of a custom function isuseractive(), OOTB function, fn!user(<userName>,"status") can do the job.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel