InvalidPluginExecutionException dialog does not show up - CRM 2011

风流意气都作罢 提交于 2019-12-11 09:45:00

问题


I have a Plugin on the Creation, Updating, and Deletion of the OpportunityProduct entity in the CRM 2011. I want to through exception on the success of some operations, means want to display dialog. It is working fine for Update and Delete. But it is not working fine for the Creation of OpportunityProduct, it is not throwing exception in the dialog. It is showing Exception: “An error has occurred, Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solution or contact your organization’s Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support.

  1. Message : Create
  2. Primary Entity : opportunityproduct
  3. Action: Pre-Operation
  4. Execution Mode: Synchronous

回答1:


I think this is an internal issue that relates to how CRM treats compound entities such as opportunity product. To verify this behavior you should put breakpoint in your code and inspect the context depth and parent context to understand if the create event is indeed a child process or the opportunity. If so you might be able to re-register the plug-in the opportunity and try to somehow throw the error from there.



来源:https://stackoverflow.com/questions/19953517/invalidpluginexecutionexception-dialog-does-not-show-up-crm-2011

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!