locked
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"
    
      Version="12.0.0.0"
    
      Scope="Site"
    
      ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
    
      ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"
    
      xmlns="http://schemas.microsoft.com/sharepoint/">
    
     <ElementManifests>
    
     <ElementManifest Location="workflow.xml" />
    
     </ElementManifests>
    
     <Properties>
    
     <Property Key="GloballyAvailable" Value="true" />
    
     <Property Key="RegisterForms" Value="*.xsn" />
    
     </Properties>
    
    </Feature>
    
    
    
    
    <?xml version="1.0" encoding="utf-8" ?>
    
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    
     <Workflow
    
      Name="Content Approval Workflow"
    
      Description="Content Approval Workflow"
    
      Id="7eb90053-14a2-4269-9c7a-ba6e984a9b19"
    
      CodeBesideClass="ContentApprovalWorkflow.ContentApprovalWorkflow"
    
      CodeBesideAssembly="ContentApproval, Version=1.0.0.1, Culture=neutral, PublicKeyToken=d91677fa0924b523">
    
     <Categories/>
    
     <MetaData>
    
      <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
    
      <InitiationType>Manual;#OnMajorCheckIn</InitiationType>
    
     </MetaData>
    
     </Workflow>
    
    </Elements>
    
    
    
    




    Oleg
    Friday, August 19, 2011 7:23 PM

Answers

  • 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" ?>
    <Console>
    	<references>
    		<reference TagPrefix="cms" assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, 
    PublicKeyToken=71e9bce111e9429c" namespace="Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions" />
    	</references>
    	<structure>
    		<ConsoleNode Action="cms:PublishWithCommentAction" ID="saPublishWithComment2" Sequence="610" ConfigMenu="Add"/>
    		<ConsoleNode ConfigMenu="Delete" ChangedNodeID="qaPublish" />
    	</structure>
    </Console>
    
    

     


    Oleg
    Tuesday, August 23, 2011 8:49 PM