none
Workflow failing when sending mail / task notification

    Question

  • Hi All -

    I have an issue right now where a custom workflow (from SharePoint Designer) is failing at the point where it sends an e-mail notification. The site is hosted on SharePoint Online.

    The error is below:

    RequestorId: 4377a502-772e-445d-0000-000000000000. 
    Details: An unhandled exception occurred during the execution of the workflow instance. 
    Exception details: System.ApplicationException: HTTP 403 {
    	"error":{
    		"code":"-2147024891, 
    		System.UnauthorizedAccessException",
    		"message":{
    			"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."
    		}
    	}
    }
     
    {
    	"Transfer-Encoding":["chunked"],
    	"X-SharePointHealthScore":["0"],
    	"X-MSDAVEXT_Error":["917656;Access+denied.+Before+opening+files+in+this+location%2c+you+must+first+browse+to+the+web+site+and+select+the+option+to+login+automatically."],
    	"X-SP-SERVERSTATE":["ReadOnly=0"],
    	"DATASERVICEVERSION":["3.0"],
    	"SPClientServiceRequestDuration":["558"],
    	"SPRequestDuration":["799"],
    	"SPRequestGuid":["4377a502-772e-445d-b017-e8140fffd10f"],
    	"request-id":["4377a502-772e-445d-b017-e8140fffd10f"],
    	"Strict-Transport-Security":["max-age=31536000"],
    	"X-FRAME-OPTIONS":["SAMEORIGIN"],
    	"MicrosoftSharePointTeamServices":["16.0.0.6406"],
    	"X-Content-Type-Options":["nosniff"],
    	"X-MS-InvokeApp":["1; RequireReadOnly"],
    	"X-MSEdge-Ref":["Ref A: D9AEF5A654AE43D8B36F25CF2D17A790 Ref B: AMS04EDGE0213 Ref C: Mon Apr 17 18:28:31 2017 PST"],
    	"Cache-Control":["max-age=0, private"],
    	"Date":["Tue, 18 Apr 2017 01:28:30 GMT"],
    	"P3P":["CP=\"ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI\""],
    	"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 Then If Else If Then If Then If Project Initiation Sequence Flowchart Sequence SPAN Workflow.WorkflowXaml_67d48d9f_455b_4beb_a200_cf709656b150
    
    

    The user who published the workflow is a site collection administrator.

    I cannot figure out why this workflow step is throwing an access denied message (see line 16), the workflow worked up until recently however it's unclear whether anyone has made any recent changes to it which caused it to break, or whether something has changed in the environment itself.

    I would appreciate any help.


    • Edited by Izvor Thursday, April 20, 2017 10:46 AM
    Thursday, April 20, 2017 10:41 AM

Answers

  • Hi lzvor,

    Please provide more detail about your workflow.

    Are you sending emails to a SharePoint group?

    If you want to email a SharePoint group, please make everyone be able to view the membership of this group by using the Change Group Settings page.


    Best regards,

    Linda Zhang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Marked as answer by Izvor Friday, April 21, 2017 8:24 AM
    Friday, April 21, 2017 7:18 AM

All replies

  • Hi lzvor,

    Please provide more detail about your workflow.

    Are you sending emails to a SharePoint group?

    If you want to email a SharePoint group, please make everyone be able to view the membership of this group by using the Change Group Settings page.


    Best regards,

    Linda Zhang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Marked as answer by Izvor Friday, April 21, 2017 8:24 AM
    Friday, April 21, 2017 7:18 AM
  • Hi Linda -

    No need to provide more detail, you got it :)

    The mail was trying to cc: a group where only group members could see membership.

    Funny thing was, there wasn't even anyone in the group :))

    Thank you very much indeed, and marked your reply as answer.

    Friday, April 21, 2017 8:24 AM