Infopath Xml Error
Contents |
file is not a valid XML document. April 8, 2013Uncategorizedikarstein Yesterday I had a problem on a new SharePoint 2013 farm that took me some hours to solve it. Problem: I was not able to customize forms (again) using InfoPath on lists after creating them before sucessfully. Steps infopath cannot open the following file the file is not a valid xml file to reproduce: First I created a site collection and a custom list in it. Than
Infopath The File Is Not A Valid Xml Document
I use the “Customize Form” button in the Ribbon menu. The new form opens in InfoPath designer. Than I modify the form and
Infopath Cannot Open The Following File The Form Cannot Be Opened
publish it. In the browser I verify it’s working. Than I want to change the form and click the Ribbon button “Customize Form” again. Now this happens: Error Message: InfoPath cannot open the following form: http://sharepoint.local/sites/test/Lists/My New List/Item/template.xsn
Infopath Cannot Open A New Form
The file is not a valid XML document. DTD is prohibited. Line 1, Position 9 When opening the URL of the InfoPath template in the browser I get this error from the Forms Server: (Normally there would be a download dialog.) Solution It’s so simple… 😉 - After some network, log and code analytics I could figure out that you need… … a site collection at the web application root! Remember the first screenshot above. infopath cannot open the following form the file is not a valid xml document There I showed you the possible locations for the new site collection. As you can see the root “/” is available. This means: There is no site collection at the web app root. After creating a site collection at the web application root I’m able to customize the list form with InfoPath. – After doing so: Problem solved 🙂 My friend and colleague Guido could reproduce the problem and validate the fix. - @Guido: Thank you (and have a good week while teaching SharePoint 😉 )!!! Hints As far as I have seen there are other solutions related to the same problem: Check your user has at least Contribute rights on the site. Check your site is in “Local Sites” or “Intranet” zone of the Internet Explorer. Share this:ShareEmailLike this:Like Loading... Post navigation ← Guest Blog Article on Hey, Scripting Guy! Blog - Weekend Scripter: Run C# Code from Within PowerShell SharePoint 2013 List Forms: New Small Framework Project to Store List Forms in SharePoint Library (Part 1) → One thought on “InfoPath error & solution: InfoPath cannot open the following form … The file is not a valid XML document.” Hardit Singh says: September 30, 2014 at 11:02 Thanks man. It helped me alot Reply Leave a Reply Cancel reply Subscribe in a reader Subscribe by Email Follow @IngoKarstein Subscribe to Blog v
'InfoPath cannot open the following file' by changing the contents of an InfoPath form that is linked to an InfoPath form template that was moved or copied to a different location or computer, so that you can infopath cannot open a new form. the form template is trying to access open the InfoPath form again. ADVERTISEMENTS Problem Your client had an InfoPath developer (someone you the file is not a valid xml document. dtd is prohibited do not know) build an InfoPath form template and then publish it to a SharePoint server at your client's site. You do not infopath the file is not a valid xml document unspecified error have access to the SharePoint server where the form template was published, neither do you have direct access to the InfoPath form template the other person created and deployed to SharePoint. To keep this scenario simple, let's https://blog.kenaro.com/2013/04/08/error-infopath-cannot-open-the-following-form/ assume that the InfoPath developer did not add code to the InfoPath form template, so you're dealing with a codeless InfoPath form template that was deployed to a SharePoint Form Library. The InfoPath form template is not doing exactly what your client wants it to do, and the InfoPath developer has since left the company. Now your client wants you to take a look at the form template and troubleshoot the form template and http://www.bizsupportonline.net/blog/2010/open-infopath-form-template-moved-copied-different-location-computer.htm an XML file that was created using that form template, so your client sends you both the XML file and the original InfoPath form template that was deployed to SharePoint. Now when you try to open the InfoPath form, you get the following error message: InfoPath cannot open the following file:
for a quick overview of the site Help Center Detailed answers to any questions you might have http://sharepoint.stackexchange.com/questions/103957/error-while-creating-data-connection-using-xml-document-in-infopath Meta Discuss the workings and policies of this site About https://support.office.com/en-us/article/Specify-the-compatibility-settings-for-a-form-template-dfbcca29-ddb3-4aeb-8a57-d9dbb2e1a660 Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us SharePoint Questions Tags Users Badges Unanswered Ask Question _ SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it infopath cannot only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Error while creating data connection using XML Document in InfoPath up vote 0 down vote favorite Referring to this post http://blogs.msdn.com/b/infopath/archive/2007/01/15/populating-form-data-from-sharepoint-list-views.aspx I am trying to infopath cannot open create an XML Document data connection using a URL but when I enter this URL and click the next button I get the error below: The file or folder name https://contoso.test.net/subsite/_vti_bin/owssvr.dll?Cmd=Display&List={32364DED-7FE3-4276-837C-F2AC62C04B81}&View={804CC528-34B2-4473-89DB-C4E766CACC95}&XMLDATA=TRUE&NOREDIRECT=TRUE contains characters that are not permitted. Enter different name. In thing the issue is not with URL but with XML returned by the URL. I tried this URL in browser and get below XML –
settings for a form template Applies To: InfoPath 2013, InfoPath 2010, Less Applies To: InfoPath 2013 , InfoPath 2010 , More... Which version do I have? More... When you design your form template, you can choose to create a form template that can be opened or filled out in either InfoPath or a Web browser. If the form template can be opened and filled out by using a browser, then it is called a browser-compatible form template. This type of form template can then be browser-enabled when it is published to a server running InfoPath Forms Services. This article describes how to choose a compatibility setting for a form template, either when you first create the form template or after you have already created the form template. If you're not sure of the current compatibility setting for your form template, you can refer to the Compatibility area on the InfoPath status bar, which is located in the bottom right corner of the InfoPath window. In this article Overview of browser compatibility Specify a compatibility setting when you create a form template Change the compatibility settings for an existing form template Overview of browser compatibility All form templates are compatible with InfoPath — that is, users can open and edit the forms in InfoPath, provided that the users have InfoPath installed on their computers. If you have access to a server running InfoPath Forms Services, you can design a single form template that accommodates two kinds of users — those who have InfoPath installed on their computers and those who do not. In the latter case, users fill out forms in a supported Web browser, not in InfoPath. If your users have InfoPath installed, they can open the form in InfoPath and they can experience the full range of form features. Users filling out the form in a browser have access to a more limited set of features, but benefit from being able to use the form even though they do not have InfoPath installed on their computers. If you plan to publish your form template to a server running InfoPath Forms Services, you must keep these limitations in mind. The process for designing a browser-compatible form template includes specifying a compatibility setting, either up-front