cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow suspended when using Send Email action in O365

Not applicable
10 8 6,252

This information is no longer valid as features have been added to the O365 product to allow you to send mail externally. This article will remain in place but will be considered legacy.

====================================================

When using the "Send Email" action in O365 your workflow immediately goes to "Suspended" status. Upon reviewing the "Internal Status" of the workflow in question you find the following error:

--------------------------------------------------------------------------------------

Emailfailure.png

--------------------------------------------------------------------------------------

Resume this workflow

RequestorId: 8fa2570c-457f-f4a5-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 400 {"error":{"code":"-2130242040, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The e-mail message cannot be sent. Make sure the e-mail has a valid recipient."}}} {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"X-SP-SERVERSTATE":["ReadOnly=0"],"SPClientServiceRequestDuration":["1187"],"DATASERVICEVERSION":["3.0"],"SPRequestGuid":["8fa2570c-457f-f4a5-9908-c290c5cce87d"],"request-id":["8fa2570c-457f-f4a5-9908-c290c5cce87d"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["16.0.0.3912"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Wed, 08 Apr 2015 15:33:17 GMT"],"P3P":["CP=\"\""],"Server":["Microsoft-IIS\/8.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) Exception from activity Throw If Sequence Sequence TryCatch Sequence Microsoft.SharePoint.WorkflowServices.Activities.RetryForEmail HttpPost Sequence If Sequence Microsoft.SharePoint.WorkflowServices.Activities.Email Sequence Flowchart Breakingemail.WorkflowXaml_0d5d5ce6_4ef4_480f_89c5_faebe662815f

--------------------------------------------------------------------------------------

This error is due to the recipient of the email being invalid. There are a number of reasons this can happen:

1) The user is not a valid user for your office 365 tenant. Currently, we do not support sending emails outside of your tenant. This is planned to be changed in the future.

2) The account is a distribution group or a security group in Exchange for Office 365. Please see the following article where MSFT confirms this: https://community.office365.com/en-us/f/154/t/82226

3) The user has not yet been populated in the "hidden user list" inside your team site. You can find the hidden user list inside each team site here: http://yoursite/_catalogs/users/detail.aspx. This hidden user list is populated when a user logs in to the team site (site collection) in question. This hidden user list works as a reference for various things in SharePoint. If the user in question is not in this list you may will receive an error upon running the workflow.

If you continue to have issues sending an email to a particular user please test this using a SharePoint designer workflow. This will confirm whether or not SharePoint online allows sending an email to this user.

Cheers,

Andrew Beals

8 Comments
c_meyer
Nintex Newbie

hey Andrew,

When do you think the problem with sending emails outside my tenant is solved?

When will Microsoft change this reglementation? Do you have further information about it?

Thanks so far.
Christof

Not applicable

Hello,

using your link (_catalogs...) I was able to see a list with three entities: owner account;Everyone; Everyone except external users.

Isn't having Everyone there enough? I just can't imagine how I can make every account log in my site...

When I was using Nintex Enterprise there was no such problem and all emails were been sent

Not applicable

Christof,

Unfortunately I have no visibility when this issue will be resolved. However, this would be a great question to pose to our User Voice site. There is already a feature request in place to enable this feature in our product here:

Email external Address – Customer Feedback for Nintex

Please feel free to add your comments there!

Cheers,

Andrew Beals

Not applicable

I get the same error,

I have a distribution group  I want to send an Email to, as using a sharepoint group took over 10 hours to send to all 150 member of the group.

The thing is, a distribution group can't login.... so I take it this can't be done?

Not applicable

Tom,

Please see the follow post: Re: Nintex Workflow - Email notification not working with Dynamic Distro Groups

Cathi,

Have you attempted this operation with a Sharepoint Designer workflow? I ran a short test in both Nintex Workflow and Sharepoint designer using a distribution group and a security group in Exchange for Office365 and received the same results. The workflow goes to a suspended state and does not continue. I assume for similar reasons to my blog post: Workflow suspended when using Send Email action in O365


The following Office 365 post shows the same experience from MSFT's: https://community.office365.com/en-us/f/154/t/82226

Their recommendation unfortunately is using SharePoint groups. Please let me know if you find different results using Sharepoint designer to further test this.

Cheers,

Andrew Beals

Regards,

Andrew Beals

Not applicable

Andrew,

Yes, I spotted your email, I have opened up a support case with Nintex regarding this, I’ll post the results,

Tom

Not applicable

Gregory,

The hidden user list is generally the least common reason for this failure. I mention this in the article as there are rare instances in which people are trying to send emails to a newly created user and the email fails as the user has never logged in. I believe this issue has since been resolved but it's worth mentioning as a common troubleshooting issue.

Regards,

Andrew Beals

jws082413
Nintex Newbie

I have just run into this problem.  Is there a way to fix this issue?

 

20191030_155924.jpgNintex Suspended Internal Status