3
votes

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
Are you sure that when going to SharePoint your user isn't displayed as SHAREPOINT\system? Really do try another user, create a new one if you have to.Dennis G
Sure. Just checked. The user is my normal domain account, not the one I have SP services running as. And I did create a brand new user account and used that to save and re-publish my workflow to no avail.user1214747
Try to do iisreset. Maybe some caching issues.Yevgeniy.Chernobrivets
Do you upload the documents by yourself or is there any workflow/app uploading it in the library?user1409909
I uploaded the documents myself (both as my usual domain account and as a test user account that I created specifically for this).user1214747

3 Answers

1
votes

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
votes

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
votes

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".