Custom XAML Workflow error in CRM 2013 RRS feed

  • Question

  • I get the following error while deleteing Custom XAML workflow.

    "Error generating UI Data".

    This workflow refers to custom Workflow activities using Activity Reference component of Custom XAML. This error occurs only when I try to delete this custom XAML or if I try to publish all customization.

    This workflow has become a major concern as it is not allowing me to publish the customization. This issue is only with CRM 2013 while this same workflow got deleted in CRM 2011 environment neither did it give any error while publishing the customization.

    Do I need to register the custom workflow activity dll to which this XAML is referring in GAC? I have already regstered the custom workflow activity in database.

    Please help as this has become a major concern.

    • Edited by CRMRocks Tuesday, March 11, 2014 4:45 AM
    Tuesday, March 11, 2014 4:44 AM

All replies

  • Hello,

    You need to get details error information, enable tracing in MS CRM and then try to delete and see what information is logged there.


    Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Tuesday, March 11, 2014 7:55 AM
  • at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)  ilOffset = 0x0
    at CrmException..ctor(String message, Exception innerException, Int32 errorCode)  ilOffset = 0x0
    at RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType)  ilOffset = 0xFFFFFFFF
    at RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0xD8
    at RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)  ilOffset = 0x1E7
    at VersionedPluginProxyStepBase.WrapExceptionToThrow(CrmException exception)  ilOffset = 0x89
    at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x65
    at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0x65
    at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x1C5
    at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4
    at 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)  ilOffset = 0x16E
    at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Boolean traceRequest, OrganizationContext context, Boolean returnResponse)  ilOffset = 0x16A
    at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)  ilOffset = 0x34
    at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)  ilOffset = 0x24
    at InprocessServiceProxy.ExecuteCore(OrganizationRequest request)  ilOffset = 0x34
    at PlatformCommand.XrmExecuteInternal()  ilOffset = 0xF6
    at PublishAllXmlCommand.Execute()  ilOffset = 0x7
    at CustomizationsPublishAll.Execute()  ilOffset = 0x28
    at SystemCustomizationHandler.ProcessRequestInternal(HttpRequest request)  ilOffset = 0x59
    at AppHttpHandlerWithKeepAlive.ProcessRequestInternal(HttpContext context)  ilOffset = 0x49
    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x11D
    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15
    at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10E
    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C
    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0xFC
    at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x45
    >Crm Exception: Message: Error generating UiData, ErrorCode: -2147200969, InnerException: Microsoft.Crm.CrmException: Error generating UiData ---> Microsoft.Crm.CrmException: Workflow contains unexpected activity.
    at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadSingleStep(Activity activity)
    at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.GenerateUIData()
    --- End of inner exception stack trace ---
    at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.GenerateUIData()
    at Microsoft.Crm.ObjectModel.ProcessServiceInternalHandler`1.PublishAllWorkflowLabels(BusinessEntityCollection entities, ExecutionContext context)
    at Microsoft.Crm.ObjectModel.WorkflowPublisher.Publish()
    at Microsoft.Crm.ObjectModel.PublishXml.PublishAll(ExecutionContext context)
    at Microsoft.Crm.WebServices.PublishXmlService.PublishAll(ExecutionContext context)

    How do I find which activity is unexpected? 

    Tuesday, March 11, 2014 8:53 AM
  • Sorry but bumping it. As no replies.
    Wednesday, March 12, 2014 3:26 AM
  • Anybody having any idea about this? Still no clue.
    Thursday, March 13, 2014 6:59 AM
  •  you were able to fix this issue 


    Tuesday, June 17, 2014 1:44 PM
  • Guys,

    I have the exact same issue, In CRM 2013 on premise, I can not delete the XAML workflows that were developed and deployed using Visual studio toolkit, it only happens when there is custom workflow activities on the xaml. Someone from microsoft should help. This is product issue either a patch missing or the toolkit has issue. Please help .

    Tuesday, September 29, 2015 7:26 PM