I have a simple list with one field I named ‘Recipient’. It is a name field that allows you to select other sharepoint users. The workflow has one action, send email that does a workflow lookup at the Recipient filed on the current item and returns the field as a semicolon delimited email address. When I create a new item and select myself as the recipient the email gets sent but if I select anyone else the workflow goes into suspend status with the following status:
I forgot to include the error message that shows when the workflow is suspended.
RequestorId: 5e99c8d9-3b7a-1307-0000-000000000000. Details: RequestorId: 5e99c8d9-3b7a-1307-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 400 {“Transfer-Encoding”:[“chunked”],”X-SharePointHealthScore”:[“0″],”SPClientServiceRequestDuration”:[“80″],”SPRequestGuid”:[“5e99c8d9-3b7a-1307-b4f3-666fde0f2b37″],”request-id”:[“5e99c8d9-3b7a-1307-b4f3-666fde0f2b37″],”X-FRAME-OPTIONS”:[“SAMEORIGIN”],”MicrosoftSharePointTeamServices”:[“15.0.0.4420″],”X-Content-Type-Options”:[“nosniff”],”X-MS-InvokeApp”:[“1; RequireReadOnly”],”Cache-Control”:[“max-age=0, private”],”Date”:[“Thu, 23 Jan 2014 20:21:02 GMT”],”Server”:[“Microsoft-IIS\/7.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)
Another interesting fact is that in the stage of the workflow where I am setting the approver to myself, I am selecting my name in the exact same way that I do when I select it in the Send Email stage. For example, I enter my login name and allow it to resolve to my name and email address. So it finds me to send the email in the second case, but not in the first case. Very weird!