在CRM 2013中获得随需应变工作流的错误

时间:2013-10-15 11:02:17

标签: crm dynamics-crm-2013

我在按需工作流程上运行时遇到错误。按需工作流程只是通过复制记录内容来创建记录。当我选择多个记录并运行按需工作流程时,会出现此错误。如果我只选择一条记录并运行工作流程,那么它的工作正常。

没有活动交易。此错误通常是由自定义插件引起的,该插件忽略服务调用中的错误并继续处理。

插件追踪:

[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.CreateEntity]
[CreateStep1: Create a Clone Lead]
Error Message:

Unhandled Exception:
System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, 
Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]:
There is no active transaction. This error is usually caused by custom plug-ins that
ignore errors from service calls and continue processing.Detail: 
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">

-2147220911        没有活动交易。此错误通常是由自定义插件引起的,该插件忽略来自服务调用的错误并继续处理。    2013-10-15T10:51:50.8984331Z         -2147220911          没有活动交易。此错误通常是由自定义插件引起的,该插件忽略来自服务调用的错误并继续处理。     2013-10-15T10:51:50.8984331Z                    [Microsoft.Xrm.Sdk.Workflow:Microsoft.Xrm.Sdk.Workflow.Activities.CreateEntity]     [CreateStep1:创建克隆潜在客户]               在Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Create(实体实体,CorrelationToken correlationToken,CallerOriginToken callerOriginToken,WebServiceType serviceType)     在Microsoft.Crm.Extensibility.InprocessServiceProxy.CreateCore(实体实体)     在Microsoft.Crm.Workflow.Services.CreateActivityService。&lt;&gt; c_ DisplayClass1。 b _0(IOrganizationService sdkService)     在Microsoft.Crm.Workflow.Services.ActivityServiceBase.ExecuteInTransactedContext(ActivityDelegate activityDelegate)     在Microsoft.Crm.Workflow.Services.CreateActivityService.ExecuteInternal(ActivityContext executionContext,CreateEntity createEntity)     在Microsoft.Crm.Workflow.Services.CreateActivityService.Execute(ActivityContext executionContext,CreateEntity createEntity)     在System.Activities.CodeActivity.InternalExecute(ActivityInstance实例,ActivityExecutor执行器,BookmarkManager bookmarkManager)     at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,BookmarkManager bookmarkManager,Location resultLocation)

1 个答案:

答案 0 :(得分:0)

似乎有一个插件代码,continue;块中有一个catch语句,它触发了工作流完成的操作。如果是这样,您需要从continue;

中取出catch声明