SharePoint Custom Workflow Failed on start (retrying).

recently we developed custom sequential workflow with initiation page. when we click to run workflow on initiation page, workflow status message shows failed on start (retrying). We try to find the root cause, first we analyze initiator permission level.  then we checked workflow onActivated coding block and correlation tokens of workflow activities, seems every thing fine.

after long time we find the solution similarly to permissions, during workflow starting activity ( Web.Site.WorkflowManager.StartWorkflow(workflowListItem, association, GetInitiationData) we given safe updates to true and false of workflow item on workflow onActivated event. that causes to inconsistence of item permission workflow got stopped.

once we removed alowunsafeupdates of an item workflow runs smoothly.

Comments

Popular posts from this blog

PAGE NOT FOUND ERROR PAGE IN SHAREPOINT 2013

Hide the Upload Button of the Doucment Library

Get Host site list items in SharePoint Hosted App.