How to fix "The workflow template has specified no FormURN for this page." ? RRS feed

  • Question

  • I developed custom content approval workflow that is using just one ASP.NET approval form. Workflow starts fine if I click on "Check In" or "Publish a Major Version" from context menu on the page in the document library but if I try to start approval process from the page edit screen by clicking on "Submit For Approval" I got the error "The workflow template has specified no FormURN for this page". What is wrong? My feature.xml and workflow.xml listed below.

    The exception is:

    The workflow template has specified no FormURN for this page.  at Microsoft.Office.Workflow.IniWrkflIPPage.OnLoad(EventArgs ea) 
      at System.Web.UI.Control.LoadRecursive() 
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
    <?xml version="1.0" encoding="utf-8" ?>
    <Feature Id="cd38cbd4-89be-4c5d-965c-eada85893b6f"
      Title="ContentApprovalWorkflow feature"
      Description="Site Content Approval Workflow Feature"
      ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
     <ElementManifest Location="workflow.xml" />
     <Property Key="GloballyAvailable" Value="true" />
     <Property Key="RegisterForms" Value="*.xsn" />
    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      Name="Content Approval Workflow"
      Description="Content Approval Workflow"
      CodeBesideAssembly="ContentApproval, Version=, Culture=neutral, PublicKeyToken=d91677fa0924b523">

    Friday, August 19, 2011 7:23 PM


  • I found the solution. The "Submit For Approval" button from Publishing Toolbar does not support ASP.NET Forms. So you have to use InfoPath Init form for you workflow or change behavior of the button. I added the XML below to the CustomQuickAccess.xml and it fixed my issue.

    <?xml version="1.0" encoding="utf-8" ?>
    		<reference TagPrefix="cms" assembly="Microsoft.SharePoint.Publishing, Version=, Culture=neutral, 
    PublicKeyToken=71e9bce111e9429c" namespace="Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions" />
    		<ConsoleNode Action="cms:PublishWithCommentAction" ID="saPublishWithComment2" Sequence="610" ConfigMenu="Add"/>
    		<ConsoleNode ConfigMenu="Delete" ChangedNodeID="qaPublish" />


    Tuesday, August 23, 2011 8:49 PM