Workflow not starting on Item Creation when item is created by System Account

  • 26 March 2021
  • 0 replies
  • 646 views

Userlevel 5
Badge +19

ISSUE

Workflow not starting when a new item is created.

ERROR CODE

Logs may show the following entry: "Declarative workflows cannot automatically start if the triggering action was performed by System Account. Canceling workflow auto-start"

RESOLUTION

Simple

  • Place the 'Create Item' action (or any other relevant actions) inside of an Action Set with the 'Run as workflow owner' option checked (this is located under 'Common' in the action configuration). This will use the workflow publisher's credentials rather than the System Account.

Advanced

  • If possible, start the workflow with an account other than a System Account.
  • In Central Administration, configure the account to not be recognized as a System Account.
  • Ensure that the "SPSecurity.RunWithElevatedPrivileges(delegate()" method is not being used to start the workflow, which effectively impersonates a system account.

ADDITIONAL INFORMATION

Since Service Pack 1 of SharePoint 2007, workflows will not automatically start if the initiator of the event is a system account.

0 replies

Be the first to reply!

Reply