Hello, I am hoping someone can help with this issue I am having with the UI dialogs that result from throwing InvalidPluginExecutionException in CRM plugins. Ordinarily when doing so, a "Business Process Error" dialog appears that surfaces the provided error message from the plugin. However specifically for handling win opportunity messages, I am not getting a "Business Process Error" dialog but instead a generic "An error has occurred". I am throwing the InvalidPluginExecutionException in the same way as in other plugins that handle create/change messages on other entities.
I have found this old forum post regarding a similar issue, however using the suggested multi catch approach is not working:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/d7bc391d-32a1-4d7d-8cd5-48e459d4aeff/invalidpluginexecutionexception-dialog-does-not-show-up-crm-2011?forum=crmdevelopment
catch (InvalidPluginExecutionException) { throw; } catch (FaultException<Microsoft.Xrm.Sdk.OrganizationServiceFault> ex) { throw new InvalidPluginExecutionException("An FaultException occurred in the OnCreatePluginTest plug-in.", ex); } catch (Exception ex) { throw new InvalidPluginExecutionException("An Exception occurred in the OnCreatePluginTest plug-in.", ex); }
Is there something that I am missing? It seems peculiar that this is only occurring for handling the win opportunity message. I appreciate any insights into this issue.
*This post is locked for comments