Another strange issue I experienced today was that a web form in MSCRM2011 doesn’t revert back to the correct state when an error occurs on changing state. Basically I created a pre operational plugin which validated a few bits and peices when changing the state of a record. If the validation failed the plugin threw an Exception. However if the plugin threw the exception it didn’t stop the web form from changing state!
Today I came across functionality that was… well not expected. I’m pretty sure it’s a bug unless someone can explain the logic behind it. It appears that there is no server side checks to validate the statecode. Allow me to explain, and apologise for stating some of the basics.
Recently I have discovered what I believe to be a bug with the way workflow handles a pre-validation exception that is raised to it via a plugin. This issue has forced me to perform pre-validation in the pre-operation stage with steps lower than my actual pre-operations. This however seems to have a draw back as well.