On a SharePoint 2013 farm, any SPD 2013 workflow is not starting. It gets associated with the list properly. The issue was specific to a site collection and will happen on all lists within this site collection. The issue is not reproducible in subsite or other site collection. We would not see any relevant errors in ULS logs. The workflows would just not run.
So what is the cause if this
We found that the site had duplicate scopes and both were in active state.
There were 2 rows with same path/ScopeID and the date created/modified were also identical.
Delete the existing scope for this site of you know the ScopeURi used to create Scope or create another scope with a new Scope name using:
Register-SPWorkflowService -SPSite “http://siteurl" -WorkflowHostUri "https://workflow.servername.fqdn:12290" -scopename "SCOPENew"
We will need to republish the workflows after the new scope has been set.
Some information on Scopes
Scopes Could be found in dbo.scopes table of WFResourceManagementDB. Scopes are set first time when we publish workflows from SharePoint Designer for the site. Two Workflows can share same scope if they are published to same site. The Path column for scope is set as “/SharePoint/default/<GUID-of-Root-SiteCollection/<Guid-of-SPWeb> and so on. More information on scopes could be found here: https://msdn.microsoft.com/en-us/library/office/jj163181.aspx
Post By: Divya Agarwal [MSFT]