ISV code abort the operation


  • Hi All,

    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?

    Friday, September 20, 2013 12:33 PM

All replies

  • This issue was fixed in UR 12. Check out the issues resolved in UR12

    Which Rollup are you on?

    If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'

    Friday, September 20, 2013 1:10 PM
  •  I am using CRM 2013 Orion Beta Version. This happens when i write Throw Invalid Plugin exeception in Qualify Lead Message Plugin
    Wednesday, September 25, 2013 10:44 AM
  • This forum is for released versions of CRM. I suggest you look at the Connect site for CRM 2013 Beta

    Microsoft CRM MVP -

    Wednesday, September 25, 2013 2:56 PM
  • hi, I am also facing similar issue, instead of throwing the exception, I get ISV code aborted the action on the plugin registered on create of sales order product. I am using crm 2013 online which has been released now.
    Tuesday, April 15, 2014 8:56 AM
  • please check following thread for this..

    My Blog
    Follow Me on Twitter

    Tuesday, April 15, 2014 9:15 AM
  • hey Mayank,

    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 and it got fixed with RU 13. But I am using crm 2013 online what should be done to fix this issue?

    Tuesday, April 15, 2014 9:55 AM
  • 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?
    • Proposed as answer by Sainath Reddy Wednesday, April 23, 2014 5:15 AM
    • Unproposed as answer by Sainath Reddy Wednesday, April 23, 2014 5:15 AM
    • Edited by Sainath Reddy Wednesday, April 23, 2014 5:19 AM
    Wednesday, April 23, 2014 5:15 AM
  • Hi Averil , were you able to fix it? I'm on CRM 2015 and get the same error on delete message of the PostFollow entity. Any help is appreciated. Thanks.
    • Edited by AJ15 Wednesday, February 22, 2017 6:58 PM
    Wednesday, February 22, 2017 6:56 PM