Home > Workflow > How to resolve “The workflow template has specified no FormURN for this page” error if you do not use any forms for the workflow.

How to resolve “The workflow template has specified no FormURN for this page” error if you do not use any forms for the workflow.

When creating a Workflow project, by default, I insert a workflow.xml snippet with something like this:
 
   1:  
   2: <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   3:   <Workflow
   4:        Name="My Workflow"
   5:        Description="This workflow ..."
   6:        Id="GUID"
   7:        CodeBesideClass="ProjectName.Workflow1"
   8:        CodeBesideAssembly="ProjectName, Version=1.0.0.0,
   9:          Culture=neutral,
  10:          PublicKeyToken=publicKeyToken"
  11:        TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160"
  12:        AssociationUrl="_layouts/CstWrkflIP.aspx"
  13:        InstantiationUrl="_layouts/IniWrkflIP.aspx"
  14:        ModificationUrl="_layouts/ModWrkflIP.aspx"
  15:        StatusUrl="_layouts/WrkStat.aspx">
  16:  
  17:     <Categories/>
  18:     <MetaData>
  19:       <AssociateOnActivation>false</AssociateOnActivation>
  20:     </MetaData>
  21:   </Workflow>
  22: </Elements>
  23:  

Usually I don’t have any forms associated with the workflow, after deploy the workflow, I will get the “The workflow template has specified no FormURN for this page.” error.

To resolve this, just remove the TaskListContentTypeId, AssociationUrl, InstantiationUrl, ModificationUrl properties of the workflow and redeploy the workflow. 

   1: <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   2:   <Workflow
   3:        Name="My Workflow"
   4:        Description="This workflow ..."
   5:        Id="GUID"
   6:        CodeBesideClass="ProjectName.Workflow1"
   7:        CodeBesideAssembly="ProjectName, Version=1.0.0.0,
   8:          Culture=neutral, 
   9:          PublicKeyToken=publicKeyToken"
  10:        TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160"
  11:        AssociationUrl="_layouts/CstWrkflIP.aspx"
  12:        InstantiationUrl="_layouts/IniWrkflIP.aspx"
  13:        ModificationUrl="_layouts/ModWrkflIP.aspx"
  14:        StatusUrl="_layouts/WrkStat.aspx">
  15:  
  16:     <Categories/>
  17:     <MetaData>
  18:       <AssociateOnActivation>false</AssociateOnActivation>
  19:     </MetaData>
  20:   </Workflow>
  21: </Elements>
Categories: Workflow
  1. Ramji
    January 15, 2009 at 3:07 pm

    I\’m getting the “The workflow template has specified no FormURN for this page" in my workflow. I didn\’t use AssociationUrl, InstatiationUrl and ModificationUrl. But still I\’m getting this error. Am working in VS 2005. Please help me out.ThanksRamji

  1. No trackbacks yet.

Leave a comment