locked
2010 Workflows suddenly started failing RRS feed

  • Question

  • Hi all, I have an SP 2016 install that's been running smoothly until recently when all 2010 workflows fail with "failed to start" and "failed to run". ULS logs the following:

    RunWorkflow Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.   
     at System.Diagnostics.PerformanceCounter.InitializeImpl()   
     at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)   
     at System.Workflow.Runtime.PerformanceCounterManager.CreateCounters(String name)   
     at System.Workflow.Runtime.Hosting.ManualWorkflowSchedulerService.OnStarted()   
     at System.EventHandler`1.Invoke(Object sender, TEventArgs e)   
     at System.Workflow.Runtime.WorkflowRuntime.StartRuntime()   
     at Microsoft.SharePoint.Workflow.SPWinOeHostServices..ctor(SPSite site, SPWeb web, SPWorkflowManager manager, SPWorkflowEngine engine)     -
     -- End of inner exception stack trace ---   
     at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)   
     at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)   
     at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)   
     at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)   
     at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)   
     at Microsoft.SharePoint.Workflow.SPWorkflowManager.LoadPluggableClass(String classname, String assembly, Object[] parameters)   
     at Microsoft.SharePoint.Workflow.SPWorkflowManager.GetService(SPWorkflowAssociation association, SPWorkflowEngine engine)   
     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)

    Wednesday, May 23, 2018 2:01 PM

All replies

  • Hi Mind_warp,

    From you description, I understand that you failed to start 2010 Workflows in SP 2016. Based on my research, I will give you following recommendations:
    =====================================================
    1.Locate one Web Front End server which has Web Application service running, run the following PowerShell command to copy workflow-related configuration from the web.config to the configuration database so it will be available from every server in the Farm.
    $webapp = Get-SPWebApplication -identity http://<web app name>

    $webapp.UpdateWorkflowConfigurationSettings()

    2.Start the Web Application Service on all servers that have the Workflow Timer Service running.


    3.Disable the Workflow Timer Service on servers that are not running the Web Application service.


    Best regards,
    Ethan Liu


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Friday, May 25, 2018 2:26 AM