异常:在虚拟实体的嵌套管道中不允许执行自定义插件。

huangapple go评论129阅读模式
英文:

Exception : Custom plugin execution is not allowed in nested pipeline for Virtual Entity

问题

我正在使用Power Apps中的Dynamics插件代码创建一个新的虚拟实体记录。我可以通过前端手动完成这个过程吗?

但插件代码如下:

var verecord = new Entity("mserp_virtualentity")
{ ["mserp_name"] = "Create" };
verecord.Id = service.Create(verecord); //<-- throws exception

异常:"在虚拟实体的嵌套管道中不允许自定义插件执行。"

DLL步骤在postContactUpdate事件上注册。而且不确定这是否有任何影响,但数据源(财务与运营)已激活此表的数据事件以处理'OnExternalUpdate'(插件在其他地方但在此处未调用或触发)。

英文:

I am creating a new virtual entity record using Dynamics Plugin Code in Power Apps. I can manually do this through the front end?

but plugin code :

var verecord = new Entity(&quot;mserp_virtualentity&quot;)
{ [&quot;mserp_name&quot;] = &quot;Create&quot; };
verecord.Id =  service.Create(verecord); //&lt;-- throws exception

Exception : "Custom plugin execution is not allowed in nested pipeline for Virtual Entity."

dll step is registered on the postContactUpdate event. Also not sure if this has any bearing but the datasource (Finance & Operations) has this table Data Event(s') also Activated to handle 'OnExternalUpdate' (plugin elsewhere but is never called or triggered here)

答案1

得分: 0

"plugin execution is not allowed in nested pipeline for Virtual Entity" - because these Virtual entities does have their own data events registered any plugin code cannot be part of the pipeline.

Running the plugin async will resolve this issue running in its own execution pipeline.

英文:

As the exception says "plugin execution is not allowed in nested pipeline for Virtual Entity" - because these Virtual entities does have their own data events registered any plugin code cannot be part of the pipeline.

Running the plugin async will resolve this issue running in its own execution pipeline.

huangapple
  • 本文由 发表于 2023年3月7日 02:38:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/75654615.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定