So I'm getting the above error when I try to "route to a user". I'm not using Active Directory, so my trustees directory is setup as Laserfiche Users. I have created a user with the same name that is contained in a template drop down list. My Route to user activity is such that I'm getting the user from a token, and the token value is the drop down list with the users name in it. Then I have Find user by set to Account Name (which is the exact name as appears on the template). However, when I run my workflow, and I select the user from the list, my workflow terminates at the Route To User activity and the above message is listed. Any thoughts?
Question
Question
No user was found with search value '' in user provider [0247-WF1]
Replies
The usual case for this is when the token value is actually empty. If the tokens tab is visible in the instance details of the workflow you should be able to see what the value of the token is. If its not visible, add a track tokens to the workflow and wait for it to fail again and see if the token had a value.
For a more proactive approach, you could add a conditional sequence to detect if the token is empty before using it and perhaps have a default name.
Ed, you were correct. However, I'm not understanding why the token is blank? As you see below my workflow...I have a "Wait for Entry Change" activity...that condition is "when field Due Date is NOT Empty" and "whenf field Assigned to" is NOT Empty. The "Assigned to Field" is the field I'm using to search for the user in the "Route Entry to User"....when I look at the folder (the folder is what I'm performing the action on) it has the proper metadata assigned to it. I've also displayed what the properties are of the "Wait for Entry Change" activity.
I take it you're reading the Assigned To field value in the Retrieve Field Values activity at the top of your workflow and using that token when you try to route to the user? The field would be blank at that point in time.
In the Route to User activity, when you set the user to route to, click on the Tokens button and open the token dialog. Then look for the field in the list of tokens. Workflow will retrieve the field value when it gets to that activity, so it will be updated.