Hi,
I've created a workflow that runs when a Check in is performed. Once checked in the workflow will check out the document, perform some actions, check in the document and finish.
When doing this on a minor check in the workflow works fine, however, when a document is published as a major version the check out is performed, the actions are performed and although the workflow diagram says it checked in successfully I get an error saying th workflow errored (no further details) and the item remains checked out. A field I created that copies the version number to a field before the check in confirms that the document is still checked out with the version showing 1.1 instead of 1.0.
I've tried adding a State Machine with a Major Version state with a Run If that checked if it was a major version and if so added the Approval action after the check in, but this didn't make a difference.
I've also tried setting the check in action to check in a Major version rather than No Version Change, but this changes the document to 2.0 rather than 1.0 when checking in.
Can someone explain to me how I'm meant to check in a document that's been made a major version by a user edit fields in the workflow and then check it in as the same Major version the user published.
Thanks