InfoPath Web based form and Windows SharePoint Services SP1 error
Oct 29, 2009
Today, I ran into a strange error when I was developping a custom InfoPath enabling some cascading dropdown menus (this subject interests you? Take a look at the Cascading Dropdowns in Browser Forms article from the InfoPath Team Blog).
Here is the exception I encountered:
Unexpected end of file while parsing Name has occurred. Line 1, position 708. System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 1, position 708.[...]
After a lot of searches on the Internet, I’d found a very helpful post on the InfoPathDev forums.
To summarise, if the server on which you’re developing is running with Windows SharePoint Services SP1 (Service Pack 1), your InfoPath form must not have a useless secondary Data Connection (declared but not used at all on your form).
Very simple… if you know it!