Microsoft Knowledge Base Email Alertz

(931413) - Describes the issue in which you may receive error messages that resemble the The 'urn:schemas-microsoft-com:xml-msdata:UseDataSetSchemaOnly' attribute is not declared error message. A workaround is provided.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

You may receive error messages when you try to run a query by using the data connection to SQL Server 2005 XML Web services in an InfoPath 2007 form template

Article ID: 931413 - View products that this article applies to.

SYMPTOMS

Consider the following scenario. You create a Microsoft Office InfoPath 2007 form template that contains one data connection or more than one data connection to Microsoft SQL Server 2005 XML Web services. Then, you try to run a query by using the data connection. In this scenario, you may receive error messages that resemble the following:
Error message 1
The 'urn:schemas-microsoft-com:xml-msdata:UseDataSetSchemaOnly' attribute is not declared.
Error message 2
The 'urn:schemas-microsoft-com:xml-msdata:UDTColumnValueWrapped' attribute is not declared.

CAUSE

This issue occurs because the attribute contents of the SqlRowSet element in the http://schemas.microsoft.com/sqlserver/2004/SOAP/types namespace are processed too strictly.

WORKAROUND

To work around this issue, follow these steps:
  1. Save the solution as source files.
  2. Find the schema that has the http://schemas.microsoft.com/sqlserver/2004/SOAP/types target namespace.
  3. Locate the SqlRowSet element, and then add the following code to the SqlRowSet complex type.
    <xsd:anyAttribute namespace="urn:schemas-microsoft-com:xml-msdata" processContents="lax"/>

Properties

Article ID: 931413 - Last Review: February 1, 2007 - Revision: 1.1
APPLIES TO
  • Microsoft Office InfoPath 2007
  • Microsoft Office Forms Server 2007
Keywords: 
kbexpertiseinter kbtshoot kberrmsg kbprb KB931413
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate