CRM错误与流程/工作流程

时间:2018-06-05 11:54:51

标签: dynamics-crm dynamics-crm-2011 crm

我们发现我们无法修复的开发CRM环境存在问题。

要重新创建,我可以在任何实体上创建一个新的流程(工作流程),例如机会。然后我在一个允许多个值的字段上放置一个过滤器,例如状态原因并选择2个或更多项目(例如,赢得/进行中)。按“保存/关闭”时,会显示错误消息

"无法创建,更新或激活此过程,因为它是在Microsoft Dynamics CRM Web应用程序之外创建的。您的组织不允许此类流程。"

错误详细信息文件包含以下信息:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: This workflow cannot be created, updated or published because it was created outside the Microsoft Dynamics CRM Web application. Your organization does not allow this type of workflow.Detail: 
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147200960</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>CallStack</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Boolean traceRequest, OrganizationContext context, Boolean returnResponse)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>This workflow cannot be created, updated or published because it was created outside the Microsoft Dynamics CRM Web application. Your organization does not allow this type of workflow.</Message>
  <Timestamp>2018-06-05T11:49:06.9917786Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>

如果我尝试打开一个现有的工作流程,该工作流程的条件是在Equals语句中使用了多个值,我会收到以下错误:

Error generating UiData

[KeyNotFoundException: The given key was not present in the dictionary.]
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadEvaluateCondition(EvaluateCondition activity)
   at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadExpression(Collection`1 activities, Type endActivityType, Boolean customActivity, Int32&amp; activityIndex)
   at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadBranchStep(StepBase parentStep, Collection`1 sequenceActivities, Int32&amp; activityIndex)
   at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadConditionStep(Boolean wait, ConditionSequence sequence)
   at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadCompositeStep(String stepId, String description, Activity activity, Collection`1 variables)
   at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadSingleStep(Activity activity)
   at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.GenerateUIData()

[CrmException: Error generating UiData]
   at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.GenerateUIData()
   at Microsoft.Crm.Application.Platform.WorkflowLibrary.WorkflowAdapter.CreateWorkflowObjectModel(Guid workflowEntityId, Boolean useSystemUserContext)
   at Microsoft.Crm.Web.Sfa.WorkflowDetailPage.GetWorkflowStep()
   at Microsoft.Crm.Web.Sfa.WorkflowDetailPage.ConfigureForm()
   at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
   at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

[HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)

我们尝试重新启动服务器,重新启动IIS,重新启动服务器上运行的5个CRM服务,但都无济于事。

我可以将操作符更改为&#34; Not Equal&#34;并选择多个项目没有任何问题。仅当操作员设置为“等于”并且拾取了多个项目时,才会出现此问题。

这适用于服务器上的每个组织,包括没有自定义的Vanilla安装。无论做什么,这似乎是服务器端

花了一段时间寻找这方面的任何事情但苦苦挣扎。

0 个答案:

没有答案