1

I have a Sharepoint 2010 installation and a Active Directory and a Exchange.

I have design an Approval Workflow which sends emails to the approvers. It works perfectly with some users I have tried as approvers, they receive the email about the approval process perfectly.

The problem is that it doesn't work with the real approver. He doesn't receive any email from Sharepoint. All the users I have tested are Active Directory and Exchange users and their email accounts are working ok, from inside the organization and from outside.

How can I debug the process of sending an automatic email from Sharepoint??

Update 1 I'm logging the SMTP server, and Sharepoint always sends an email with any approver except with one. I can't find where the problem is. The user has an email in AD and when you see his profile in Sharepoint it has the same email, however SharePoint doesn't send him an email.

Updae 2 I've enabled diagnostic logging in Sharepoint and I've found a relevant line when Sharepoint has to send the email. Is this:

Coercion (MultiEmailAddressSemicolon) warning: E-mail address not found for DOMAIN\ProblematicUser

The user has an email address in AD, and If i visit his Sharepoint profile I can see his email address. Some help?

References: Thanks to this I learnt how to enable diagnostic logging

4 Answers 4

1

Finally I managed this deletening the user, so Sharepoint re-query Active Directory and now is working.

How to delete the user in Sharepoint?

Site Action>>Site Settings>>Site Permission>> Open any group replace URL as shown below

Original URL: https://testsite/_layouts/people.aspx?MembershipGroupId=4 Replaced URL: https://testsite/_layouts/people.aspx?MembershipGroupId=0

Then you can able to access user information list, Select user >>Action >delete users from site collection level

0

You can search for SharePoint logs. ULS viewer is one of the best viewer for the logs. Also I think you can try to write user e-mail information to the WorkFlow history.

ULS Viewer

1
  • I can't find any information about this in ULS viewer :( How to write info into de Workflow History? Commented May 25, 2013 at 6:43
0

I had this happen once, I think the AD record was missing an Email address.

1
  • It isn't that, the email record in the AD object has the correct email. I even has changed it for other email address and doesn't works either. Commented May 25, 2013 at 6:42
0

Here's some quick code from one of my projects:

    // LogComment logs messages to the workflow history list.  Calling this method gives the category "Update"
    private void LogComment(string logMessage)
    {
        LogToWorkflowHistoryList(logMessage, "Update");
    }

    // LogException logs messages to the workflow history list.  Calling this method gives the category "Exception"
    private void LogException(string logMessage)
    {
        LogToWorkflowHistoryList(logMessage, "Exception");
    }
    // LogToWorkflowHistory exposes a way to log a comment to the workflow history list (as defined in the SP WF CFG)
    private void LogToWorkflowHistoryList(string logMessage, string commentCategory)
    {           
        SPWorkflow.CreateHistoryEvent(WorkflowProperties.Web, this.WorkflowInstanceId, 0, WorkflowProperties.Web.CurrentUser, new TimeSpan(), commentCategory, logMessage, string.Empty);
    }

Edit: this was meant to be a reply to a comment from the OP.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.