vadim_tabakman
Nintex Employee
Nintex Employee

Re: Workflow doesn't start automatically

Jump to solution

Since SharePoint controls the automatic starting of workflows, when you encounter this, I'd recommend you check your SP logs for "Workflow Infrastructure" messages.  Usually, SP will log the reason it didn't start the workflow.

Unless, it's configured to start on a condition and that condition is not met.

Vadim

0 Kudos
Reply
burkslm
Novice

Re: Workflow doesn't start automatically

Jump to solution

Are they really not starting or are they in a queue? They system could be running slow sometimes possibly??? I know there are days here where customers call me telling me that the workflow isn't running. I tell them to wait and a few hours later or shorter, it is moving.

0 Kudos
Reply
seid
Novice

Re: Workflow doesn't start automatically

Jump to solution

Yea, I'm having the same issue here as well. A workflow that has been initiating once an item has been created works fine for several days then all of the sudden it doesnt start and I have to run it manually. Any reason why this happens and how to over come it?

0 Kudos
Reply
melissac
Rookie

Re: Workflow doesn't start automatically

Jump to solution

Hi Shaikha,

Does the list have "incoming email" turned on? If so this might be the problem.

0 Kudos
Reply
vadim_tabakman
Nintex Employee
Nintex Employee

Re: Workflow doesn't start automatically

Jump to solution

Hi Shaika,

The main reason I have seen a workflow not start automatically, is if the initiating account is a System Account.

Other than that, SharePoint will log the reason why it didn't start the workflow in the SharePoint logs.

Please check there to see if you can find the cause.

Without that, we'd be guessing as to why this is happening.

cheers,

Vadim

Reply
andersarria
Scholar

Re: Workflow doesn't start automatically

Jump to solution

Hi, We have detected that if the element has been created with attachments and these has a special characters (%&."! ñ) in their name, this cause that the workflow doesn't start automatically. Test adding some of these files with another without these characters, then check the created element, these attachments with the special caracter has been deleted. Well, this is in my case, I hope this can help.

View solution in original post

Reply
melissac
Rookie

Re: Workflow doesn't start automatically

Jump to solution

I also had the issue with the "System Account" name. We have a list that has an incoming email turned on.  My Workflow is set to start WF when a new email is received. Our WF were not being kicked off and the reason was this.

Reply
Not applicable

Re: Workflow doesn't start automatically

Jump to solution

The same question was asked from one of my co-workers in Germany, here is the response I received.

Microsoft implemented a
security patch with the introduction of Service Pack 1 for SharePoint 2007 to
block declarative workflows by system accounts. Since you are creating the item
by code, the best approach to this problem would be to do the following:

1.       Create a service account that has the required permissions for your application.

2.       In your code obtain a SPUserToken for the service account.

3.       Open a new SPSiteContext using the SPUserToken.

Example code in C#:

SPUserToken userToken = null;

        SPSecurity.RunWithElevatedPrivileges(() =>
        {
            using (SPSite site = new SPSite(SPContext.Current.Site.ID))
            {
                using (SPWeb web = site.OpenWeb(SPContext.Current.Web.ID))
                {
                    userToken = web.AllUsers[@"domain\username"].UserToken;
                }
            }
        });

using (SPSite site = new SPSite(SPContext.Current.Site.ID, userToken))
        {
            using (SPWeb web = site.OpenWeb(SPContext.Current.Web.ID))
            {
                //Execute your code to create a new list item here.
            }
        }

0 Kudos
Reply
grobinson
Novice

Re: Workflow doesn't start automatically

Jump to solution

We had a similar issue.  Workflows were not automatically started on a list where the workflow was set to start on item create.  The list was not email enabled and we were using a forms-based authentication (FBA) user to submit the Nintex form (not System Account). 

It turns out this was a case where the user went to the http site and not our https site.  The workflow infrastructure could not resolve the http site:

Cannot find site lookup info for request Uri http://extranet.site.com/

I directed the user to the https site where they edited the form and the workflow executed right away.

Hopefully this can help someone else.

Reply
cassymfreeman

Re: Workflow doesn't start automatically

Jump to solution

did you resolve this in the end?

0 Kudos
Reply