Posts

Showing posts with the label Forms

InfoPath Error:The following location is not accessible, because it is in a different site collection

A strange error occurred in one of my projects. In my SharePoint 2013 environment, I’ve a web application running on port 80. When I need another web app, I gave it port 89. After giving a CNAME , I setup AAM and IIS bindings so that users can access my web app by writing http://xxx.com.tr instead of http://sharepoint:89 . So everything worked fine except InfoPath. I have some InfoPath forms deployed on this new web app running on 89. When I tried to open any of this forms it gave me the following error.

Quick Fix For “There has been an error while loading the form”

Image
I’m testing a custom SharePoint Designer 2010 activity this fine Sunday afternoon and I was unexpectedly hitting a “Critical Error” when trying to launch the workflow: There has been an error while loading the form. Click Start Over to load a new copy of the form.  If this error persists, contact the support team for the Web Site. Click Close to exit this message. Show error details Of course, if you click the “Show error details” button all it does is show you a correlation ID: * In my case, this turned out to be an Alternate Access Mappings problem. * I looked at the log file in the 14 hive and saw that InfoPath was complaining about an AAM issue (since I was hitting Localhost instead of the server name).  I changed my URL and that solved it. Ex : * Here the problem in this case was with the URL. First I was giving the below URL: http://win-pfcp2dgt8di/_layouts/15/FormServer.aspx?XsnLocation=http://win-pfcp2dgt8di/MyTestFormLib/Forms/template.xsn&SaveLoca...

InfoPath 2010 – When creating a filename that breaks your submit

Image
When using a new product a day never goes by when you don’t learn something new and today was no exception.  I’ve been working on 3 new forms and today I was making tweaks to a couple of the forms and after publishing one of them I ran into the below errors when trying to submit a new form to a form library.  The error messages that I was receiving  were really vague to for the actual problem. InfoPath cannot submit the form. An error occurred while the form was being submitted. The form cannot be submitted to the following location: form library url The site may be offline, read-only, or otherwise unavailable. The thread is already in background processing mode. * Then reviewed the changes that were made before it broke and couldn’t find anything wrong.  Started to look at the error messages again and when I scrolled over to the right to view full URL a light bulb turned on because * I noticed something that a previous client had a problem with.  My f...

Error in InfoPath web form while getting REST data from SharePoint lists

Image
Environment: SharePoint 2010, InfoPath 2010 web forms, REST data accessing data in SharePoint lists Only users with "Read" permission level see this error when the REST data connection is queried. "A Microsoft SharePoint Server State Service error occurred while processing your request. For more information, contact your server farm administrator. Click Start Over to load a new copy of the form. If this error persists, contact the support team for the Web site. Click Close to exit this message. " * After comparing the Permissions for "Read" and "Contribute" permission levels, the following permission is needed in order for "Read" users to access data via REST web service. * "Browse Directories  -  Enumerate files and folders in a Web site using SharePoint Designer and Web DAV interfaces. " Click Submit button on the page to save the change.

InfoPath 2010 browser-enabled forms cannot be opened - "The following document is not a valid InfoPath form"

Environment: SharePoint 2010, InfoPath 2010 browser-enabled forms Issue description: We have a lot of InfoPath forms in SharePoint 2010.  These forms were migrated from InfoPath 2003 client to InfoPath 2010 browser-enabled. Occasionally a few InfoPath forms cannot be opened in browser with the following error: There has been an error while loading the form. The following document is not a valid InfoPath form: {path of form}   Cause: After doing some research and comparision, I noticed that we have a rich text field in the form that users use to copy and past html content from the internet. The pasted content includes the following string that caused this issue: <?XML:NAMESPACE PREFIX = "[default]" http:="http:"  xmlns:http="urn:http"  ?> Resolution: • Download the form to local machine. Open the form in notepad. Find the above string and delete. • From SharePoint library, find the affected item. • Checkout the item (if ch...

Web-enabled InfoPath form - There has been an error while loading the form

Created a new InfoPath 2013 form using instructions  SharePoint 2013 and InfoPath 2013 - Creating Web Enabled Forms Error details: "The following location is not accessible, because it is in a different site collection:http://spsites/FormServerTemplates/UserReg.xsn?SaveLocation=http://staff.hc.qld.edu.au/UserRegistration/&Source=http://staff.hc.qld.edu.au/UserRegistration/Forms/AllItems.aspx&ClientInstalled=false&OpenIn=Browser&NoRedirect=true&XsnLocation=http://SPSITES/FormServerTemplates/UserReg.xsn. Correlation ID:3c87129c-78e7-0058-eb53-89867759b7ac" Solution : * Do you have " Request Management "  turned on ? If so, try stopping the service and then access the InfoPath form. * Looks like this particular service is causing some problems with InfoPath forms if alternate access mappings are not completely correct. * If you look at your error message, the XSN is pointing to a different URL( http://spsites ). This is either name of ...

SharePoint 2013 and InfoPath 2013 - Creating Web Enabled Forms

Image
In this article, you will learn how to create web enabled InfoPath forms. InfoPath is an information gathering tool and is used to create XML forms. People have always been trying to come up with a standard for creating electronic forms. Before InfoPath, companies created electronic forms in different formats. InfoPath has helped companies to adhere to a standard. Coding XML manually may not be an interesting job but creating XML forms with InfoPath has really made this job quite easier. All clients must have InfoPath installed on their machines in order to open the forms. It could be a problem for smaller companies to provide InfoPath client to all the users. What can be the solution then? Solution is to create web enabled forms that can be opened in web browser without having to install InfoPath client on user machines. Following is a step-by-step guide that will show you how to create and deploy a web enabled form: 1.Open InfoPath (Start > All Programs > Microsoft Offic...