Document Approval WF - Error


Badge +3

Hi community members,

I am currently working on a document approval workflow. The wf starts if a document is added to the library. It is actually pretty straightforward. However, I experience workflow errors and I don't have a clue where to make any further adjustments. I've spent the whole day on looking for any good recommendations here and on other sites. Unfortunately, it didn't help much. 

Further, the workflow history does not say very much, only that an error occured.

Here is what I got so far:

Part I

Part II

Part III

Any ideas? 

Thank you in advance! happy.png


7 replies

Userlevel 7
Badge +17

On which action is the error occurring?

Also, as a tip, I would not use the workflow to check out the item then immediately "Wait on check out status change". It would be better to use the "Commit Pending Changes" actions instead to push the check out through.

There are also times you may want to put in place a pause for 1 minute action. This is because SharePoint could think the file was checked out and continue the workflow, but the activity is Asynchronous and can take just a half second.

Badge +3

Thanks for your quick response Andrew!

The weird thing here is that the workflow completes sometimes. I then just receive an email "workflow error". Looking at the workflow message, there is no further explanation on where the exact error takes place, only that one occurs.

Applying your suggestion to my workflow: Where in the WF would it be necessary / most effective (see sequence below)? I've tried it several times with a pause, it didn't help much. I am sure I've applied it on the wrong spot.

- Start

- Check out item

- Commit pending changes

- Query actions + Update Actions

- Wait for item update

- Commit pending changes

- Flexi Task

   Approve

   - Set approval status (is it relevant if the item is checked out or checked in?)

   - Wait for item update

   - Commit pending changes

   - Check in item

Again, thanks a lot for your help!

Userlevel 7
Badge +17

It looks like you have the Commit in the right places, but the Wait for item update doesn't seem necessary. You would use that action only when you want the workflow to wait for end user involvement and changes, not workflow based changes. 

Badge +3

Alright, I remove the "Wait until" actions and give it a try at work on Monday.

Where would you recommend to integrating the "pause" actions?

Userlevel 7
Badge +17

You can use them in place of the commit pending changes. They will accomplish the same goal. I only use the pause when I start to get errors that I cannot update the item because it is not checked out, which means the workflow was going too fast.

Badge +3

No matter how many pause actions I add or how long I wait, the workflow errors. Even without a specific error message:

203295_pastedImage_1.png

203296_pastedImage_2.png

Current settings for the library:

203297_pastedImage_3.png

WF settings:

203298_pastedImage_1.png

203299_pastedImage_2.png

Another topic with a similar error/situation was created almost a year ago, but it hasn't been solved yet. I think it is very related:

Wait for Check-Out Status' Change Action Errors-out

Any suggestions?

Badge +3

The WF does not error if I don't integrate check out or check-in actions.

Reply