Sometimes we encounter an issue when there is no error in the workflow steps but still the workflow fails.
One such scenario is, the workflow starts on item creation and shows "In progress" for few minutes and then suddenly gets cancelled.
We tried to troubleshoot the issue by adding a log on each step to check at what stage the workflow is getting canceled.
And, here is the cause for the cancelling of workflows,
1. Email step which had invalid email address. (This holds good when the people picker field is empty). Try hard coding the email address or try with other "Return as" options for the people field (display name, email address, login name). EmailAddress is the best option to use.
2. Input was not in the correct format.
3. Workflow was published with less privilege user account. (Seems weird, but the issue got resolved when published as a site collection admin).
One such scenario is, the workflow starts on item creation and shows "In progress" for few minutes and then suddenly gets cancelled.
We tried to troubleshoot the issue by adding a log on each step to check at what stage the workflow is getting canceled.
And, here is the cause for the cancelling of workflows,
1. Email step which had invalid email address. (This holds good when the people picker field is empty). Try hard coding the email address or try with other "Return as" options for the people field (display name, email address, login name). EmailAddress is the best option to use.
2. Input was not in the correct format.
3. Workflow was published with less privilege user account. (Seems weird, but the issue got resolved when published as a site collection admin).
Comments
Post a Comment