Sharepoint Workflows Email action

Mudasir Ghulam 1 Reputation point
2022-06-09T17:48:38.1+00:00

Hi All,

I am facing very strange issue,
I migrated Project server from development to Production environment. Everything went successful.
However, only one issue i am facing which is workflow is not sending an Email.
Send Email (assigned to single user) or Assign a Task both are failing in sending Email.
A task gets assigned successfully to user but he is not receiving email, similarly send email command is failing.

I checked user profiles, the email is already there, tried reset, reinstalling WFM, Profile services but nothing working.

Also, no correlation Id, the error message looks like below:-

System.Net.WebException: Exception encountered while processing the HTTP request. Exception details: 'HttpClient.SendAsync task was canceled. TraceActivityId=c03477ae-7cca-4f2c-ad49-558c20ad629e'.
at Microsoft.Workflow.Common.AsyncResult.EndTAsyncResult
at Microsoft.Activities.Hosting.HostedHttpExtension.HttpRequestWorkItem.OnEndComplete(ScheduledWorkItemContext context, IAsyncResult result)

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tong Zhang_MSFT 9,261 Reputation points
    2022-06-10T02:29:56.9+00:00

    Hi @Mudasir Ghulam ,

    Please try to do a troubleshooting, please check if User Profile Service is started, and then go to User Profile Service application, check if the user have profiles.

    You can reference this similar issue, hope it can help you.

    Similar issue:
    https://social.msdn.microsoft.com/Forums/azure/en-US/d1d37b8f-d217-40e3-9973-2f59a9703b7e/workflow-email-issue?forum=sharepointcustomization

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



  2. Tong Zhang_MSFT 9,261 Reputation points
    2022-06-24T05:40:42.863+00:00

    Hi @Mudasir Ghulam ,

    I'm glad to hear you solve the problem ,if you have any issue about SharePoint, you are welcome to raise a ticket in this forum.

    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others." and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:

    [Sharepoint Workflows Email action]

    Issue Symptom:

    I am facing very strange issue,
    I migrated Project server from development to Production environment. Everything went successful.
    However, only one issue i am facing which is workflow is not sending an Email.
    Send Email (assigned to single user) or Assign a Task both are failing in sending Email.
    A task gets assigned successfully to user but he is not receiving email, similarly send email command is failing.

    I checked user profiles, the email is already there, tried reset, reinstalling WFM, Profile services but nothing working.

    Also, no correlation Id, the error message looks like below:-

    System.Net.WebException: Exception encountered while processing the HTTP request. Exception details: 'HttpClient.SendAsync task was canceled. TraceActivityId=c03477ae-7cca-4f2c-ad49-558c20ad629e'.
    at Microsoft.Workflow.Common.AsyncResult.EndTAsyncResult
    at Microsoft.Activities.Hosting.HostedHttpExtension.HttpRequestWorkItem.OnEndComplete(ScheduledWorkItemContext context, IAsyncResult result)

    Current status:

    Apparently it was the networking issues, in between the servers of the farm that was causing the issue.

    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.