The form has been closed / The specified form cannot be found – SharePoint 2007


Having created my InfoPath 2007 Form, created my workflow in Visual Studio 2008 and clicked Deploy I found that my workflow went to In Progress but the Instantiation Form never displayed in SharePoint and all I got was a message “The form has been closed” on the screen. Looking in the log files I could see an error

Exception occurred during request processing. (User: MOSSDEV86\Administrator, Form Name: , IP: , Request:  Form ID: , Type: InfoPathLocalizedException, Exception Message: The specified form cannot be found.)

Looking in Central Administration > Application Management > Manage Form Templates I could see my workflow, status ready and workflow enabled but I still kept getting “The form has been closed”. After a reasonable amount swearing and pulling out of hair I realised that the Form ID specified in Manage Form Templates was different to the one I used in my workflow.xml file. HOW?????

Well, I was saving my InfoPath form and look at the properties to get the URN and then publishing the file to get deployed with my code. What I hadn’t realised was that when you publish the form you then get a different URN!

REMEMBER: Use the URN from the published form and not from the saved one!!!

http://www.wahooga.com/wp-content/plugins/sociofluid/images/digg_16.png http://www.wahooga.com/wp-content/plugins/sociofluid/images/reddit_16.png http://www.wahooga.com/wp-content/plugins/sociofluid/images/stumbleupon_16.png http://www.wahooga.com/wp-content/plugins/sociofluid/images/delicious_16.png http://www.wahooga.com/wp-content/plugins/sociofluid/images/technorati_16.png http://www.wahooga.com/wp-content/plugins/sociofluid/images/google_16.png http://www.wahooga.com/wp-content/plugins/sociofluid/images/yahoobuzz_16.png http://www.wahooga.com/wp-content/plugins/sociofluid/images/twitter_16.png

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , ,

Leave a Reply

A Perfect