install infoPath workflow application on sharepoint server 2007 problem
i had follow the ECM workflow example - HelloWorldSequential demo and construct a simple infoPath workflow app. that contains two infoPath form.
After the project compiled and feature.xml, workflow.xml, install.bat were defined, when i run the install.bat, it shows"The XSN can not be used on server."
But when i run the demo install.bat, it could complete the setup successfully.
Anybody can help?
Navigate to a command prompt, navigate to this folder: %programfiles%\common files\microsoft shared\web server extensions\12\bin and execute this command on each of your XSN files: stsadm.exe -o verifyformtemplate -filename <complete path to your xsn including the name.xsn>
See what error you are getting?
after trying to verify my xsn form, i got this error,
"FatalErrorNoThrow : This form template has not been correctly published to be browser-enabled. Open the form template in InfoPath Design mode, and click Publish Form Template in the Design Tasks task pane. Follow the steps in the Publishing Wizard to republish the form template, and then try again."But i has followed the tutorial from microsoft and set the infoPath to be browser-enabled. Is there any step i miss?
If something goes wrong, one of them the infamous “XSN can not be used on the server” error, you can troubleshoot the problem with the following steps:
Navigate to a command prompt
Navigate to this folder: %programfiles%\common files\microsoft shared\web server extensions\12\bin
Execute this command on each of your XSN files: stsadm.exe -o verifyformtemplate -filename <complete path to your xsn including the name.xsn>
As example:
C:\SharePointFiles\VSProjects\CustomApproval>"%programfiles%\common files\microsoft shared\web server extensions\12\bin\stsadm" -o verifyformtemplate -filename FormsDesignVersion\StatusReport.xsn
There were 1 errors and 0 warnings when verifying this form template.
FatalErrorNoThrow : This form template has not been correctly published to be browser-enabled. Open the form template in InfoPath Design mode, and click Publish Form Template in the Design Tasks task pane. Follow the steps in the Publishing Wizard to republish the form template, and then try again.
You get this error Message, when you tried to deploy the design version of the infopath form, not the PUBLISHED version.
In my VS project, I have two subfolders: "FormsDesignVersion" ans "Forms". I create the forms in FormsDesignVersion and publish them into "Froms", which is the folder I use in the install.bat and workflow.xml.
When I check the published version, I don't get the Error. Instead I get other (uncritical) warnings:
C:\SharePointFiles\VSProjects\CustomApproval>"%programfiles%\common files\microsoft shared\web server extensions\12\bin\stsadm" -o verifyformtemplate -filename Forms\StatusReport.xsn
There were 0 errors and 3 warnings when verifying this form template.
DegradedPerformance : DataObject 'ItemMetadata' is configured to be initialized on load.
DegradedPerformance : Could not create a cached version of a new form. This will impact server performance. The previous 1 message or messages mention the reasons why server optimization of this form template was not possible. If performance is critical, those messages should be evaluated to determi
ne whether the corresponding features are needed in the form.
Ignored : One or more form templates with this file name already exist on the server. You may encounter problems from activation if a form template with the same file name is already present in the site collection.
With the published version I had no problem to deploy and to render in a workflow process.
I hope this helps. In the examles they do many things wrong and it is hard to find the right solutions... It is hard to fail with HelloWorld sample projects :-)
Grettings, Roli