Posts

Showing posts with the label InfoPath

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.

Call SharePoint 2010 web services within browser based InfoPath 2010 forms?

Image
I recently ran across an interesting issue where InfoPath forms were calling OOB SharePoint 2010 web services. In particular, these forms contained one or more fields which called SharePoint OOB web service. These forms were published to web applications configured with Claims Authentication . Opening this form works fine as long as you open the form using InfoPath on the client. When attempting to view the form in the browser the following error occurs: Subsequently, you will see an error like the following in the ULS logs: The following query failed: GetUserProfileByName (User: 0e.t|exo-sts|user1@consoto.com, Form Name: otherForm, IP: , Connection Target: , Request: http://wfe1.contoso.com/_layouts/FormServer.aspx?XsnLocation=https://wfe1.contoso.com/sites/siteA/FormServerTemplates/IT WAR.xsn&SaveLocation= https://wfe1.contoso.com/sites/siteA/ITWARdir&ClientInstalled=t=1 , Form ID: urn:schemas-microsoft-com:office:infopath:FormLib:-myXSD-2012-07-12T16-05-43

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&SaveLocation=http

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 filename ended with a . (

LinkReplaceTimerJob threw an exception after running Update-SPInfoPathUserFileUrl

* A .rsds file is a shared data source file published to SharePoint by users to allow SQL reports to run properly in SSRS integrated mode with SharePoint. Often, customers deploy the shared data source file to a Data Connection library since the file defines a data connection to a data source. Reference : http://msdn.microsoft.com/en-us/library/bb326288.aspx * Publish a shared Data source file to a data connection library (or simply upload an existing .rsds file if you don't have SSRS running) - * Run the following PowerShell command: Get-SPWebApplication http://sp2010 | Update-SPInfoPathUserFileUrl -find " http://sp2007 " -replace " http://sp2010 " * From the event viewer on the server, you will see the following error: "The Execute method of job definition Microsoft.SharePoint.Utilities.LinkReplaceTimerJob threw an exception. Object reference not set to an instance of an object." Below is what I have gathered from Reflector and ULS logs

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 checkout is

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

Error while loading Infopath form " An error occurred while trying to connect to a web service " SharePoint 2010

Image
Error : We are getting below error while loading infopath form in SharePoint 2010: Solution : This has nothing to do with Infopath forms data connection or republish. We have to make an entry in HOST file for each of WFE's & adding site binding in the IIS web site for the web application having issue. This fixed the issue.