Note that there are some explanatory texts on larger screens.

plurals
  1. POSharepoint 2010 workflow with custom infopath form
    text
    copied!<p>I am trying to figure out how to use a custom Infopath form with a Sharepoint 2010 workflow. I have read about a million tutorials on how to do this, but I always end up receiving a "The workflow template has specified no FormURN for this page." error. </p> <p>I use a Visual Studio project to deploy the solution. I have a Module containing the .XSN form in a "Forms" folder and of course the Workflow itself.</p> <p>After tons of googling I think these settings should be correct:</p> <p>My Form Module def:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;Module Name="OPF" Url="FormServerTemplates" RootWebOnly="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;File Path="Travel.xsn" Url="Travel.xsn" Type="GhostableInLibrary" /&gt; &lt;/Module&gt; &lt;/Elements&gt; </code></pre> <p>My Workflow def:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;Workflow Name="Godkjenning av timelister" Description="My SharePoint Workflow" Id="d92ce465-4fbd-46ee-9e44-ff0320d2bb75" TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160" CodeBesideClass="OPFWorkflowTest2.Godkjenning_av_timelister.Godkjenning_av_timelister" InstantiationUrl="_layouts/IniWrkflIP.aspx" CodeBesideAssembly="$assemblyname$"&gt; &lt;Categories/&gt; &lt;MetaData&gt; &lt;AssociationCategories&gt;List&lt;/AssociationCategories&gt; &lt;MetaData&gt; &lt;Instantiation_FormURN&gt;urn:schemas-microsoft-com:office:infopath:Travel:-myXSD-2005-10-21T21-12-27&lt;/Instantiation_FormURN&gt; &lt;/MetaData&gt; &lt;StatusPageUrl&gt;_layouts/WrkStat.aspx&lt;/StatusPageUrl&gt; &lt;/MetaData&gt; &lt;/Workflow&gt; &lt;/Elements&gt; </code></pre> <p>My Feature def:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;Feature xmlns="http://schemas.microsoft.com/sharepoint/" ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"&gt; &lt;Properties&gt; &lt;Property Key="GloballyAvailable" Value="true" /&gt; &lt;Property Key="RegisterForms" Value="Forms\*.xsn" /&gt; &lt;/Properties&gt; &lt;/Feature&gt; </code></pre> <p>I have published the form from Infopath as an "Administrator approved form template". After I deploy the Visual Studio Solution the form is displayed in the "Central Administration -> Manage Form Templates" list and is marked as "Workflow Enabled=Yes". I get the No FormURN error no matter how I use the form in the workflow. For instance if I try to use it with a task.</p> <p>Additional things I have tried:<br> - Used both Infopath 2007 and 2010<br> - Security on Infopath form is "Domain"<br> - The alternate access path is left empty when publishing the form<br> - Used two completely separate environments<br> - Endless combinations of different settings in the XML files </p> <p>It seems like some people have managed to get this to work, but no matter what I do it doesn't work for me. </p> <p>Here is a link that discuss this problem with various solutions (that doesnt work for me):<br> <a href="http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010programming/thread/fac26787-1729-46c8-9021-80652b3734c8" rel="nofollow">http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010programming/thread/fac26787-1729-46c8-9021-80652b3734c8</a> </p> <p>Can only list 1 link on Stack Overflow... first post. Typical... </p> <p>So if there is any Sharepoint experts out there, please help me resolve this problem! This is the kind of thing that makes me question the whole product!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload