SharePoint workflows cannot automatically start

26.9k views Asked by At

I'm trying to make a SharePoint workflow start automatically for any new document that is uploaded to a specific doc library. I've configured the workflow in SharePoint Designer to auto start for new documents or changed documents. However, the workflow never starts automatically! I can run it manually, but it won't execute itself.

I've searched around and have found the core issue, which is reflected in my log:

"Declarative workflows cannot automatically start if the triggering action was performed by System Account. Canceling workflow auto-start."

However, all the fixes I've seen have not worked for me. A common solution is to not run or create the workflow as the SharePoint System Account. Well, my SharePoint service accounts are not the ones I'm logging in as to upload my documents nor was it the one I used to create the workflow. I've tried editing & re-publishing my workflow as a totally new account and it still won't auto-start.

3

There are 3 answers

1
Rishi Jagati On

Just focus on two things:

  1. Workflow will never start automatically with system account.
  2. Check the options Start workflow automatically when an item is created or changed from Workflow Start Options.
0
user3069111 On

While publishing the workflow, u need to select the checkbox Start workflow automatically when an item is created or changed for the workflow to start automatically or else whatsoever the WF will not start automatically.

Instead of using Sharepoint system user account, u could use an account having contribute permission on site level and full control over the library

0
Dan Sanders On

Run the command at the server in powershell

stsadm.exe –o setproperty –propertyname declarativeworkflowautostartonemailenabled –propertyvalue yes

After I did that, the workflow runs perfectly although it shows the created by as being "system account".