.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

To-Do tasks not starting when being assigned from another workflow.

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :SharePoint

Hi all,

I'm new to doing workflows and i have created a rather straight forward one to manage a leave calander list (Custom List) in SharePoint Designer. 

Here is a baisc overview of the workflow,

  1. User Submits Request -> Gets Email Notification -> Approvers Recieve Email Notification and Assigned TO-DO task
  2. If( leave is approved)-> {conf email to user and email to HR to inform them} else if (rejected) -> {conf email to user}

However the issue that i am having is that the work flow with automatically fire until the TO-DO task which will sit "not started" in thee workflow task list until it is completed manually. When the rest of the work flow will continue along happily.

My question is do i need to run another workflow on the workflow task list or is there a way to force a to-do task to auto complete?

Thanks in advance


View Complete Post

More Related Resource Links

SharePoint Foundation - Workflow user has tasks assigned then leaves the company - How to assign to


Hi all,

if a user leaves the company and has workflow tasks pending whats the best practice for assigning them to another user without terminating the workflow.

I have tried renaming the account which allows the user to continue even though the tasks still display the original username.

I guess there are a couple of questions that arise from this.

1. Using SharePoint 2010 Foundation the SharePoint user accounts don't seem to re-sync automatically with AD after a rename, so how can this be done?

2. If we decide to create a new user, how do we assign the new user account to replace the leaver in the workflow without disrupting the flow?

Thanks for any help, can't find anything on the web about this.


SharePoint 2010 Long Starting if start workflow programatically


In SharePoint 2010, I'm starting workflow #2 programatically from my workflow #1. See code below:

					SPList currentList = web.Lists[new Guid(ListId)];
					SPListItem currentListItem = currentList.GetItemById(ListItem);

					//resolve any lookup parameters
					string workflowId = base.ProcessStringField(WorkflowIdentifier);

					//find workflow association by name
					SPWorkflowAssociation workflowAssoc = currentList.WorkflowAssociations.GetAssociationByName(workflowId, Thread.CurrentThread.CurrentCulture);

					if (workflowAssoc != null)
						//start the workflow
						SPWorkflow workflow = site.WorkflowManager.StartWorkflow(currentListItem, workflowAssoc, workflowAssoc.AssociationData, SPWorkflowRunOptions.Synchronous);

And workflow #2  will hang with Starting status (1-10 minutes), Then the workflow #2 status would be modified  to Completed.

I couldn't find how to start the workflow # 2 immediately and complete immediately without several minutes delay

Errors when interacting with WorkFlow generated tasks through ISA Server


I have a MOSs environment that I have published through ISA Server 2006 and i am getting really strange behavior whentrying to interact with WorkLFow generated tasks when I have connected through ISA. This also seems to affect InfoPath Forms Services. I was wondering if anyone out there is seeing any problems when using ISA Server to interact wih Forms or WorkFlows?


The error I get simply states:

the form cannot be submitted to the web server either because your computer is offline or because the host server is currently unavailable.


Any help would be appreciated.





SharePoint leaving Assigned To field blank in a Workflow Task



We are having an issue with occasional Tasks being created by a WF that have a blank Assigned to field.  Solution consists of:

  1. A form with a People picker field that allows the user to select and validate the Authoriser name.
  2. An Auto-start-on-New SP Designer workflow runs that does a "Collect Data from User action" and assigns the Task to the Authoriser.

Unfortunately, although this worked fine during dev and test, now the solution is live and we are having 150-200 requests per day, we are finding that the WF occasionally fails to fill in the Assigned To details when it creates the Task. (approx 8 failures per 200 requests, ie 4%).

As SharePoint already has the User data field, I am confused why this might fail, and there is no obvious pattern (same auth, 4 work OK then 1 failure). 
Does SP contact the AD again when it creates the Task?

Anything else I should investigate? any suggested fix / work-arounds?


Ruth, UK

Query for Workflow tasks?

HI All, I need a CAML query which will retrieve all the workflow tasks from all the site collections in a web application, which are assigned to the current logged in user and whose status is NOT STARTED.  I.e., ASSIGNED TO = CurrentLoggedInUser STATUS=”Not Started” Workflow Name is not null Can any one of you help me regarding this Issue. Regards, Kumar.

SPD workflow status show "starting" when I create a document from the library !!. and hangs

