You are viewing limited content. For full access, please sign in.

Question

Question

Workflow email - "No user was found..."

asked on April 1, 2015

Hello, good people!  I'm working on my workflows - migrating them from v7 to v9 - and I've hit a snag that I haven't found a way through yet.

 

I created a simple workflow with just the failed piece to simplify testing.

 

Basically, the process is this:

  • Start a business process on a doc
  • retrieve a field for "TEAM" from that doc
  • lookup the LF Group with the same name as the value in that field.
  • For each of the members of that group
    • send them an email

 

Steps 1-3 are working just fine.  Step 4 could also be "Send an email, with the email of all members of the group in 'TO:' "

 

But...  I'm not getting the email part.  

 

Here is my test workflow:

For the "Find Group" action I do have the box checked to provide a collection of the group members.

For "Find User," I've tried finding them in my AD trustee directory and the LF Repository.  Neither work.

All of the users are Windows Accounts.

The "Test" for the AD trustee dir is successful.  If I do a trustee search from the AD directory in "Configure Trustee Directories", the search is successful. 

 

When it fails, I get error messages in that instance of the workflow.  They say "No user was found with the search value 'OURDOMAIN\username' in user provider 'AD\OURDOMAIN'. [0247-WF1]" 

I haven't assigned email addresses in the "Configure Trustee Directories" for the Windows Accounts in the repository since I was pretty sure I shouldn't have to.

 

So...  I'm approaching the great brain trust that is "Answers" and asking - anyone have any tips on why this isn't working?

 

I appreciate any help you can give.

 

0 0

Replies

replied on April 1, 2015

Have you setup your Trustee Directories within Workflow Configuration Manager?

0 0
replied on April 2, 2015

I do have the Trustee connections set up and they seem to be working if I use the search from "Configure Trustee Directories" to search, I see results from AD.

 

0 0
replied on April 1, 2015

What are you searching by? The account name? Does it fail on one user or on all of them? Does the user actually exist in AD?

0 0
replied on April 2, 2015

Hi Miruna!

 

I have tried many options, but it seems like Account Name would be the most logical.

 

The users do exist in AD.  (These are Windows Account users.)

0 0
replied on April 2, 2015

In testing, I went into the "Assign trustee directories" and added an email address to a windows account.  This worked properly and I was able to send to the user.

 

For Windows users, I shouldn't have to do this, right?  I would rather not have to manually type email addresses for all of our users.

This does show that the email configuration is correct.

0 0
replied on April 3, 2015

If you can add email addresses to Windows accounts, then you're in a repository trustee directory, not an active directory one. If that's the case, then the activity works as designed.

Could you post screenshots of your trustee directory configuration and the activity properties? Feel free to redact any identifying information.

0 0
replied on April 2, 2015 Show version history

Sorry for out-of-scope suggestion here, but would it not make it easier on the systems if you just used email distribution group on your windows system so Team A will have say dist. list of TeamA@urdomain.com. This way you can ask workflow to send to this team one email instead of "multiple" emails being sent from workflow ?

 

I tested on our system what you were attempting it works, but the Find Group has to be "exact" match it cannot be partial match. So if group is called TeamA you should be searching for exactly TeamA not Team alone !

 

Btw why do you have "Find user" option, it works fine emailing to each user in that group since you are using "for each" rule.

0 0
replied on April 2, 2015

Thanks, Sumeet!

 

That suggestion is not out-of-scope, but I think I would have a similar problem.  The team is designated by the field, so I would need to lookup the team name in AD to get the email address for that team. (Or, hard code some sort of table lookup for email from team name...)

 

I tried emailing first without the "find user" - no luck.  Then I added the "Find user" to try doing a look up from AD.

0 0
replied on April 6, 2015

I forgot I had stumbled across a workaround.  I don't care for it, but it works:

https://answers.laserfiche.com/questions/61838/Find-User-activity-is-searching-for-windows-accounts-by-Domainusername-and-cannot-find-them-with-that-string-in-Active-Directory

 

This is still an issue.  Find User searches for DOMAIN\USERNAME and it doesn't find it.

 

Do you have any ideas?

0 0
replied on April 7, 2015

The issue in that thread never made it to Tech Support and we could not reproduce it internally based on the information in the thread.

Like I said above, it's not entirely clear to me if you're using a Laserfiche or an AD trustee provider. Could you, please, have your reseller open up a case with Tech Support?

0 0
replied on April 7, 2015

Will do.

I'm also attaching the requested screenshots.

 

Thanks!!

 

 

0 0
replied on April 7, 2015 Show version history

In the "For Each User" loop, right before the "Find User" activity, add a "Pattern Matching" activity with the input token

%(ForEachUser_Current User_Account Name)

and pattern

\w+\\(.+)

What this does is returns a token value with just the "username" with the "domain\" part stripped out. Then in the "Find User" activity, search in your AD trustee directory and use the pattern matching token to search against the account name.

Republish the workflow and see if that works now.

Here's a view of my workflow that works for me. Note that I have an LF Group which only has Windows Accounts as members. My repository trustee directory is anzio_Alex and my LDAP/AD trustee directory is LFAD.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.