没有显示InvalidPluginExecutionException对话框-CRM 2011 [英] InvalidPluginExecutionException dialog does not show up - CRM 2011

查看:50
本文介绍了没有显示InvalidPluginExecutionException对话框-CRM 2011的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CRM 2011中的 OpportunityProduct 实体的创建,更新和删除上有一个插件。我想通过某些操作是否成功的例外,意味着要显示对话框。对于更新和删除,它工作正常。但是对于创建 OpportunityProduct 来说,它不能正常工作,它不会在对话框中引发异常。它显示异常: 发生错误,请重试此操作。如果问题仍然存在,请检查Microsoft Dynamics CRM社区以寻求解决方案或与您组织的Microsoft Dynamics CRM管理员联系。最后,您可以联系Microsoft支持。

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. 消息:创建

  2. 主要实体:机会产品

  3. 操作:操作前

  4. 执行方式:同步

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


推荐答案

我认为这是一个内部问题,涉及CRM如何对待诸如机会产品之类的复合实体。
要验证此行为,您应该在代码中放置断点,并检查上下文深度和父上下文,以了解create事件确实是子进程还是机会。
如果是这样,您也许可以重新注册该插件,并尝试以某种方式从那里抛出错误。

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.

这篇关于没有显示InvalidPluginExecutionException对话框-CRM 2011的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