Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Create SalesOrderDetail: throw plugin-exception doesn't work

$
0
0

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?

 


Viewing all articles
Browse latest Browse all 82002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>