Microsoft KB Archive/922204

= Error message when you try to open an InfoPath 2007 form in preview mode: &quot;Failed connection to data source&quot; =

Article ID: 922204

Article Last Modified on 11/3/2006

-

APPLIES TO


 * Microsoft Office Forms Server 2007

-





SYMPTOMS
Consider the following scenario. You create a Microsoft Office InfoPath 2007 form. You add a universal data connection (.udcx) file that is located in a data connection library. The data connection library is on a computer that is running Microsoft Office Forms Server 2007 and Microsoft Office SharePoint Server 2007. You drag the data source fields onto the InfoPath 2007 form, and then you save the InfoPath 2007 form. In this scenario, you receive the following error message when you try to open the InfoPath 2007 form in preview mode:

Failed connection to data source

When you click Show Details, you receive the following error message:

The query cannot be run for the following DataObject:

InfoPath cannot run the specified query.

The SOAP message cannot be parsed.



CAUSE
This issue occurs when the  element in the .udcx file contains the path of a SharePoint library or of a SharePoint list. For example, this issue occurs when the  element in the .udcx file resembles the following. http://// is a placeholder for the name of the computer that is running Forms Server 2007 and SharePoint Server 2007.
 * is a placeholder for the name of the SharePoint site.
 * is a placeholder for the name of the data connection library that contains the .udcx file.

In this case, the  element in the .udcx file is used to construct a URL that resembles the following when InfoPath 2007 is in preview mode:

http:// / / /Forms/AllItems.aspx/_vti_bin/lists.asmx

Additionally, the connection to the data source fails.



RESOLUTION
To resolve this issue, change the .udcx file. In the  element, use the SharePoint site name instead of the full path. For example, use the following. http:///

Keywords: kbexpertisebeginner kbtshoot kbprb KB922204

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.