I have plugin registered on qulaify lead message at pre- operation stage. In this plugin have the below code.
IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
throw new InvalidPluginExecutionException("This is Done");
In this plugin i have InvalidPluginExecution Exception The strange thing is it is not showing my cutsom message on the screen. It is giving some generic message "ISV Code Aborted the Operation".
How can i get rid of this generic error message and show my custom error message on qualify lead plugin message.?
Can anyone help me through this issue?
thanks for the reply. But, the link u mentioned had some other issue.
I have plugin on Create event of SalesOrderDetail entity. This plugin get fired but throw plugin exception doesn't work. Even if i write only throw exception in Execute. It just says isv code aborted the action.
Somebody had the same issue in crm 2011 https://community.dynamics.com/crm/f/117/t/107570.aspx and it got fixed with RU 13. But I am using crm 2013 online what should be done to fix this issue?
Even I'm getting this same error when I try to read the config data(using Plugin constructor in the Plugin code) which I gave under "unsecure configuration" in CRM plugin execution step in plugin registration tool. If I don't add any configuration data, I'm not getting the error. I'm using Dynamics 2013 On-Premise. What should be done to resolve this issue?