CRM 2016: error message dialog does not appear

In the Offer window, I have the subtitle ProductOffer. I have a PreCreate ProductOffer plugin that checks for certain conditions for an error message and to stop creating.

So, in this plugin, I added:

throw new InvalidPluginExecutionException("My message"); 

But the dialog message does not appear, but an error message appears at the top of the subtitle with the message: " ISV code aborted operation ."

Please tell me why my message is not displayed? And how to solve it?

Many thanks.

+7
dynamics-crm crm
source share
1 answer

What you describe is the normal expected behavior in CRM based on my experience with it. I did the same with the position subnet in the Quote form. I have a plugin that applies some business logic to create a QuoteDetail record and does not allow the user to do certain things. When the plugin throws an exception, the only thing that is displayed is the error message above the grid, as you described. I assume that the sub-segment is somewhat isolated from the main format controls, and you do not receive a pop-up message about a normal business process error, because it was an exception for the associated object, and not with the main object that you are viewing in the view. I did not find any way around this, and I believe that this should be a product function request on connect.microsoft.com for MS to consider the possibility of a change.

+1
source share

All Articles