SharePoint - Workflow ForumTopics about workflow capabilities in SharePoint products and technologies.© 2009 Microsoft Corporation. All rights reserved.Wed, 25 Nov 2009 08:15:33 Z3e8a437c-38c7-408c-8964-b363d633081chttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/60736704-5679-4d65-a449-10ffb1ebab50http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/60736704-5679-4d65-a449-10ffb1ebab50SyDWorkflowQueenhttp://social.msdn.microsoft.com/Profile/en-US/?user=SyDWorkflowQueenhow to setup a workflow that would prevent decision responses from overwriting?I have created a workflow for the Request for Proposal group of users and tried to collect their inputs to reflect (Bid, No Bid, or Participate) as part of the decision response. As a result, the answers have been overwritten one another, which I do not want. Could someone please help me layout the steps of the process that would prevent the bid decision responses from overwriting?Mon, 23 Nov 2009 14:37:52 Z2009-11-25T07:53:25Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/e9120d07-90ed-4bb2-92bb-57eef0782293http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/e9120d07-90ed-4bb2-92bb-57eef0782293doll teddyhttp://social.msdn.microsoft.com/Profile/en-US/?user=doll%20teddyhow to move the item from a discussion board/list to another?i want to move an item from a discussion board/list to another. For that, i created a workflow in sharepoint designer, selected the action of &quot;copy list item&quot;,and started the workflow! The result is , that the discussion item was moved to the destination list, but all the replies of the discussion were lost, only leaving an original topic. i opened the website using sharepoint designer, and found a strang file named &quot;1_.000&quot; in the content list of the destination borad/list...... can anyone answer my question, thank you!Mon, 23 Nov 2009 09:05:48 Z2009-11-25T07:17:46Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/5136193c-ee9b-4129-914d-a9b921027216http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/5136193c-ee9b-4129-914d-a9b921027216RajKumarBathulahttp://social.msdn.microsoft.com/Profile/en-US/?user=RajKumarBathulaworkflows not working for a list created by list template which has workflows.<p>Hi<br/><br/>I am working on MOSS07 and in my team site i am using a list template (which has some data and workflows) to create a new list. I am able to find all data in new list but workflows are not working in newly created list. i mean they are not triggering. <br/><br/>Please kindly help me to resolve the issue. please ask if you need any more information.<br/><br/>thank you<br/>Raj</p>Wed, 25 Nov 2009 07:13:28 Z2009-11-25T07:13:29Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/ab8482c4-9e62-4d14-b3a7-5ad2a35a481chttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/ab8482c4-9e62-4d14-b3a7-5ad2a35a481csteven_455http://social.msdn.microsoft.com/Profile/en-US/?user=steven_455OnTaskChanged event doesn't fire after SPWorkflowTask.AlterTaskHi guys<br/><br/>I've been following Robert Shelton's tutorial on creating an approval workflow, but ran into an issue I'm having a hard time resolving.  After the approval task is created, we create a While loop and wait for a private member, 'taskCompleted', to equal true before completing the task.  Within the while loop is an OnTaskChanged that should set taskComplete = true and exit the loop.  Once we exit the loop, CompleteTask runs and finishes my workflow.<br/><br/>In other words, this is what the flow looks like:<br/><br/>CreateTaskWithContentType -&gt; OnTaskCreated -&gt; WhileActivity -&gt; OnTaskChanged -&gt; CompleteTask<br/><br/>I'm debugging my workflow in VS, but never hit the WhileActivity-&gt;OnTaskChanged section.  I tried disabling the OnTaskCreated step and now find that I do hit the WhileActivity step when initially starting the workflow.  However, once the content approver returns to the workflow and clicks either Approve or Reject (in either case, we run a &quot;SPWorkflowTask.AlterTask&quot; method), OnTaskChanged doesn't fire.<br/><br/>Any ideas what the issue is or how to further investigate?<br/><br/>Tks in advance<hr class="sig">stevenTue, 24 Nov 2009 20:57:46 Z2009-11-25T06:29:25Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/f82668b2-5c4b-4205-92ba-25c04bfd9832http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/f82668b2-5c4b-4205-92ba-25c04bfd9832RK Senthilhttp://social.msdn.microsoft.com/Profile/en-US/?user=RK%20Senthilsharepoint Task completed should be made read only<p>I am creating a task in custom approval wokflow. The apporver edit the task and approve / reject. Once the task is completed i want to make that task as read only. how to do this thro code. </p>Tue, 24 Nov 2009 12:53:32 Z2009-11-25T05:07:52Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/10245d41-65a3-4094-945c-1fcf146807d9http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/10245d41-65a3-4094-945c-1fcf146807d9gordonjohnstonhttp://social.msdn.microsoft.com/Profile/en-US/?user=gordonjohnstonWorkflow user contextI have a workflow and was wondering if I can force it to run as the administrator?  You can obviously do this kind of thing when writing .NET code.<br/><br/>Am I correct in assuming that a workflow will run as the user who triggers it?<br/><br/>What I am trying to do is set permissions on a form within a list (based on info contained within the form) but for some users the workflow will fail and I believe it is because the user is lacking in permissions.  If I raise their permissions through the admin screens I will break the item level security.Mon, 23 Nov 2009 14:26:21 Z2009-11-25T03:15:31Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/48797414-7b02-49cc-8ba4-7a7e2f94f791http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/48797414-7b02-49cc-8ba4-7a7e2f94f791DLewickihttp://social.msdn.microsoft.com/Profile/en-US/?user=DLewickiWorkflow - which manager approves it?We have a Travel Expense Form (infoPath). I want the approval workflow to start with the manager of the one who filled out the form. Obviously there are several managers. How may I automate it to pick the right manager?<br/><br/>Thanks, DaveFri, 20 Nov 2009 15:34:58 Z2009-11-24T21:39:26Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/c0b8ced2-95c7-4723-b64f-a0b9b10812c3http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/c0b8ced2-95c7-4723-b64f-a0b9b10812c3psubburahttp://social.msdn.microsoft.com/Profile/en-US/?user=psubburaWorkflow Condition not workingHi all,<br/> <br/> I have my 'workflow 1' which assigns a form to user and it also adds a task to Tasks list in share point. My second workflow 'workflow 2' is started automatically whenever a new item is added to Tasks list. This workflow updates a column in the Tasks List. Now I would like 'workflow 2' to update List column only if the task item has been added by 'workflow1'. I tried adding conditions in 'workflow 2' to check fields in Tasks list.<br/> <br/> I set a condition to check if the workflow Name of the new item in Tasks equals 'workflow 1' and only then update List column. But it does not seem to work and the List column is updated for every new item added to Tasks even by other workflows. The condition does not seem to work here. Please let me know if I am missing something.<br/> <br/> ThanksTue, 24 Nov 2009 20:24:21 Z2009-11-24T20:24:21Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/0623fed5-db71-4eff-baeb-846caf00e1efhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/0623fed5-db71-4eff-baeb-846caf00e1efTiwari Amithttp://social.msdn.microsoft.com/Profile/en-US/?user=Tiwari%20AmitApproval Workflow process when editing list item<p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Hi,</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">I am in process of defining the approval process of Lists I have in my site collection. Couples of my lists are Master Lists and rests are transactional lists which have Lookup type columns from Master Lists.</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Now I want to define the workflow for approval process of individual list items. Only approved items should be available to outside world via the SharePoint web service. It works absolutely fine with new items. </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Q: How can we apply workflow for existing items when they are edited? As there are no published copy of these lists. Existing items are already been used by someone and when we try to change it the Approval Status changes and the Item won’t be available to anyone. But the actual behavior should allow users to still use the previous version of that item and once new version is approved should replace the previous version of item. What will be best/ automated way of achieving this type of workflow?</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Thanks,</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Amit Tiwari</span></p>Thu, 19 Nov 2009 22:39:57 Z2009-11-24T19:22:11Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/de313a33-c7bb-4e9b-9174-4a2025e20b4dhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/de313a33-c7bb-4e9b-9174-4a2025e20b4dKrisP_68http://social.msdn.microsoft.com/Profile/en-US/?user=KrisP_68Question about the account that declaritive (SPD) workflows run underHi<br/><br/>I have a SPD workflow that I start manually on a list. This workflow simply takes the list and dumps it to xml in a different document library (via a custom action that I have written). The idea here is that that xml can then be processed using xsl via a workflow on that document library. What I am finding is that the second workflow is not executing on my production server. <br/>The error in the log is: Declarative workflows cannot automatically start if the triggering action was performed by System Account<br/><br/>When I started looking into why this works on one machine but not the other I spotted that the the xml document that is dumped into the doc lib has a &quot;Modified By&quot; of my login name on the machine that works but &quot;System Account&quot; on the machine where the workflow doesn't work.<br/><br/>This <a href="http://blogs.msdn.com/sharepointdesigner/archive/2008/09/28/declarative-workflows-and-user-context.aspx">blog</a> gives a very good explanation as to why the workflow triggered by the system account wont start, but what I cant figure out is why the &quot;Modified By&quot; differes like this.<br/><br/>Any ideas? Surly it should be the logged in user account on both machines. Could it be that a particular service or app pool is running under the wrong account.<br/><br/>Thanks in advance for any suggestions or ideas.Tue, 24 Nov 2009 15:02:55 Z2009-11-24T17:04:26Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/88c703e5-16a8-467d-840f-46c9a7fe7603http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/88c703e5-16a8-467d-840f-46c9a7fe7603ddeehttp://social.msdn.microsoft.com/Profile/en-US/?user=ddeeshare point work flow - Approval one time onlyHi,<br/><br/>I would like to use the three state work flow for a share point list.  Three states<br/>New<br/>Inprogress<br/>Complete<br/><br/>When new item is add, email will send to a person for approved.  This is work fine.<br/>Now that everytime I change the state, the approve status change back to &quot;PENDING&quot; and no one can see the change until I have to APPROVE it again.<br/><br/>I would like when the state change, no approved is required and no email send for approve again.  <br/>How do i do this?<br/><br/>Please help.<br/><br/>Thanks,<br/>Ddee<br/><br/>.<br/>Mon, 23 Nov 2009 16:50:59 Z2009-11-24T16:29:29Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/c2ba295d-f09b-4029-9790-2c3fb5292736http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/c2ba295d-f09b-4029-9790-2c3fb5292736Fab Webhttp://social.msdn.microsoft.com/Profile/en-US/?user=Fab%20WebTwo sets of Approvers in a work flowHey All,<br/><br/>I got a request  to have two sets of approvers in a work flow.<br/><br/>One to go to group &quot;A&quot; and after it is accepted by all then to automatically start the work flows for group &quot;B&quot;<br/><br/><br/>Can this be done with designer using  conditional steps ? or which way would you suggest on a moss system<br/><br/>your input would be great <br/><br/>Thanks for your time and energy<br/>Mon, 23 Nov 2009 23:31:10 Z2009-11-24T16:23:04Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/bc22f92c-c512-4ae0-acfa-842c1e337123http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/bc22f92c-c512-4ae0-acfa-842c1e337123Lorin Butehttp://social.msdn.microsoft.com/Profile/en-US/?user=Lorin%20ButeHow to get all instances of a workflow?Hello.<br/> <br/> I'm new to sharepoint and i have a question about workflows.<br/> <br/> I'm trying to build a class library that uses the workflow runtime to get some information about running workflows.<br/> <br/> I want to get all the instances of a running workflow and with the instances get information about the state, possible states and so on.<br/> <br/> I know how to get the last part but i can't get all the instances of a particular workflow. Can you guys help me with that?<br/> <br/> <br/> Thanks.<br/> <br/> <br/> <br/> <br/> <br/> PS: I've been searching for 2 days and i only found how to get the instances of a workflow from an item of a sharepoint list but that's not what i need.<br/> If i wasn't to clear please say so maybe i can reformulate my question.Fri, 13 Nov 2009 16:30:02 Z2009-11-24T15:38:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/d41d22c4-7d42-4b85-8e77-983b07eb7a7chttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/d41d22c4-7d42-4b85-8e77-983b07eb7a7cMichael.Kellyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Michael.KellyHow to edit the "look" of a built in Workflow<p>I am currently using a workflow based on the OOB Approval workflow in Sharepoin 2007.  I would like to know if it is possible to do the following:<br/><br/>Change the subject of the notification Emails<br/>Change the view or edit task page (I wish to change the button text and disable the &quot;Reject&quot; button)<br/><br/>Is this even possible?  If yes, what tools do I need to do this?<br/><br/>Thanks.</p>Tue, 24 Nov 2009 13:55:50 Z2009-11-24T13:55:51Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/43dbeeba-23cf-4c42-898d-b055760ace6dhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/43dbeeba-23cf-4c42-898d-b055760ace6dMohammadJizihttp://social.msdn.microsoft.com/Profile/en-US/?user=MohammadJizihow to add activities to a custom or sequence activity dynamically in sharepoint state machine workflowhi all<br/><br/>i wish anyone could help me in this problem.<br/><br/>i am creating a sharepoint state machine workflow using visual studio 2008.<br/><br/>the workflow is deployed as a feature on sharepoint 2007.<br/><br/>the workflow consists of three state:<br/><br/>1-the first state and the last state are the initial and final states respectively.<br/>2-the second state consists of state initialization activity. in the state intialization activity i have a custom activity that sends an email<br/><br/>question:<br/><br/>what i want to do is that i want to add activities to the custom activity dynamically .<br/><br/>so how can i achieve this.Fri, 20 Nov 2009 12:03:17 Z2009-11-24T08:16:17Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/5e42cf8c-1921-4212-82e1-2914d6929167http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/5e42cf8c-1921-4212-82e1-2914d6929167RaviKondabalahttp://social.msdn.microsoft.com/Profile/en-US/?user=RaviKondabalaHow to Create Custom Work Flow Through Sharepoint DesignerHi <br/><br/> <p class=MsoListParagraphCxSpFirst style="margin:0cm 0cm 0pt 72pt;text-indent:-18pt"><span style="color:#4f81bd"><span style=""><span style="font-size:small;font-family:Calibri">1.</span><span style="font:7pt &quot;Times New Roman&quot;">       </span></span></span><span style="color:#4f81bd"><span style="font-size:small"><span style="font-family:Calibri">Design <strong style="">Casual Labour Request</strong> List + approval steps ( 1<sup>st</sup> Dept. Manager &amp; 2<sup>nd</sup> director) Fields – Company, Position, Duration(Start date &amp; End Date), Reason (free text), Budget rate/day.</span></span></span></p> <p class=MsoListParagraphCxSpMiddle style="margin:0cm 0cm 0pt 72pt;text-indent:-18pt"><span style="color:#4f81bd"><span style=""><span style="font-size:small;font-family:Calibri">2.</span><span style="font:7pt &quot;Times New Roman&quot;">       </span></span></span><span style="color:#4f81bd"><span style="font-size:small"><span style="font-family:Calibri">Once request is approved, it automatically loads to the entry to <strong style="">“Casual Labour List”</strong> enabling HRA to secure the casual worker in terms of the approval.</span></span></span></p> <p class=MsoListParagraphCxSpMiddle style="margin:0cm 0cm 0pt 72pt;text-indent:-18pt"><span style="color:#4f81bd"><span style=""><span style="font-size:small;font-family:Calibri">3.</span><span style="font:7pt &quot;Times New Roman&quot;">       </span></span></span><span style="font-size:small"><span style="font-family:Calibri"><strong style=""><span style="color:#4f81bd">“Casual Labour List”</span></strong><span style="color:#4f81bd"> Fields – Employee No., ID No.: Start Date(Default), End Date(Default), + <strong style="">Casual Labour Request</strong> fields defaulted(uneditable) + “scope Complete” field with actual days worked (only field that is editable after dept. Manager approval), trigger dept managers payment approval </span></span></span></p> <p class=MsoListParagraphCxSpMiddle style="margin:0cm 0cm 0pt 72pt;text-indent:-18pt"><span style="color:#4f81bd"><span style=""><span style="font-size:small;font-family:Calibri">4.</span><span style="font:7pt &quot;Times New Roman&quot;">       </span></span></span><span style="color:#4f81bd"><span style="font-size:small"><span style="font-family:Calibri">Once <strong style="">“Casual Labour List”</strong> is updated by HRA, it once again goes through a secondary approval by Dept Manager only and once Dept Manager approves, none of the fields are editable except for “Scope Complete Field” which is done by <strong style="">HRA</strong>.</span></span></span></p> <p class=MsoListParagraphCxSpLast style="margin:0cm 0cm 10pt 72pt;text-indent:-18pt"><span style=""><span style=""><span style="font-size:small;font-family:Calibri">5.</span><span style="font:7pt &quot;Times New Roman&quot;">       </span></span></span><span style="font-size:small"><span style="font-family:Calibri"><span style="color:#4f81bd">“Scope Complete”<span style="">  </span>field in <strong style="">“Casual Labour List”</strong> after completion of casual service, which HRA completes and thereafter triggers Dept. Manager approval for payment, Once dept manager approves, it triggers payment steps(Finance Dept.) to the casual worker. Dept Manager can change duration to lesser values only for days worked. Scope comments free text for Dept. Manager</span>.<br/><br/>This is my spec <br/><br/> 1)       In this spec the first step how to do the approval work flows in the sharepoint Designer<br/>2)      And remaining steps also create automatically through work flow conditions<br/>Just can u guide me steps for this work flows <br/> <br/><br/>Please help me<br/><br/>Regards<br/> Ravi</span></span></p>Mon, 23 Nov 2009 08:15:08 Z2009-11-24T16:26:11Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/2d7c4f14-3350-4435-bcae-27a041a02bb3http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/2d7c4f14-3350-4435-bcae-27a041a02bb3topolihttp://social.msdn.microsoft.com/Profile/en-US/?user=topoliHow to get modified field's old value ?<p>I am using WSS 3.0 and trying to write a workflow that wakes when an item in a list is modified.  I need to know how to get the old value of the field that was just modified.  Here is my code:<br/><br/>    public Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties workflowProperties = new Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties();</p> <p>    private void codeActivity1_ExecuteCode(object sender, EventArgs e)<br/>    {</p> <p>      SPList listName = workflowProperties.List;<br/>      SPListItem selectedItem = workflowProperties.Item;<br/>      string NewValue = selectedItem[&quot;ProjectName&quot;].ToString();<br/><br/><strong><em><span style="text-decoration:underline">      string OldValue = ??????</span></em></strong><br/><br/>    }</p> <p> </p>Fri, 20 Nov 2009 00:15:15 Z2009-11-24T04:32:50Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/c88db103-1c8f-4991-b547-8f74cf05794fhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/c88db103-1c8f-4991-b547-8f74cf05794fKazazzzhttp://social.msdn.microsoft.com/Profile/en-US/?user=KazazzzAdd MOSS workflow templates to WSS? I need the three workflow templates included in MOSS. <br/>Approval<br/>Collect Feedback<br/>Gather Signatures<br/><br/>Since we are a small organization running WSS 3.0, is there a way to import/add these into our WSS 3.0 environment? In my google searching of this issue, it appears that this is not possible, but did not see anyone specifically asking this question.<br/><br/>Thanks,<br/><br/>Charlie<br/><br/><br/>Mon, 23 Nov 2009 14:02:33 Z2009-11-24T02:10:51Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/b0bd1619-b519-45bf-8419-57b42b7fd80ahttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/b0bd1619-b519-45bf-8419-57b42b7fd80adesign4funhttp://social.msdn.microsoft.com/Profile/en-US/?user=design4funUser Article Acknowledgement - Record name to listWanting to create a workflow??<br/> That will record a person's name when they read an article after they acknowledge they read it at the bottom. Like they have to put in the name from the directory. Small directory so this should be easy??<br/> <br/> I am going to add a column to the article list creation that will allow for this as a choice yes/no for acknowledge when you create the new article. That way it will populate on the screen I hope?<br/> <br/> What is the best way to go about something like this?<br/> <br/> Anyone have an examples?Fri, 20 Nov 2009 16:22:01 Z2009-11-23T22:21:49Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/3f09a44d-4f5e-484d-a77d-ccae02cf2cd2http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/3f09a44d-4f5e-484d-a77d-ccae02cf2cd2L01sLan3http://social.msdn.microsoft.com/Profile/en-US/?user=L01sLan3workflow email reminders for recurring eventsI have a workflow which was created to send out email reminders if a task was approaching but I can't get it to work for recurring events.<br/><br/>anyone have any guidance for setting up recurring reminder email workflows using Sharepoint Designer?Wed, 18 Nov 2009 20:04:17 Z2009-11-23T17:16:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/98341620-b82f-4f25-be7f-8354c3f144f1http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/98341620-b82f-4f25-be7f-8354c3f144f1UllasSJoshihttp://social.msdn.microsoft.com/Profile/en-US/?user=UllasSJoshiworkflow failed on start if list item added proramaticallyHi friends,<br/><br/>am stuck in this issue from past 2 days.<br/>my work flows gets triggered when i add list item manually.<br/>but when i add list item programatically it says &quot;<a href="http://social.msdn.microsoft.com/Employee Services/IT/_layouts/WrkStat.aspx?List={3E9ACC0F-8372-4369-8725-CC16CC628AB9}&amp;WorkflowInstanceID={CE9E0CF0-797B-450E-B5AB-44D207525F7A}"><span>Failed on Start (retrying)</span></a>&quot;<br/><br/><br/>thanks in advance... <hr class=sig> ullasjoshiMon, 09 Nov 2009 10:58:07 Z2009-11-23T17:11:08Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/021d6e6d-376e-4154-8a52-0b3c14887286http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/021d6e6d-376e-4154-8a52-0b3c14887286Bhadramhttp://social.msdn.microsoft.com/Profile/en-US/?user=BhadramHow to create a numeric field (like a UniqueID field) which automatically populates and automatically in the form without the user involvment. Scenario: When a user come to create a new item he is asked to fill a form. In that form UniqueID should get populated automatically by sharepoint as 1. When a second user comes the same form should now show UniqueID to be 2. So on.<br/> <br/> The best example is like Employee ID which is unique.<br/> <br/> Only through SP DESIGNER or SP.<br/> <br/> Through GUI only no code please.<br/> <br/> Thanks in advance.Fri, 20 Nov 2009 01:07:32 Z2009-11-23T16:17:44Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/4de19ed8-8269-46a4-9339-ad01ea29b100http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/4de19ed8-8269-46a4-9339-ad01ea29b100Loïc M.http://social.msdn.microsoft.com/Profile/en-US/?user=Lo%u00efc%20M.CopyTo method error, keynotfoundexceptionHi,<br/> <br/> I have a problem when i try to use CopyTo method, each first time i use a workflow with it  CopyTo method throw an keynotfound exception.<br/> If i retry, no problem.<br/> The exception only occurs the first time.<br/> <br/> Any idea about this problem ?<br/> <br/> Regards,<br/> <br/> Loïc M.Tue, 17 Nov 2009 08:57:22 Z2009-11-23T15:29:41Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/a80527bf-06fb-4287-aa9a-8a4d95ff45b1http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/a80527bf-06fb-4287-aa9a-8a4d95ff45b1Lorin Butehttp://social.msdn.microsoft.com/Profile/en-US/?user=Lorin%20ButeHow to set a state for a StateMachineWorkflowInstance?Hello everybody.<br/> <br/> I have built a desktop application with a few buttons that do the creation of the workflow runtime, the creation of the workflow instance, the creation of the StateMachineWorkflowInstance and so on. I press these buttons in order. After those buttons i press the set state to... button. unfortunatly the code that i have written for this button doesnt work. After setting the state, reading the currentstatename reveals that the property is null.<br/> <br/> Down bellow is the code. Can you please let me know what i'm doing wrong?<br/> <br/> PS: I'm a beginner in SharePoint and Workflows.<br/> <br/> <br/> <br/> WorkflowRuntime runtime;<br/> WorkflowInstance instance;<br/> StateMachineWorkflowInstance stInstance;<br/> <br/> <br/> //the start workflow runtime and workflow instance button<br/> private void btnStartWorkflow_Click(object sender, EventArgs e)<br/>         {<br/>             try<br/>             {<br/>                 runtime = new WorkflowRuntime();<br/> <br/>                 string connectionString = &quot;Data Source=ONTWIKKEL3\\OFFICESERVERS;Initial Catalog=SqlPersistenceService;Integrated Security=True&quot;;<br/>                 SqlWorkflowPersistenceService sqlPersistenceService = new SqlWorkflowPersistenceService(connectionString, true, new TimeSpan(0, 0, 0, 360, 0), new TimeSpan(0, 0, 0, 10, 0));<br/>                 SqlTrackingService sqlTrackingService = new SqlTrackingService(connectionString);<br/> <br/>                 runtime.AddService(sqlPersistenceService);<br/>                 runtime.AddService(sqlTrackingService);<br/>                 runtime.StartRuntime();<br/> <br/>                 instance = runtime.CreateWorkflow(typeof(Workflow1));<br/> <br/>                 instance.Load();<br/>                 instance.Start();<br/>                 lblStatus.Text = &quot;Workflow started with instance id: &quot; + instance.InstanceId;<br/>             }<br/>             catch(Exception ex)<br/>             {<br/>                 lblStatus.Text = ex.Message;<br/>             }<br/>         }<br/> <br/> <br/> <br/> <br/> //the start StateMachineWorkflowInstance button<br/> private void btnCreateInstance_Click(object sender, EventArgs e)<br/>         {<br/>             try<br/>             {<br/>                 stInstance = utils.CreateInstance(runtime, instance, &quot;&quot;);<br/>                 lblStatus.Text = &quot;Instance created with id: &quot; + stInstance.InstanceId;<br/>             }<br/>             catch (Exception ex)<br/>             {<br/>                 lblStatus.Text = ex.Message;<br/>             }<br/>         }<br/> <br/> <br/> <br/> <br/> //the set state to RevieweApproval button<br/> private void btnSetStateReviewerApproval_Click(object sender, EventArgs e)<br/>         {<br/>             try<br/>             {<br/>                 <br/>                 //either this<br/>                 StateActivity state = (StateActivity)stInstance.StateMachineWorkflow.Activities[&quot;stateActivity_ReviewerApproval&quot;];<br/> <br/>                 stInstance.SetState(state);<br/>                 <br/>                 //or this<br/>                 stInstance.SetState(&quot;stateActivity_ReviewerApproval&quot;);<br/> <br/>                 if (stInstance.CurrentState != null)// HERE IS WHERE THE CURRENT STATE IS NULL<br/>                 {<br/>                     lblStatus.Text = &quot;Current state is: &quot; + stInstance.CurrentStateName;<br/>                 }<br/>                 else<br/>                 {<br/>                     lblStatus.Text = &quot;The state could not be set.&quot;;<br/>                 }<br/> <br/>                 instance.Resume();<br/>             }<br/>             catch (Exception ex)<br/>             {<br/>                 lblStatus.Text = ex.Message;<br/>             }<br/>         }<br/> <br/> <br/> <br/> <br/> Thanks!Mon, 23 Nov 2009 15:08:17 Z2009-11-23T15:08:18Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/55e234d4-8942-48eb-a8f5-d5f02fdcf0b0http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/55e234d4-8942-48eb-a8f5-d5f02fdcf0b0R3BSolutionshttp://social.msdn.microsoft.com/Profile/en-US/?user=R3BSolutionsString replacement using SPDIs it possible to replace part of a string in a workflow variable using SharePoint Designer?  I need to be able to replace a space with a %20%.  Can this be done using Build Dynamic String or some other way.  Is there an example that someone can provide?<br/><br/>ThanksFri, 20 Nov 2009 13:44:34 Z2009-11-23T10:35:22Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/7821cb8e-48f5-4e0a-a833-ece12eec493fhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/7821cb8e-48f5-4e0a-a833-ece12eec493fxillixxhttp://social.msdn.microsoft.com/Profile/en-US/?user=xillixxWorkflow error&quot;Errors were found when compiling the workflow. The workflow files were saved but cannot be run&quot; <div><br/></div> <div>&quot;Unexpected error on server associating the workflow&quot;</div> <div><br/></div> <div>what should i do? im new with sharepoint so i didn't know where to start to solve this error.</div> <div><br/></div> <div>Thank you.</div>Wed, 21 Oct 2009 01:22:07 Z2009-11-23T10:02:34Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/6d32ebfd-35df-4c52-8432-27ef42ebbb26http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/6d32ebfd-35df-4c52-8432-27ef42ebbb26SheetalKhttp://social.msdn.microsoft.com/Profile/en-US/?user=SheetalKWorkflows and Content Query Web PartPlease can you let me know how to create announcements workflow on a team site and use content query web part to display the team site announcement on the home page. This is what the process should be: When the announcement is created on the team site, it goes into a workflow, once the workflow is approved, it should display on the home page using content query web part, if the workflow is in pending or not approved, it should not show on the home page. Tue, 17 Nov 2009 12:05:43 Z2009-11-23T09:13:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/2882997b-865f-45d9-af9a-e27595b18681http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/2882997b-865f-45d9-af9a-e27595b18681Swati Jainhttp://social.msdn.microsoft.com/Profile/en-US/?user=Swati%20JainSystem.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Office.Workflow.FeatureHello All, <br/><br/>on my system only wss is installed , when i try to deploy the sequential workflow, i got the following error, <br/><br/>Please suggest me , where i will get this dll Feature 'cd19ae89-b437-4113-b063-e740929cc27c' could not be installed because the loading of event receiver assembly &quot;Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; failed: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. <br/><br/><br/>The system cannot find the file specified. File name: 'Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject() WRN: Assembly binding logging is turned OFF. <br/><br/>To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].Fri, 20 Nov 2009 13:14:50 Z2009-11-23T06:41:13Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/80bb1ab7-7d25-4e0c-934d-a80d1b4a27f7http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/80bb1ab7-7d25-4e0c-934d-a80d1b4a27f7AP_Workflowhttp://social.msdn.microsoft.com/Profile/en-US/?user=AP_WorkflowReg:How to load persited workflow instance with mysql database.Hi,<br/><br/>I am new to windows workflow.I have implemented StateMachineWorkflow to my application<br/><br/>In this we have used Persistence Service also.But When the InstanceID is not used for 2 miniutes it is give the same state till releated event get fires .<br/><br/>If second time i fire the event and run the scheduler.runworkflow()(Manual Workflow Scheduler) for the same workflowinstance it is executing the state and pass to next state.<br/><br/>I think when i am executing the workflow instance for particular event it got unloaded from the memory and saved in persistence store DB.<br/><br/>But again when i am trying to raise the event for the same  instance it is executing the state but it is not forwarding to next state.<br/><br/>If again i try to raise the event for the same instance it is working fine and forwrding the state.<br/><br/>I am using ManaualSchedular Service ang SQL Persiatence Services as runtime Services.<br/><br/>After raising the related workflow event   i am running the schudular.runworkflow(InstanceID) also.<br/><br/><br/>Please some give me way how can i resolve this problem. <br/><br/><br/>Thanks &amp; Reagrds<br/>AP_WorkflowMon, 23 Nov 2009 06:07:20 Z2009-11-23T06:07:20Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/77773568-5657-496f-b58a-b82d423d7307http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/77773568-5657-496f-b58a-b82d423d7307Bhadramhttp://social.msdn.microsoft.com/Profile/en-US/?user=BhadramHow to let people involved in the workflow know that a specific value in the item has been changed.How to let people involved in the workflow know that a specific value in the item has been changed.<br/> <br/> Scenario 1: User A changes field called Name, after creation has been already done. Now i want everyone in the workflow to get email stating that this particular field (Name) has been changed by this particular person (User A) on this particular item (Item 1).<br/> <br/> Scenario 2: User B changes field called Country, after creation has been already done. Now i want everyone in the workflow to get email stating that this particular field (Country) has been changed by this particular person (User B) on this particular item (Item 2).<br/> <br/> Through SP Designer only. No coding please.<br/> <br/> Thanks in advance.<br/>Fri, 20 Nov 2009 01:11:24 Z2009-11-23T04:49:28Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/c4df8e68-f7da-43ad-9c27-1ff0ba70ec54http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/c4df8e68-f7da-43ad-9c27-1ff0ba70ec54chrislathamhttp://social.msdn.microsoft.com/Profile/en-US/?user=chrislathamEdit Properties in Document ErrorHello,<br/>I'm not sure how to describe my situation, but I'll give it a try. <br/><br/>I have a 3-state workflow in Sharepoint. Once I've clicked on Edit Properties in the document I select two <span style="text-decoration:underline">different</span> email addresses for whom I would like to send the document to. I then start the workflow. Once one of the people, I've sent the doc to, updates the form both email addresses get updated with that <span style="text-decoration:underline">one</span> persons name.<br/><br/>Can anybody tell me why this is happening? Does anyone else have this problem?<br/><br/>Any help is greatly appreciated!<br/>ChrisThu, 19 Nov 2009 20:04:28 Z2009-11-22T16:59:53Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/6415f821-9c97-4865-9b77-99b04ecfe886http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/6415f821-9c97-4865-9b77-99b04ecfe886Jeff Hepnerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jeff%20HepnerHow do I terminate an orphaned SPD-created workflow?I created a simple workflow with SharePoint Designer 2007. It fires off whenever a new browser-based InfoPath 2007 form is added to a form library in MOSS 2007 Enterprise.  The workflow waits until a specific field is given a value by the user, then continues.  No problem. <div><br/></div> <div>However, some forms have been deleted before the workflow could complete.  I know how to terminate a workflow when the item it was attached to still exists.  But I cannot figure out how to terminate these orphaned workflows.</div> <div><br/></div> <div>If this is a common scenario, how do others prevent it from happening?</div>Sun, 22 Nov 2009 03:50:15 Z2009-11-22T16:27:16Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/8ec834b6-5408-4079-bdfb-b88d341b36bfhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/8ec834b6-5408-4079-bdfb-b88d341b36bfBruce VB1http://social.msdn.microsoft.com/Profile/en-US/?user=Bruce%20VB1This task is currently locked by a running workflow and cannot be edited<p>Hey, I created a workflow that would I would get the above message after a few days of maddness,  I tried the HelloWorldSequential from the ECM Starter Kit and am getting the same message. (If first you don't succeed, try reading the instructions)  But alas I get the same error.</p> <p> </p> <p> Can anyone shed some light on this..</p> <p> </p> <p>Steps to recreate: </p> <p>1) Deploy the HelloWorldSequential from the ECM</p> <p>2) Associate to a document library and start a workflow on a doc.</p> <p>3) Fill out the init Form and submit (so far so good, debugs as well)</p> <p>4) Now select  task review, add feedback info and submit.</p> <p>5) <span class=ms-sectionheader>Please wait while your task is updated... is displayed for about 30 seconds / debugger is not entered. / onTaskChange is not fired </span></p> <p><span class=ms-sectionheader>6) Select the task again, press submit on the form and </span></p> <p><span class=ms-sectionheader>  &quot;This task is currently locked by a running workflow and cannot be edited&quot;  error is displayed.</span></p> <p><span class=ms-sectionheader></span> </p> <p><span class=ms-sectionheader>Terminate Workflow start again - Debugger works but still the same problem.</span></p> <p><span class=ms-sectionheader></span> </p> <p><span class=ms-sectionheader>Anyone have the same type of issue....   </span></p> <p><span class=ms-sectionheader></span> </p> <p><span class=ms-sectionheader>Thanks!!</span></p> <p><span class=ms-sectionheader></span> </p> <p><span class=ms-sectionheader>Bruce VB</span></p> <p><span class=ms-sectionheader></span> </p> <p><span class=ms-sectionheader></span> </p> <p><span class=ms-sectionheader></span> </p> <p><span class=ms-sectionheader></span><span class=ms-descriptiontext><br><br> </p></span>Fri, 11 May 2007 13:46:54 Z2009-11-22T10:37:53Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/27457bfc-9aee-4a02-aed5-7372ccb2e455http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/27457bfc-9aee-4a02-aed5-7372ccb2e455f00zhttp://social.msdn.microsoft.com/Profile/en-US/?user=f00zworkflow task list content type advantage?I would like to know why having a content type for workflow task list is better than using regular default task list? I got this from SDK:<br/><br/>&quot;For ease of programming, we strongly recommend that developers create content types for their task types, and that each task content type schema exactly match the schema of its designated edit task form. This approach provides one-to-one mapping of properties, and eliminates the need to parse the extended properties field to extract additional values.&quot;<br/><br/>can someone show in sample code how both are different. I have used ExtendedProperties to transfer data to task forms but I would like to know how it will work if i dont use ExtendedProperties.Fri, 20 Nov 2009 17:15:58 Z2009-11-21T21:53:36Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/44f10d82-faa2-4ad9-92cd-151716e7bbc0http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/44f10d82-faa2-4ad9-92cd-151716e7bbc0George2http://social.msdn.microsoft.com/Profile/en-US/?user=George2how to use SharePoint to manage work items (tasks)<p>Hello everyone,</p> <p>I am using SharePoint 2007 Enterprise + Publishing portal template + Windows Server 2008. I want to utilize SharePoint to manage work items and I want to let gurus here to recommend me some good tutorials for newbie like me for this field (better through configuration ways, not through coding).</p> <p>My requirements are,</p> <p>1. Manager could assign task to workers, and manager could edit task description, due date;<br/>2. Workers could see the tasks assigned to them, and could update task execution status (may attach some documents);<br/>3. Manager could review all tasks assigned by the manager, and updates by workers;<br/>4. Better to have a calendar view with the tasks.</p> <p>thanks in advance,<br/>George</p>Sat, 21 Nov 2009 16:05:39 Z2009-11-22T13:45:36Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/3359f929-3e41-495d-adf3-1cb6b8344082http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/3359f929-3e41-495d-adf3-1cb6b8344082run4ithttp://social.msdn.microsoft.com/Profile/en-US/?user=run4itSP Designer workflow uncertaintyI am trying to build workflows on a list (SP Designer). This is my first attempt and I am not sure when something should be another workflow, or when it should/could be an additional step in an existing workflow.  I need it to work like this:<br/> <br/> Employee A creates list item which consists of quite a few columns.  When Employee A creates the list item it kicks off an automatic email to Employee B.  I've got that workflow (#1) done and it works.  <br/> <br/> Now when Employee B returns to the list to edit it, Employee A needs to be notified.  Should a separate workflow(#2) be created for this, or could Employee A just use auto email alert or RSS alert to be notified.  Is one method better than the other?<br/> <br/> Also, if Employee B selects a Yes form a Yes/No column item in the list, it needs to kick off an email to Employee C.  Is that a separate workflow (#3), or is that an additional step in workflow #2?  The problem I envision here is that Employee A wants to be notified every time the list item is edited.  However, we only want Employee C to receive that email notification once.<br/> <br/> Thank you for any advice on setting this up.Fri, 20 Nov 2009 00:00:35 Z2009-11-21T17:18:21Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/563b18d6-04e5-4eb1-a3b2-4c3f838b009fhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/563b18d6-04e5-4eb1-a3b2-4c3f838b009fR3BSolutionshttp://social.msdn.microsoft.com/Profile/en-US/?user=R3BSolutionsError Compiling Workflow in SPD<br/>When I try to compile a workflow in SPD 2007 I get an error: (-1, -1) Compilation failed. Cannot execute a program. The command being executed was &quot;C:\WINDOWS\Microsoft.NET\Framework64\v3.5\csc.exe&quot; /noconfig /fullpaths @&quot;C:\WINDOWS\TEMP\vzanoz9f.cmdline&quot;.)<br/><br/>I checked the folder on the computer I'm using SPD on - \windows\microsoft.net\framework64\v3.5 and the csc.exe file is there.<br/><br/><br/>Fri, 20 Nov 2009 21:15:40 Z2009-11-21T15:28:05Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/a6059aad-e944-4868-8f3a-7872ef8fd1a1http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/a6059aad-e944-4868-8f3a-7872ef8fd1a1George2http://social.msdn.microsoft.com/Profile/en-US/?user=George2how to add picture to a SharePoint list?<p>Hello everyone,</p> <p>I am using SharePoint 2007 Enterprise + Publishing portal template + Windows Server 2008. I want to add a list with two columns, one column displays picture, and the other column displayes rich text. I did not find a way to display picture itself into a list (picture type column of list seems only add a link of picture to the column, not the picture itself). Any ideas how to implement? And is it possible to implement paging on list -- e.g. display 20 items on each page, and if 100 items, display by 5 pages (end user could use page-up and page-down to control paged view)?</p> <p>thanks in advance,<br/>George</p>Fri, 20 Nov 2009 18:35:27 Z2009-11-21T13:43:23Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/23e365a9-61ea-434a-83c3-c448efbbb758http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/23e365a9-61ea-434a-83c3-c448efbbb758f00zhttp://social.msdn.microsoft.com/Profile/en-US/?user=f00zworkflow list designI need to develop a workflow that will approve parts of a form sequentially. for example, i have a form with 4 parts(collection of fields) which will be approved by 4 different departments.  Each department will only be able to edit their part while reading the previous departments data. <br/><br/>So I am thinking of making 1 list that will have all 4 department fields in it and also make 4 task list content types to save this data from each department which will be updated to the main list as the departments fill them. My question is if its the right approach? if not then any recommendations?<br/>Thu, 19 Nov 2009 20:11:13 Z2009-11-20T20:29:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/d09ab857-36f6-4364-88de-607aa6050b85http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/d09ab857-36f6-4364-88de-607aa6050b85RRosebeckhttp://social.msdn.microsoft.com/Profile/en-US/?user=RRosebeckThree-state workflow error on InfoPath Form libraryRelevant details:  MOSS 2007; InfoPath 2007<br/><br/>Situation:  I have a form library that has several workflows associated with it, one of which is the three-state workflow.  Everything works fine for the most part.  However, there is one very specific scenario that seems to casue a problem.  Basically, if a user has a form open and they try to complete the assigned task, the three-state workflow will fail and report that an &quot;Error Occurred&quot;.  Reviewing the workflow history and reports provides really no detail as to what happened.  Rather, you have to look through the logs and that is where you'll find the following exception:<br/><br/> <pre>Microsoft.SharePoint.SPException: The file &quot;http://aUrl.com/Projects/Requests/Request-2009-11-18T10_15_50.xml&quot; is checked out or locked for editing by someone. ---&gt; System.Runtime.InteropServices.COMException (0x81020036): The file &quot;http://aUrl/Projects/Requests/Request-2009-11-18T10_15_50.xml&quot; is checked out or locked for editing by NT_GATEWAY\rrosebeck. at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32&amp; plID, String&amp; pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object&amp; pvarAttachmentNames, Object&amp; pvarAttachmentContents, Object&amp; pvarPropert... ies, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32&amp; plID, String&amp; pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object&amp; pvarAttachmentNames, Object&amp; pvarAttachmentContents, Object&amp; pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) --- End of inner exception stack trace --- at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32&amp; plID, String&amp; pbstrGuid, Gui... d pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object&amp; pvarAttachmentNames, Object&amp; pvarAttachmentContents, Object&amp; pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) at Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32&amp; ulID, Object&amp; objAttachmentNames, Object&amp; objAttachmentContents, Boolean suppressAfterEvents) at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents) at... Microsoft.SharePoint.SPListItem.Update() at Microsoft.SharePoint.Workflow.Application.IssueTracking.IsTaskCompleted(Guid taskId, SPWorkflowTaskProperties creationProps, Hashtable properties, String executor, String&amp; outcome) at Microsoft.SharePoint.Workflow.Application.IssueTracking.CheckFlags(Object sender, EventArgs e) at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e) at System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext) ... at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime) at System.Workflow.Runtime.Scheduler.Run() </pre> <span style="font-family:Courier New">What makes this situation even more flaky (at least to me) is that if you actually go and open the form, an information panel is displayed that provides you with a button to “Edit (the) Task” associated with the form.  That’s a convenient feature, but if you actually use that approach to complete the task (and the form is still open) you’ll fall into the trap mentioned above and hose the workflow.<br/><br/>So my question is, how can I keep the workflow from failing?  Obviously, I can tell my users to close the form before completing the task.  But, is that really a solution?  Shouldn't the workflow be able to handle that situation?<br/><br/>Any help would be appreciated.</span>Thu, 19 Nov 2009 18:04:20 Z2009-11-20T19:50:57Z