SharePoint Use Cases

08 Oct, 2007

Workflow: An error has occured in Approval

Posted by: Toni Frankola In: SharePoint  Bookmark and Share

I have created a custom approval workflow in a document library. On customize workflow screen I selected the following option:
[x] Update the approval status (use this workflow to control content approval)

During workflow testing I was surprised when SharePoint reported the following error:
“An error has occured in Approval.“

The solution for this problem is very simple, if you want your workflow to update approval status you need to enable content approval in your document library. To enable content approval here is what you need to do: Go to your document library Settings > Versioning Settings and select „Yes” for “Require content approval for submitted items?“ option.




Comments

1 | http://

October 12th, 2007 at 5:05 pm

Avatar

My bro Where can I find document library settings.
Thanks

3 | http://

November 20th, 2007 at 10:14 am

Avatar

I just couldn’t explain where this error was coming from, thank you very much,

regards,
J.

4 | http://

April 29th, 2008 at 8:29 pm

Avatar

Thank you, thank you, thank you, thank you!

Why isn’t this more obvious? Could the error message be more specific so this would be easier to track down?

5 | http://

June 3rd, 2008 at 6:51 pm

Avatar

I noticed a problem with this solution, or a least something I didn’t think should happen. Note that I am using the built-in Approval workflow on a list I’ve setup for Invoice Processing.
When I employ the steps you’ve shown my list now has a new column named “Approval Status” and shows the status of Approved, even for workflows that are still in progress.
Any thoughts?

6 | http://

July 22nd, 2008 at 2:51 pm

Avatar

Bob,

That’s an expected (?) side affect of turning on Content Approval. Even without any workflows running, if you turn on Content Approval for a document library, any existing documents are automatically considered “Approved”. If you think about it that makes sense. If I had thousands of docs in my library and I then turned on Content Approval, if it didn’t automatically set them all to Approved, then they would all be sitting at “Draft” or “Pending” which would force me to go to each one individually and Approve it (otherwise no one except the originator could see them).

KevinHou

7 | http://

July 22nd, 2008 at 6:14 pm

Avatar

@Kevin: Yes, that is the normal behavior. Otherwise it would not work…

8 | http://

August 1st, 2008 at 7:33 am

Avatar

hi,
i have a problem with regards to Content Approval.. I have set it to Yes in one of my doc libs programmatically, now tha problem is, whenever i made update to that doc lib thru other libs the Approved ones resets to Pending (e.g. i have another list that whenever a change of status would change the status in that list — i’ve done this thru timerjobs)

Any thoughts on how to do this programmatically???

thanks

9 | Workflow: An error has occured in Approval - Sharepoint Use Cases

October 17th, 2008 at 4:01 pm

Avatar

[...] An error has occured in Approval This blog has moved. Click here to open the new [...]

10 | Ajay

November 18th, 2008 at 3:22 pm

Avatar

Hi guys,

I have a requirement where I need to send automatic emails to the submitter of the out of the box approval workflow once its finished. I tried to create SharePoint workflow for sending email in the item changed event, but no hit. Would be gratefull if you can provide a solution for this.

Comment Form



About

Real-life use case and opinions about collaboration, CRM and web technologies and stuff by Toni Frankola. More...

Categories

All postings on this blog are provided "AS IS" with no warranties, and confer no rights. All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer.