Azure, Logic Apps

Azure Logic Apps Template resources

Azure Logic Apps Template Creation for CI/CD


SharePoint, SharePoint 2013, Workflow

Workflow suspended


When testing workflow I created to test accounts and set up mail boxes for those accounts. Send email from outlook to these two test accounts works fine.

*Note Important : User Profile service not synched with AD after creating the mail boxes.

Created a simple SPD workflow that sends mail to these test accounts. The internal status of workflow changed to suspended. Error status looks like,

RequestorId”: 3d95f396-16f9-9e6d-0000-000000000000. Details: “RequestorId”: 3d95f396-16f9-9e6d-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException…

How to Fix this

Try this first.

Run this PowerShell script (from application server) to check if SharePoint is able to send mail. For me it worked and sent mail to Test accounts… but still workflow was not sending email to test accounts.

$site = New-Object Microsoft.SharePoint.SpSite(“http://my.SharePoint.Site “)

$web = $site.OpenWeb()

$mail = [Microsoft.Sharepoint.Utilities.SpUtility]::SendEmail($web,0,0,””,”Subject of the Mail”,”mail body”)

Try this next.

From central administrator run full user profile synchronization.

Now try again and voila!!! it worked. Workflow sends email to Test accounts…

Also grant ‘Contribute’ permission to the user¬†to workflow History list.

Useful links


SP2013 – Permissions for Workflow Manager account

The workflow service account should have appropriate permission in database “WFInstanceManagementDB” and “WFResourceManagementDB” for the workflow to ¬†publish and run successfully.

Side effects if the account does not have appropriate permission.

  1. Workflow may not publish properly
  2. Workflow history status screen may not open i.e., the workflow link for list item may show unexpected error

How to troubleshoot this issue?

  1. Login to web front end server and open event viewer -> Applications and Services log -> Microsoft-Workflow and click “Operational”
  2. Look for error message as shown below

Failed SQL command after 1 tries with error ‘229’. Exception: System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission was denied on the object ‘InsertTrackingAndStatus’, database ‘WFInstanceManagementDB’, schema ‘dbo’.

giving appropriate permission to the service account as mentioned in the start of the article fixed this issue.

side note : I gave db_owner permission for the service account. Not sure about the actual permission at the time of writing this article.

Useful resources: