Error When Programmatically Starting a SharePoint Workflow

In testing the MOSS Workflow Web Service operations I’m adding to our jQuery Library for SharePoint Web Services, I was getting an error sometimes when I called the StartWorkflow operation:

Exception from HRESULT: 0x8102009B

Turns out this occurs if there is a prior instance of the same workflow which has terminated in an error, showing a status of ‘Error Occurred’.  (This would be true if you were trying to invoke the workflow from code as well.)  Through the UI, you can remedy this by going to the item and terminating the workflow instance which resulted in an error.  I don’t think that there is a fix available through the Workflow Web Service.  In code, you can call the CancelWorkflow method.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.