rencygonzalez
Novice

Workflow fails when check out option is enabled on library

I have a library that has Check out enabled so that when the user works on the document it forces them to check out the document. This ensures that other users do not make changes to the document. However the issue that I am running into is that my workflow keeps failing with the following error:

I have added commit pending changes to see if that would prevent the workflow from failing but that is not the case.

As soon as the user checks in the document I have a commit pending changes added.

Next comes the action of a string being built and then saved in a column. The workflow stops after that.

Tags (1)
0 Kudos
Reply
5 Replies
kapilkjoshi
Apprentice

Re: Workflow fails when check out option is enabled on library

Hi Rency Gonzalez,

If you have check-in/check-out enabled on the library, to update the document properties, you have to check out the document within your workflow.

Before using Set Field value, use Check-out document action, Commit pending changes,  then set the value, then Check-in document action, then commit pending changes. May be you dont need so many Commits but it is to make sure that document is checked out when you edit the properties.

Hope it helps.

0 Kudos
Reply
rencygonzalez
Novice

Re: Workflow fails when check out option is enabled on library

Hi Kapil

Thank you so much for your help the check out and check in worked however it is now failing at an update action.  I tried adding check out and check in action before and after the update action but it didn't work. Could you help?

0 Kudos
Reply
kapilkjoshi
Apprentice

Re: Workflow fails when check out option is enabled on library

Hi,

Waiting for Update action is an input by the user. You do not need Check-out/Check-in actions for this in the workflow. User is going to perform those operations when updating the document properties.

Is there any error message?

0 Kudos
Reply
rencygonzalez
Novice

Re: Workflow fails when check out option is enabled on library

The workflow cancels at the wait for an update action. The following is the error:

0 Kudos
Reply
rencygonzalez
Novice

Re: Workflow fails when check out option is enabled on library

Hi Kapil

My workflow keeps cancelling not sure why. The error message is so generic and doesn't give me details. When I published my workflow and then checked in my item into the library the workflow completed from beginning to end however when I checked in a second word document into my library it failed. Not sure what is going on .

0 Kudos
Reply