I am having an issue with a SharePoint 2013 workflow not working when the “Send Email” action is utilized. Every other part of the workflow is working as it should.
The error I get is: RequestorId: f44ac52a-0202-dafe-d2f7-400168d2e1bb. Details: System.ApplicationException: HTTP 400 {“Transfer-Encoding”:[“chunked”],”X-SharePointHealthScore”:[“0”],
It appears that the request does not even make it to the SMTP server. It hits that action and cancels.
I have configured workflow manager. The User Profile services and synch are running fine. The FIM services are running fine along with the Service bus services. I had this working for a short period of time and then it stopped working. I originally thought that this may be a permissions error but as the User profile services and all the other services running under this account are running properly that makes me think that it is something else.
I am not running the workflow under system account.
I have tried running the workflow under other accounts and get the same result.
Has anyone else had this error? If so what did you do to resolve it? Any help is appreciated!
I had the 400 error and I fixed it…..
I ran these powershell commands on the root site collection
get-spuser -web http://sitecollection | select DisplayName, ID
This gave me the ID of the user I was using in the workflow where email was being sent….
$user = Get-SPUser -Web http://sitecollection -Identity {Id}
replace {d} with the number of ID field you got from the previous command.
Now you can update the email address:
$user.Email = “abc@abc.com”
$user.Update()
Note: Outside email addresses are not allowed with SP 2013 workflow it seems – the email address has to resolve to a user or a name of SP Group in the site collection or else your workflow will fail. I have not tried this with AD group yet.