Reply – OOB workflow - not able to attach
Your Name
Subject
Message
or Cancel
In Reply To
OOB workflow - not able to attach
— by RakeshSundar RakeshSundar
Issue:
None of the OOTB workflows can be attached to any Library

Steps to recreate:
• Go to any library in Source and add Click Workflow settings under library tab
• Click on Add a Workflow link
• Select any OOTB workflows and fill out the form and click next
• A SharePoint Exception would be thrown and the ULS logs have been attached with this mail for your reference

Analysis done from our end:

ULS Trace:
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Office.Workflow.WrkAssocPage.CheckHistoryAndTaskLists()
at Microsoft.Office.Workflow.WrkAssocPage.AssociationOnLoad(EventArgs ea)
at Microsoft.Office.Workflow.CstWrkflIPPage.OnLoad(EventArgs ea)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Following are the steps encountered respectively that could be traced from Logs

1.Name=Request (POST:https://<SiteName>/_layouts/CstWrkflIP.aspx?List=%7B6B1FF634-6E64-48CC-A168-B8729CA1751D%7D)
2.Site=/
3.MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/_layouts/CstWrkflIP.aspx?List=%7B6B1FF634-6E64-48CC-A168-B8729CA1751D%7D]. Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3) level for this list.

4.System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Office.Workflow.WrkAssocPage.CheckHistoryAndTaskLists()
at Microsoft.Office.Workflow.WrkAssocPage.AssociationOnLoad(EventArgs ea)
at Microsoft.Office.Workflow.CstWrkflIPPage.OnLoad(EventArgs ea)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

5.Leaving Monitored Scope (Request (POST:https://<SiteName>/_layouts/CstWrkflIP.aspx?List=%7B6B1FF634-6E64-48CC-A168-B8729CA1751D%7D)). Execution Time=764.3774

“No XsltListViewWebPart was found on this page” error encountered on the step 3 (Highlighted) above could have been the cause for this issue and we were unable to proceed further from our boundary and access level.

 when I changed the master page from custom to default (v4), I am able to create the OOB workflows without any issue
• Emails are generating (Sample Email is Attached)
• Able to approve it
Please help me what should i modify in my Custom master page
Thanks in advance!