I created a custom task form for a flexi task with InfoPath. Everything is fine so far but if I want to publish the workflow, I get the following error:
Anyone seen this also?
Solved! Go to Solution.
I've never seen this error, does it always occur when you try to edit a task form via InfoPath? Try to find out if this is a general problem or only related to this one workflow or maybe even to this one task. If it's only task-related, try to re-create the task.
If you want to dig into this error, I recommend you save the infopath file locally (.xsn) and rename it manually to .cab. You will then be able to inspect all data inside this cabinet file. Maybe there were 2 template files generated by fault or there is a duplicate reference in one of the xml files. You will need to extract all files from the cabinet to edit them. After you finished your editing, simply open the manifest.xsf file in editor mode and save it again. It will then recreate a complete xsn file, which you should be able to import back into your workflow.
Can it be this part because it has got the same mode value?
<xsl:copy-of select="processing-instruction() | comment()"/>
<xsl:apply-templates select="dfs:myFields" mode="_0"/>
<xsl:apply-templates select="msxsl:node-set($var)/*" mode="_0"/>
Unfortunately I'm not really aware of the required structure of this XML. Maybe you can try to delete one of the apply-templates and see if it helps. Since this isn't an InfoPath forum, I'm not sure if someone here ever dived that deep into the inner structure of an InfoPath form. You might get better feedback in a microsoft forum.
that might be a good idea. Nevertheless, please post any relevant information here as well. Some Nintex Users have to use InfoPath because their customers don't use Nintex Forms (including myself) and might face this issue too.
I get it to work now. The reason why it didn't work was the order in which I performed the actions. After I published the form, I had to close down InfoPath completely, save the workflow action and publish the workflow. When I left InfoPath opened and changed anything after publishing the form, the error above appears.