Sharepoint 2010 workflow with custom infopath form

I’m trying to understand how to use the custom Infopath form with the Sharepoint 2010 workflow. I have read about a million tutorials on how to do this, but I always get "Workflow template not specified for FormURN form for this page". error.

I am using a Visual Studio project to deploy a solution. I have a module containing the .XSN form in the Forms folder and, of course, the workflow itself.

After a ton of search query, I believe that these settings should be correct:

My def form module:

<?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Module Name="OPF" Url="FormServerTemplates" RootWebOnly="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/"> <File Path="Travel.xsn" Url="Travel.xsn" Type="GhostableInLibrary" /> </Module> </Elements> 

My workflow def:

 <?xml version="1.0" encoding="utf-8" ?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <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$"> <Categories/> <MetaData> <AssociationCategories>List</AssociationCategories> <MetaData> <Instantiation_FormURN>urn:schemas-microsoft-com:office:infopath:Travel:-myXSD-2005-10-21T21-12-27</Instantiation_FormURN> </MetaData> <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl> </MetaData> </Workflow> </Elements> 

My def function:

 <?xml version="1.0" encoding="utf-8" ?> <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"> <Properties> <Property Key="GloballyAvailable" Value="true" /> <Property Key="RegisterForms" Value="Forms\*.xsn" /> </Properties> </Feature> 

I published the form from Infopath as an "admin-approved form template." After deploying the Visual Studio solution, the form appears in the Central Administration → Manage Form Templates list and is marked as Workflow Enabled = Yes. I get a No FormURN error no matter how I use the form in the workflow. For example, if I try to use it with a task.

Additional things I tried:
- Used as Infopath 2007 and 2010
- Security in the form of Infopath - "Domain"
- The alternative access path remains empty when the form is published
- Two completely different environments are used
- Endless combinations of various settings in XML files

It seems that some people managed to get this to work, but no matter what I do, it does not work for me.

Here is a link that discusses this issue with various solutions (this does not work for me):
http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010programming/thread/fac26787-1729-46c8-9021-80652b3734c8

You can only list 1 link to Stack Overflow ... first post. Typical...

So, if there are any Sharepoint experts, please help me solve this problem! This is what makes me question the whole product!

+4
source share
1 answer

I can see the InfoPath form after linking to the VS 2010 workflow, please find the blog article below to check the publication of the InfoPath form and let me know if you need help to solve the above problem.

http://sumansharepoint.blogspot.com/2008/05/points-to-remenber-when-designing.html these steps are the same for InfoPath 2007 and 2010 forms.

Below are my feature.xml and elements.xml files

Workflow.xml

Name = "MyWorkflow" →

List

  <Task0_FormURN>urn:schemas-microsoft-com:office:infopath:ApprovalForm:-myXSD-2011-01-13T09-41-32</Task0_FormURN> <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl> </MetaData> 

Feature.xml

I did not see the manifest entry of the element in your feature.xml file, please check this.

+2
source

All Articles