.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

Approval workflow with moderation enabled goes to infinite loop

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :C#

We are using WSS 3.0 and custom approval workflow from the SDK. The workflow is configured on a document library with the Moderation enabled. The workflow is set to trigger on item edit and new item creation.

The workflow works fine, sometimes goes into infinite loop. I know this was a known issue/bug with approval workflow and there was a patch released for this - KB 955586

We have WSS 3.0 SP 2 and i assume the above patch is included in the SP 2.

We are still facing the issue, should i explicitly install the above patch? What is the workaround for this issue?

Any help is highly appreciated.



View Complete Post

More Related Resource Links

Stuck in Page Approval Workflow "Do-Loop"

My colleagues and I are building an intranet site. I have created a page, and am attempting to submit it, so my colleague can add content. So far I have gone through this process 18 times (to no avail): 1) Checked Page In 2) Submitted Page on the Publish Tab 3) Opened Status window on Publish Tab. Selected the open Approval Workflow. Selected Edit. Selected Approve. Hit OK. I receive confirmation emails -- yes, the page has been submitted. yes, the page has been approved. Checking back at the Status page, the workflow shows that it is complete/approved HOWEVER -- my colleague cannot access the page. It shows on her screen that the page is checked out and I am editing it. When I click on the page link, it opens immediately in the EDIT PAGE view (with Editing Tools already launched)...it will not allow me to get out of this mode. Also, if this is germane, the auto-generated URL ends in "ControlMode=Edit&DisplayMode=Design"...

Trying to send email using Sharepoint Designer 2007 workflow and email enabled list


I have a a list that recieves email. I have few fields that shows me the originator: "E-Mail From" and "E-Mail Sender".

I am trying to create a workflow that will generate an auto reply to the originator but the SPD fails to recognize the email address in these two fields. It's either truncating part of it or uses the html ( href=mailto:Demo@DemoSomething.com) in the To field.

Thank you,


Serial approval workflow keeps running


I have a serial approval workflow created out of the box. The setting cancell this workflow when the document is rejected is selected. But if one of the approvers rejects it the workflow keeps running. After this is it will give acces denied errors for the other approvers.

So for example what is happening. The workflow is started and sends a email to persone 1. This persone approves so the workflow sends a email to persone 2. Persone 2 decided to reject the document. Now i want the workflow to be cancelled, but it keep running and sends a email to persone 3 for approval. If persone 3 opens the workflow he get's a acces denied error, i guess because of the reject.

Anyone has a idea what is happening here?

Whats the reason for this infinite loop?

hi friends, i have the following fucntion that tokenize a CSV string and return a table of values create function fn_get_int_table_frm_csv ( @csv_values nvarchar(max) ) returns @indexes table (idx int identity(1, 1) primary key, Role_id int) as begin declare @ret nvarchar(max) declare @comma_pos int declare @token nvarchar(max) set @ret = @csv_values while len(@ret) > 0 begin if( len(@ret) <> 1 ) begin -- gets the first occurance of the "comma" in the @ret set @comma_pos = charindex(',', @ret); -- gets the first values that was seperated in the string set @token = substring( @ret, 1, @comma_pos - 1 ) -- add that to the return table insert into @indexes values ( convert(int, @token) ) -- set a new starting position set @comma_pos = @comma_pos + 1 -- Tokenize the string from the new starting position set @ret = substring( @ret, @comma_pos, len(@ret) - (@comma_pos - 1) ) end else begin set @token = @ret -- add that to the return table insert into @indexes values ( convert(int, @token) ) end end return end go when i execute this by passing '1,2,3,4' the argument, it goes to an infinite loop, how do i fix it? thanks

Workflow Approval Process

I have created a workflow for approval of a list.  I have listed two persons who can approve/reject and item.  My intent was to have either person be the appover.  Sharepoint apparently see's it differently; they need both persons to approve before the item can be finalized as either rejected or approved.  Is there a way to make it so that one of two people listed can approve a partiuclar workflow process??????   Thanks in advance, and yes, I am very, very new at this!

Any good Approval-type workflow tutorials for VS 2010?

Greetings.  I'm looking for some good tutorials (or books) on creating SharePoint 2010 Approval workflows in Visual Studio 2010.  I've spent a few hours digging through the search results on bing/google, but almost all of the examples (including content from Microsoft) show a very simple workflow in Visual Studio 2010 that doesn't contain approval steps.  I am looking for a more comprehensive tutorial on how to build a workflow that contains approval steps and evaluates the column values (i.e. evaluate a list column  if(Total Cost > 10000)) to determine branching.  InfoPath integration is a bonus but not required.  Anyone have any good links with solid tutorials?  Thanks in advance.

workflow approval multi users

I whant to build a workflow, 2 or more users must recieve a mail that there is a new document to approve. but when 1 user approved it, the workflow must end. and the approval from the other users must end olso? is this possible, i think i'm missing something. can it also be done with desigener or visual studio? regards

Error customizing Approval Workflow in SharePoint Designer

When attempting to customize OOTB Approval Workflow, message "Workflow is read only?"  Request copy errors with "Server could not complete your request" Details button produces blank.  Any clue?  I am the site collection administrator for the site and the secondary farm administrator.

OOTB Approval Workflow - Approval status could not be updated

