OOB Approval workflows are missing on SharePoint online site

This post has been republished via RSS; it originally appeared at: SharePoint Support Blog articles.

SharePoint OOB Approval workflows are missing on SharePoint online site even after activating\reactivating the "Workflows" site collection feature.

 

Missing workflow templates: 

Publishing Approval

Approval - SharePoint 2010 

Collect feedback - SharePoint 2010

Collect Signatures - SharePoint 2010

 

Issue:

SharePoint OOB Approval workflows are missing on SharePoint online site even after activating\reactivating the "Workflows" site collection feature.

 

We just see below templates,

image.png

And in SharePoint designer, Wfpub contents are shown as folder and NOT as a library.

image.png

 

Background:

  • Workflows feature depends on OffWfCommon (c9c9515d-e4e2-4001-9050-74f980f93160). 
  • OffWfCommon generates wfpub library when activated.
  • Workflows features will deploy globally reusable workflows in wfpub when activated.
Initially activating Workflows means activating OffWfCommon and Workflows at the same time.
So, OffWfCommon will generate wfpub library and Workflows will deploy those workflows.
 
But unfortunately from the 2nd time, activation of Workflows feature only means the Workflows feature itself. This is because OffWfCommon remains activated. So it works like this.
  • Workflows features will deploy globally reusable workflows in wfpub when activated...
    But wfpub is not there. So empty folders are generated to cover up.

Expected:

 image.png

Actual:
image.png

 

Resolution:

-Deactivate the "Workflows" site collection feature.

-Remove Wfpub folder from "_catalogs" - SharePoint designer

-Toggle the OffWfCommon feature

  • Connect to PNP site collection and run below cmd,

      Disable-PnPFeature -Identity c9c9515d-e4e2-4001-9050-74f980f93160 -Scope Site

      Enable-PnPFeature -Identity c9c9515d-e4e2-4001-9050-74f980f93160 -Scope Site
-Now activate the "workflows" feature from UI should bring back the missing OOB workflows.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.