답변됨 SP Designer 2010 approval workflow giving "Error Occurred(retrying)"

  • Friday, September 07, 2012 8:44 AM
     
     
    Hi 

    My requirement is to change the Due Date value in Workflow task to one of the column value in my document library.

    Steps Tried: 

    1. Opened SP Designer 2010 and opened my site.

    2. Clicked on Workflows->Approval Workflow-> prompted me to have a copy of the existing workflow->OK

    3. In "Change the behavior of a single task"->Step-Before a Task is assigned, added an action saying that Due Date=Expiry Date(this is the column from my document library)

    4. Save->check for errors->publish

    5. Opened my site->document-library->configured the custom approval workflow on new item addition, while adding the approver ended with this error which is posted here http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/d7ed9665-f847-4c22-b8b8-efa2484e522d 

    6. I tried below changes in workflow config.xml file and the error got resolved.

    <d:Approvers>
      <d:Assignment>
        <d:Assignee/>
        <d:Stage xsi:nil="true"/>
        <d:AssignmentType>Serial</d:AssignmentType>
      </d:Assignment>
    </d:Approvers>

    7. When i try to add the document for the first time in the library after all the above steps are done, workflow status in the document library shows "In Progress" but later on if i add any no.of documents i get "Error Occurred(retrying)" in the status column, no tasks get created.

    Can any one help me what is the mistake if any i have done? How to get the solution for my requirement.

    Thanks in advance



    Thanks, Ranjana


    • Edited by Ranjana Hegde Friday, September 07, 2012 8:46 AM modified text
    •  

All Replies

  • Monday, September 10, 2012 7:01 AM
     
     

    Hello,

    Can anyone please respond to my query. I am waiting for the response...


    Thanks, Ranjana

  • Monday, September 10, 2012 7:47 AM
    Moderator
     
     

    Hi,

    I understand that that you want to add an approval workflow on a document library and set the Due Date for the tasks to get Expiry Date of current item.  What do you mean by ‘. Clicked on Workflows->Approval Workflow-> prompted me to have a copy of the existing workflow->OK’? Do you modify the ootb Approval-SharePoint 2010 as a reusable workflow?

    If you are talking about modifying the reusable workflow, how do you add the ‘Due Date=Expiry Date’ action ? I have a test based on your description, when using reusable workflow, you cannot use ‘Set Task Field’ to set the Due Date to Expiry Date. When creating a blank workflow and add a ‘Start Approval Process’, you can add the Set Task Field to set the Due Date. This because the reusable only contains the columns that every list have in common like Title column.

    The error shown in the link that you provide is caused by KB2553322. You need to uninstall this KB file.

    If I have any misunderstanding, please feel free to point it out.

    Thanks,

    Entan Ming


    Entan Ming

    TechNet Community Support

  • Tuesday, September 11, 2012 7:31 AM
     
     

    Hi Entan,

    Thanks a lot for your response.

    I had tried modifying the ootb Approval-SharePoint 2010 as a reusable workflow. In that I could set "Due Date=Expiry Date" in Change the behavior of a single task->Step Before a Task is assigned, i added an action to set Due Date=Expiry Date.

    Am I doing anything wrong?? Is there any other way to do this and have rest all functionality same as approval workflow.

    Please guide me.

    Thanks in advance 


    Thanks, Ranjana

  • Tuesday, September 11, 2012 8:27 AM
    Moderator
     
     Answered

    Hi ,

    Can you give a screenshot about how to you set ‘Due Date=Expiry Date’?

    As far as I know, you cannot get the Due Date and Expiry Date without knowing the ID for the current item which the workflow is running on and the ID of the tasks created. You can start with a blank workflow instead:

      • Open the site in SharePoint designer. Create a workflow on the document library.
      • Add a ‘Start Approval Process ’ action in the workflow. This action acts the same like the OOTB approval workflow.
      • Specify the approvers by clicking ‘these users’.
      • Then you can click on the Approval(1) to edit the Task process. Add a ‘Set Task Field’ action in the ‘Before a  task is assigned’ section. Set the Due Date to get the value of Current Item: Expiry Date.
      • Then publish the workflow.

    Thanks,

    Entan Ming


    Entan Ming

    TechNet Community Support

    • Marked As Answer by Ranjana Hegde Friday, September 14, 2012 9:08 AM
    •  
  • Wednesday, September 12, 2012 9:49 AM
     
     

    Hi Entan,

    Thanks again for giving an alternative solution. Following is the screen shot taken from the "Change the behavior of a sing task process" I will try your solution and post tomorrow. 

    


    Thanks, Ranjana

  • Friday, September 14, 2012 9:09 AM
     
     

    Thanks a lot Entan, your alternative solution worked.

    But why there are no reminder mails being sent to the approver after due date?


    Thanks, Ranjana