I have a document library in MOSS 2007. Have created a WF and that starts "autmatically when new item created" In the document library I have created couple of column those are mandatory (required columns) and user has to fill those column while uploading a document as well creating a document from library. WF has ran and completed succefully  when I use "upload" option to load a document.  As you are aware, when we "upload" a document, we will have to fill all "required columns" and the click "check in" command button.  After I do all this, document get loaded and WD ran succesfully. However, the WF is not running when I create a document (.docx) from this library (using "new" button) !!.  I have filled all required field in the document information panel . After save & exit from WORD application, I can see WF status as "starting". But, it never started and completed.  So I did following and found WF worked !! a) After creating document (.docx) using "new" option I found WF status "starting"!. So,  I did "Check-out and Check-in" manually from document library. After doing this,  WF ran and status has been changed as "completed" b) In SPD, I change workflow start option from "Automatic" to "Manually start".&nb

Workflow stuck on starting When using Win 7 / Office 2007

I've recently created custom workflows for a document approval process. At first I set the workflows to be started manually, for testing purposes and everything worked well. However when I changed the workflows to start automatically I started get problems. The workflow progress would stick on "Starting". Im running Win 7 And Office 2007, so i decided to do some troubling shooting on a different machine (XP and 2003) This time the workflow work perfectly...!   It is really strange as to why the workflows work fine on XP and 2003 and not with Win 7 and 2007. Can anybody shed any light on this or had the same problem? Thanks Chris

Workflow tasks viewable by most, but not all task owners.

I have a simple SharePoint Designer workflow that starts when a new list item is created.  The task owner is defined by a 'user/group' field selected from a sharepoint list.  Of 150+ users, only 4 are not able to see the tasks when assigned.  I have the task list set so they only see their own.  These 4 users do not see any tasks, where as everyone else does see only their own tasks.  To test, I changed the list settings to show all.  The users saw all tasks, but are not able to edit the tasks assigned to them. I feel the problem lies with how the workflow is assigning ownership of the task.  When I use the sharepoint task list to manually create a task for these 4 users, they can see and edit them, but when the workflow creates the task - they can't. Is there something special about how workflows assign task ownership based off Active Directory versus manually assigning tasks coming from the cached SharePoint profile?  (As a test I deleted the user from the All People list of the site, and manually added them back - no luck).Greg Appelt

Workflow AND/OR Tasks - how can I create one that occurs/recurrs on a weekly basis.

Hi All, Any ideas how I could configure SharePoint 2010 to trigger a workflow for a site member that notifies them to perform  a specific task ? I have a timesheet template that I intend to create a content type from. the use case is that each site member needs to fill out a timesheet at the start of the week to indicate what work they will be doing for the week. Is it possible ( using customisation ) to create a workflow so that a site member is prompted to create a new timesheet at the start of everyweek ? Alternatively can a recurrent task be created instead ? i.e. on the monday of every week create a new task for each site member to "create new weekly timesheet" Thanks and regards, Counie  

Incoming E-Mail with attachment not starting SharePoint workflow (VS 2008)

I am working on SharePoint 2007 workflow in visual studio 2008. The workflow is attached to an email-enabled list and is supposed to automatically start on incoming email. It works fine when email (without attachment) is sent to the list but the workflow cannot start when the email is sent with attachment. There is no error message but the workflow status field is blank. The attachment field is also blank. When I manually run the workflow, it works fine. This problem happened on Staging and production servers. On Development server, the workflow works fine either way. The list is setup to save attachments. Any help please

Incoming E-Mail with attachment not starting SharePoint workflow (VS 2008)

I am working on SharePoint 2007 workflow in visual studio 2008. The workflow is attached to an email-enabled list and is supposed to automatically start on incoming email. It works fine when email (without attachment) is sent to the list but the workflow cannot start when the email is sent with attachment. There is no error message but the workflow status field is blank. The attachment field is also blank. When I manually run the workflow, it works fine. This problem happened on Staging and production servers. On Development server, the workflow works fine either way. The list is setup to save attachments. Any help please

assigning workflow tasks

