Sharepoint 2019 - Sharepoint 2013 Workflow

Kummari, Rani 66 Reputation points


I have a sharepoint 2013 workflow which I'm running on a scheduled basis using task scheduler with powershell script which starts a workflow. The task scheduler job is running with site collection administrator. The workflow is getting kicked but, it is starting as anonymous user and the workflow goes to Terminated status. I'm not sure why, if I run the script manually, it kicks the workflow fine as the site collection admin. The 2010 workflows that are scheduled are working fine, getting started as the user that is in task scheduler job, which is site collection admin.

Since it is happening to 2013 workflow I checked the workflow service application proxy in the production farm and I see this

SharePoint 2013 workflow requires a compatible workflow service configured with SharePoint such as Workflow Manager. The workflow service is either not installed or not configured. Follow this link to find out how to set up workflow.

and I tried to register using Register-SPWorkflowService but I get error saying that it is already registered, some blogs suggest to remove the service and re-add.

My question is if I remove the Workflow service and re-add will it affect already existing 2013 workflows? We have 2013 workflows that start on item creation and modification etc. What will happen to them? will they work good after the service is re-added? The problem we are having is automatic scheduling of 2013 workflows.

SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
520 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yanli Jiang - MSFT 21,776 Reputation points Microsoft Vendor

    Hi @Kummari, Rani ,

    According to my research and testing, this should have no effect on existing 2013 workflows. Be careful when operating, do not check and delete data associated with the application at the same time.

    For more information please refer to:

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments