CRM 2013 Online Plugin SalesOrderDetail RRS feed

  • Question

  • hi,

    I have plugin on Create event of SalesOrderDetail entity. This plugin get fired but throw plugin exception doesn't work. I have nothing but throw exception in Execute. It shows a red cross which on mouse hover 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?

    Monday, April 14, 2014 3:56 PM

All replies

  • One of the ways that we solved similar issue with Quote is that we created a memo field in Quote and placed it next to the quote details grid. When an exception occurred in quote detail grid, we set the value of that quote field with the exception that was thrown (or custom message).  What we saw is when the quote grid refreshes, it also gets fresh data for quote. This way the new field on quote gets its value (exception) and the user can see it.
    Monday, April 14, 2014 8:11 PM
  • i wrote :

     catch (Exception e)
                                                Entity order = new Entity("salesorder");
                                                order.Id = orderid;
                                                order["description"] = e.Message;

    in every catch still, the error is not saved in description field. I still got the ISV code aborted message. Please help, how to debug this online plugin.

    Tuesday, April 15, 2014 9:42 AM