Tallan's Technology Blog

Tallan's Top Technologists Share Their Thoughts on Today's Technology Challenges

Windows Worfklow: Error 1342 Activity X validation failed: Can not find the condition Y

This is just a small tip for anyone doing any WWF work:  The workflow’s name property MUST MATCH file workflow filename or rules and conditions will not be found, and the workflow will not be instantiated.

Example:

Create a sequential workflow.  Call it WorkflowA.cs.

Click the workflow in the designer mode, and change the name of the workflow in the property window to WkflwA.  Add any activity that takes conditions (i.e., if/then/else).

Add a valid condition to this activity.

Attempt to start the workflow.

 

You will get a WorkflowValidationFailedException saying that the Workflow failed validation.  To correct this issue, rename the workflow back to “WorkflowA” and restart.  The workflow will instantiate without issue.

Related Articles

3 Comments. Leave new

Perfect!

Thank you for the tip – it worked!

Perfect!.. it really worked.
Thanks a lot for the tip.

alternatively you can simply create another blank workflow and copy the content of the old workflow (the one with errors) and paste then content on the new workflow and try to publish it will work.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

\\\