Error when attaching the Sharepoint 2013 designer workflow


We have installed Workflow manager on the same server as that of the SharePoint server.

We are facing the issue when attaching a SharePoint 2013 designer workflow to a list:

System.NullReferenceException: Object reference not set to an instance of an object.   
 at Microsoft.SharePoint.WorkflowServices.StoreSubscriptionService.CreateStatusColumn(String subscriptionName, SPWeb web, Guid listId)    
 at Microsoft.SharePoint.WorkflowServices.StoreSubscriptionService.PublishSubscriptionForList(WorkflowSubscription subscription, Guid listId)    
 at Microsoft.SharePoint.WorkflowServices.ApplicationPages.AssocWrkflPage.OnLoad(EventArgs ea)    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Please help.



May 19th, 2015 5:15am

Hi Sachin,

As I understand, you encountered the error when attaching a designer workflow to a list in SharePoint 2013.

Could you provide more details about attaching the designer workflow to a list? Is the designer workflow a reusable workflow?

If the designer workflow is a reusable workflow, you could use SharePoint Designer 2013 to publish the globally reusable workflow from the root of the site collection. To do this, follow these steps:

1. Use SharePoint Designer 2013 to sign in to the affected site.

2. On the Site Objects menu, click Workflows.

3. In the list of workflows, click the affected workflow.

4. On the WORKFLOW SETTINGS tab on the ribbon, click Publish.

You also could run Register-SPWorkflowService command as below:

Register-SPWorkflowService SPSite "http://localhost/yourSite" WorkflowHostUri "https://localhost " AllowOAuthHttp " AllowOAuthHttp

The article below is about troubleshooting workflow errors.

The article below is about Register-SPWorkflowService command.

Best regards,

Sara Fan

Free Windows Admin Tool Kit Click here and download it now
May 19th, 2015 11:15pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics