Search

Search:

Namespace:

Search Result
.

Catch the WorkflowValidationFailedException exception when loading the workflow and iterate through the Errors collection to see what is wrong.

.

Catch ex As WorkflowValidationFailedException

.
    catch (WorkflowValidationFailedException ex)
.

The most important thing to notice is that the ApplyWorkflowChanges is the one that actually changes the running WorkflowInstance. And if the update fails for some reason an WorkflowValidationFailedException is thrown with a property Errors that is a collection of ValidationError objects.

.

Catch ex As WorkflowValidationFailedException