none
ISV code abort the operation

    Question

  • 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 http://support.microsoft.com/kb/2795627

    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 - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Wednesday, September 25, 2013 2:56 PM
    Moderator
  • 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..

    http://social.microsoft.com/Forums/en-US/29597e1c-7f8d-4ce5-84d0-d3ffe310874e/error-isv-code-aborted-the-operation-the-following-user-was-not-added?forum=crm


    MayankP
    My Blog
    Follow Me on Twitter

    Tuesday, April 15, 2014 9:15 AM
    Answerer
  • 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 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?

    Tuesday, April 15, 2014 9:55 AM