I've setup up a standard OOTB (out of the box) approval workflow on a Pages library, in order to manage the approval of all pages created and updated.  This operates as expected, and the users are mostly happy, execpt for one scenario: Once a page has been submitted for approval, if the approver wants to edit the page, it stops the workflow (after prompting) which then requires the workflow to be started again.  They would like it so the approver can edit and then approve, without restarting the whole workflow process. There is a setting in the approval workflow configuration of the 'Complete the Workflow' section in the 'Cancel this Workflow when the' area, and by unchecking the 'Document is changed' option, I believe this should enable approvers to edit the page and then approve the page, without stopping the workflow  However, the workflow appears to operate as expected, except the page does not automatically get approved.  By looking in the workflow history, I can see the following error: Post-completion activity performed. Approval status could not be updated. I've tried this on two separate MOSS 2007 Enterprise farms, both are publishing sites and I'm running as a site collection administrator, both with the same results. Is anyone else getting this, is this normal?! Is there another way to approach this, without having to go

Approval workflow is not passing task instructions to workflow task page (WrkTaskIP.aspx)

Hi, Very weird issue. Never happened before. I have Document Approval workflow, based on built-in approval workflow, which is available in document libraries of every site in the site collection. You might know that when you kick off approval (even collect feedback) workflow, you can enter task instructions, which will be passed on to the workflow task page (WrkTaskIP.aspx), and also included in the email, which will be sent to approvers (reviewers in case it is a collect feedback workflow). I know that the users used to enter task instructions, and before, it was appearing in the workflow task page where you approve/reject it. Recently, they noticed that the task instructions textbox was being empty, though the instructions were being entered when the workflow was started. Moreover, it stopped showing task instructions for other tasks that existed for a long time. BTW, this is not the same in every environment we have, but I could not find any difference in the settings when I compared them. Has anybody faced this problem? Please help if you know the solution. Thank you!!! Regards, R.D.M.

Approval Workflow Failed to Start

they are the standard worflows in sharepoint we have suddenly starting getting the message Workflow Failed to Start retrying. the workflows it says not started we are the manually able to start them i tried deleting and recreating the workflows but still come up with this message there are 8 sites and they all have the same problems i had a look in the log and have this error 8e2r    Medium      Possible mismatch between the reported error with code = 0x81070504 and message: "There is no Web named "/Claims/default.aspx"." and the returned error with code 0x80070002.      01/29/2010 09:46:06.62     w3wp.exe (0x16C8)                           0x0288    Windows SharePoint Services       General                           8e2s    Medium      Unknown SPRequest error occurred. More information: 0x80070001   

Sharepoint Approval Complex Workflow Requirement

I have a very complex requirement of workflow to be developed. Here is it... There is a Sales Order form which user fills in. This form should have a header section which is static. Body section consist of questions which should be configurable. There are 2 answers to such questions. 1. Standarad & Other Exception. If user selects exception then more number of fields should be displayed which again should be configurable. For every exception answer to the question, there should be a provision to configure approver with a certain Role... e.g. GM, Controller etc.. This role would then have actual approvers who can change any time and as a result need to be again defined in config database. Again they would be based on the Business unit that form is filled in. Finally more questions can be added by admin which creates a new version of the form and from the day its released, all new records should show new versions however old should continue old. What would be the best sharepoint solution approach for this requirement?

Controlling Content Approval in custom SPD workflow

I've designed a custom workflow using SharePoint Designer 2007 on MOSS 2007 to perform the following: User uploads a document to a document library. Workflow triggers and waits for designated Approvers to either Approve or Reject the document. IF REJECTED, the user that uploaded the document is sent an e-mail and the document is deleted from the document library. IF APPROVED, the document is moved to a second, "secured" document library. This all works fine except for one thing. I want to record in a custom column who actually approved the document. As the workflow starts as soon as the document is uploaded to the document library then the workflow is running under the context of that user - not the user who approves or rejects the document. Does anyone have any idea how I could capture who approves this document through my custom SPD workflow?

SharePoint 2010 email enabled list with workflow has incorrect User ID when items are emailed to the

I have set up an approval workflow for a document library that has email enabled. Emails come into the document library fine, however, if an item is emailed to the library the workflow kicks off with the initiator as "System Account" rather than the person who submitted the email. This makes the error of "The e-mail message cannot be sent. Make sure the e-mail has a valid recipient." come up. If someone submits a document directly to the library (by logging into sharepoint and submitting) everything works fine. The person submitting by email is a valid sharepoint user and the profile shows the correct email address. The Created by and Modified by fields show the correct person (rather than System Account), it's only the workflow User ID that shows incorrectly if document is emailed to library. Any help or ideas would be appreciated. Thanks

approval workflow showing modified name as system account

Hi, I have an approval workflow for page library, when normal user, who have contribute permissions has modified the page content , but the version history of the page showing the modified name as system account instead actual name. Here i need to display actual user name. thanks.

Approval Workflow Due Dates

I have a InfoPath forms library and I also attached the global approval workflow to the form content type, and it is triggered when a new item is created in the list. My problem is that I want the user to have the option to change the due date of the tasks each time a new item is created. Is there an easy way to do this, possibly with a configuration checkbox somewhere? When I creae the workflow, it gives me the option to set "Duration Per Task", but this is no good because it's a static number of days for all new items created in the forms library. Any ideas would be helpful. Thanks, Igor

Activating an approval workflow on adding a new content type


How can I associate a workflow with the content types list? My scenario is that I allow users to add newcustom content types but they are needed to be first approved before they get added to the list of site content types. I couldn't find a way to associate a workflow with the site content types in Site Settings -> Site Content Types.

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