Friday, November 18, 2011

Workflow Error: "An error has occurred in Approval"

It’s not a known issue But it’s more of a Setup error

 We have the SharePoint OOB Approval workflow which can be attached to a document library to start whenever a new document gets created and get the required approvers to review and approve the document for publishing.

 It is a very easy task to set-up this workflow

 Steps to setup a workflow :

 For a document library or list , go to Settings->Workflow Settings->Add Workflow

 Choose the Approval workflow from the list, make it start on item creation go to the second workflow page.

 Select the approvers and check "Update the approval status (use this workflow to control content approval) "

 Finish and create a document in the library.

 Although this might seem as an easy straightforward task the workflow might after all still end-up in error:

  Error  System Account  An error has occurred in Approval

 Cause : Because This is an approval workflow

 which should update the approval status of the document Also

 if you missed one step like setting the approval for the document library this simple task will fail at the end.

 The workflow will start and run flawlessly until the end when it will try to update the approval status.

 If this setting is set to not to require content approval it will fail to update it hence throwing the above error.

 So, if you encounter this, just go into the document library settings and go to Versioning Settings Page

 Set "Require content approval for submitted items " to yes and everything should be fine.

3 comments:

  1. I have ceatated approval workflow and checked the 'Use Content workflow' and also enabled 'Require content approval for submitted items' in versioning settings.

    Now when I select Upload document and browse and when I save it, I get an error.

    [0x81020015The file Knowledge Portal Docs/Office_1.docx has been modified by domain\name on 23 Jul 2012 11:30:13 +0530.]

    [Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: 0x81020015The file Knowledge Portal Docs/Office_1.docx has been modified by domain\user on 23 Jul 2012 11:30:13 +0530.

    When I refresh, the error is gone and the document is also uploaded.

    ReplyDelete
  2. Hi ,

    Please Provide Your environment Details and also if you can mail me the screent shot of the error.

    Also try uploading Multiple documents at a time and check if the issue exists on another Document library .
    You can mail me at sushant.khambekar@gmail.com

    ReplyDelete

Users cannot see the checked out files in the folder/ library

I Came across a Issue today wherein the user opened a ticket for the below issue Issue : Users cannot see the checked out files in the fo...