Hi, I'm trying to create a workflow in sharepoint designer which will assign the workflow task to a specific user based on a field. I'm using the "Collect Data from This User" action. I have two lists, "cost centre" and "purchase order". I've put the layout of them below. I want the workflow task generated from the Purchase Order to assign the workflow task to the Approver in Cost Centres based on the Cost Centre field. In Sharepoint designer I have done the following: Lookup Source: Cost Centres Field: Approver Find Field : Cost Centres:Cost Centre Value: Purchase Order:Cost Centre Cost Centres (List) Cost Centre                  Approver 0010                              Chris 0020                              Sarah Purchase Order (List) Cost Centre 0010 When I create a new item in Purchase Orders List with a Cost Centre field that matches a field in Cost Centres List, there is no-one assigned in the task generated from purchase orders list. Any ideas

Strange notification emails from workflow tasks

Pardon if this is a dumb question, but I can't figure it out. I am setting up a purchase request workflow and it works, but for some reason extra emails are being created and sent to a different address. I didn't put this address into the workflow so I am unsure why it is doing it.   My work flow consists of a simple start approval process to a set email address. Then an if and else to send emails (hardcoded) based on the approval status. The email address is mine and I don't have any diversions on it. An example of the emails: ---------------------------------------------- Approval has completed on 4444444. Approval on 4444444 has successfully completed. All participants have completed their tasks.   Approval started by ######\intranet on 9/16/2010 12:45 PM Comment: Rejected by ########P\intranet on 9/16/2010 12:48 PM Comment:  ---------------------------------------- I only have myself in the approving group. And I have gone through all my settings (well I think I have) and I can't find where this email address or setting is. Thanks in advance. Again, sorry if this is a dumb question.

SP-Designer Workflow Task assigned to a Security Group Problem

Task assigned to a Security Group Should be Filter basic on Show items only when the this conditon is true: "Assign To is Equal to [Me]" This above condtion shows my task only , not all task. So How i ve to make following Condition in it. "Assign To(Security Group) Contains [Me](currnt loged user). Actually Problem is that workflow is assinging a task to a GROUP( having a lot sharpeoint users) , if i m the current user(exists in that group) then i shud get the my task only ,which is assigned to me only , nothing else user's task. So pls help me. Thanks in Advance.Regards- Sharad

Workflow keeps status Starting



We use SharePoint 2007 in our organisation, and are developing some simple Workflows with SharePoint Designer.
The thing is that, even the most simple workflows, are not running consistent. Sometimes the workflow goes
from 'in process' to 'completed', but mostly the status of the workflow keeps 'Starting'

I read many forums about this isseue, but stiil I have no idea what i'm doing wrong. Somewhere I got the tip
to put a delay in the action of the workflow, but the result is not satisfied.

Can someone give me a tip?

With kind regards,

activeX error when starting a workflow from inside Microsoft Word


I have a Word 2007 document hosted on a local intranet SharePoint 2007 Server.
When i open the document inside Word 2007 and start a Collect Signature workflow (the word document has some signature lines included), the following ActiveX error si thrown:

Microsoft Office InfoPath
One or more ActiveX controls could not be displayed because either:

1) Your current security settings prohibit running ActiveX controls on this page, or
2) You have blocked a publisher of one of the controls.

As a result, the page might not display correctly.

I managed to find out that the error is generated because of the security level regarding ActiveX controls set on the INTERNET zone.
In the internet zone, all ActiveX controls are restricted to run, but in the LOCAL INTRANET zone are allowed.
Our company security policy does not permit changing the ActiveX settings in INTERNET zone.

If i navigate to the sharepoint site in Internet Explorer, the site is seen correctly in the LOCAL INTRANET zone

Can somebody give me a solution to be able to start the workflow process, without modifing security settings on the internet zone and without upgrading to O

Sharepoint Server 2007. Sharepoint Designer workflow not starting for one user only.


We have created a custom workflow in SPD that is attached to a document library within a MOSS 2007 teamsite.

The workflow is set to trigger when a new item is created in the document library.

Previously, the workflow has worked fine for all users but recently has stopped working for one user only.

For the problem user, what we are seeing is that when a new item is created in the document library, the attached workflow never starts.  There is no error, the workflow just does not get triggered.  However, if the problem user goes to an item in the document library and clicks on the workflow she can manually start it and it works fine with no error.

This user has the same permissions on the site as others who do not have any problem.

In the course of investigating this problem, we have temporarily increased the problem users permissions on the document library to full control (was contribute before) but this has had no effect on the problem.  Authentication is being done via Active Directory.  We have tried removing the user from the site and re-instating her but again this has no impact.

Does anyone have any idea how we could fix this problem or further debug it?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend