Hi together,
we are running crm 2011 under UR 13 and we are developing a lot of plugins.
Usually we use "throw new InvalidPluginExecutionException(...)" to show en error when our business logic fails. But this doesn't work when creating salesorderdetails: this doesn't work neither in the pre nor in the post-operation of the create message (but it works on salesorderdetail-updates).
CRM shows only the message "An error has occurred" with the buttons "Try again" and "Close".
On the server event-log we see an entry but also there we don't see our message.
Example plugin code:
publicvoid Execute(IPluginExecutionContext context) {
thrownewInvalidPluginExecutionException("We have thrown an exception!");
}
Has anybody the same problem? Exists a workaround for this crm-bug?