Wednesday, April 15, 2015

SharePoint 2013 Workflow starts and then immediately cancels

SharePoint 2013 workflow cancels

There are different scenarios related to auto cancellation of workflow in SharePoint 2013. There are some investigations I have done to fix this issue. It may differ in your case but you can check the following issues to investigate the workflow auto cancellation:

è  Validate the workflow account: The account which runs the workflow should not be the Service, Portal Administrator and farm administrator account.  This account should be a domain account with minimum permission like contributor permission on the site. If you run the workflow with system account it will automatically cancel the workflow after some time.

è  Verify the Email server: If your workflow has email notification and the SMTP server is not configured or unable to send email then it cancels the workflow automatically. It generates an error next to the cancel text on workflow page which is not easy to identify. So verify the email server notification by using the telnet on App or web server in SharePoint environment.

è  User Profile Service Configuration: You need to configure and start the user profile service prior to running workflow.  This is a very important service which helps workflow to identify user from Active Directory to execute in SharePoint environment. After configuring user profile service , User profile Synchronization service needs to be started to synchronize all the AD users to SharePoint portal.

è  Access to Workflow manager Application pool DB: If you are executing code based workflow then the accounts which creates workflow task needs to have access to the mentioned database.

Happy Coding!!!
Gireesh 

No comments:

Post a Comment