<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Qdabra Database Accelerator</title><link>https://www.infopathdev.com:443/forums/61.aspx</link><description>Qdabra Database Accelerator (DBXL) simplifies connecting InfoPath to SQL Server and SharePoint for codeless storage, permissions, workflow, and reporting on InfoPath forms. This forum also supports users of Qdabra's WSSP.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: QueryDB Problems</title><link>https://www.infopathdev.com:443/forums/thread/53343.aspx</link><pubDate>Fri, 02 Apr 2010 13:16:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53343</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53343.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53343</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Also, comparing your query strings I notice:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;you&amp;#39;re using #CORLOG# in one and CORLOG in the other (for the database parameter).&lt;/li&gt;&lt;li&gt;You have a maxrows of 1 in the concat statement. If you are filtering, and you expect to only find one matching value, then the maxrows parameter won&amp;#39; t be necessary.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;lt;query database=&amp;#39;#CORLOG#&amp;#39; table=&amp;#39;vendor-tbl&amp;#39; 
maxrows=&amp;#39;2&amp;#39;&amp;gt;&amp;lt;columns&amp;gt;&amp;lt;column name=&amp;#39;VENCONTR&amp;#39;/&amp;gt;&amp;lt;column 
name=&amp;#39;VENNO&amp;#39;/&amp;gt;&amp;lt;/columns&amp;gt;&amp;lt;/query&amp;gt; &lt;/p&gt;&lt;p&gt;concat(&amp;quot;&amp;lt;query database=&amp;#39;CORLOG&amp;#39; table=&amp;#39;vendor-tbl&amp;#39; 
maxrows=&amp;#39;1&amp;#39;&amp;gt;&amp;lt;columns&amp;gt;&amp;lt;column name=&amp;#39;VENCONTR&amp;#39;/&amp;gt;&amp;lt;column 
name=&amp;#39;VENNO&amp;#39;/&amp;gt;&amp;lt;/columns&amp;gt;&amp;lt;filter&amp;gt;&amp;lt;eq&amp;gt;&amp;lt;column 
name=&amp;#39;VENCONTR&amp;#39;/&amp;gt;&amp;lt;value&amp;gt;&amp;quot;, 
xdXDocument:get-DOM()/my:myFields/my:ContractAgreementNumber 
,&amp;quot;&amp;lt;/value&amp;gt;&amp;lt;/eq&amp;gt;&amp;lt;/filter&amp;gt;&amp;lt;/query&amp;gt;&amp;quot;) &lt;/p&gt;&lt;p&gt;I would suggest addressing both to make sure you don&amp;#39;t run into other issues later. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: QueryDB Problems</title><link>https://www.infopathdev.com:443/forums/thread/53019.aspx</link><pubDate>Tue, 23 Mar 2010 01:46:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53019</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53019.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53019</wfw:commentRss><description>&lt;p&gt;That error typically means that the queryXml parameter is not valid (well-formed) XML.&lt;/p&gt;&lt;p&gt;Can you try displaying the queryXml value in a TextBox on your form (just drag the field into your form and display it as a text box) so you can see what value it has when the query is being run, then copy and paste it into this forum? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>QueryDB Problems</title><link>https://www.infopathdev.com:443/forums/thread/53007.aspx</link><pubDate>Mon, 22 Mar 2010 18:07:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53007</guid><dc:creator>brandon.gill</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53007.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=61&amp;PostID=53007</wfw:commentRss><description>&lt;p&gt;Hello - &lt;/p&gt;
&lt;p&gt;I followed these instructions to the letter &lt;a href="http://www.infopathdev.com/files/folders/web_methods/entry32474.aspx"&gt;http://www.infopathdev.com/files/folders/web_methods/entry32474.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;yet I am getting an error.&amp;nbsp; I am trying a dynamic query &lt;/p&gt;
&lt;p&gt;here is the sample query:&lt;br /&gt;&amp;lt;query database=&amp;#39;#CORLOG#&amp;#39; table=&amp;#39;vendor-tbl&amp;#39; maxrows=&amp;#39;2&amp;#39;&amp;gt;&amp;lt;columns&amp;gt;&amp;lt;column name=&amp;#39;VENCONTR&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;VENNO&amp;#39;/&amp;gt;&amp;lt;/columns&amp;gt;&amp;lt;/query&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I put this in the the sample value when I am setting up the data connection for GetColumnsXMLStrQuery.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;When I setup the field In the rules I use the set a field value and use this query:&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;&amp;lt;query database=&amp;#39;CORLOG&amp;#39; table=&amp;#39;vendor-tbl&amp;#39; maxrows=&amp;#39;1&amp;#39;&amp;gt;&amp;lt;columns&amp;gt;&amp;lt;column name=&amp;#39;VENCONTR&amp;#39;/&amp;gt;&amp;lt;column name=&amp;#39;VENNO&amp;#39;/&amp;gt;&amp;lt;/columns&amp;gt;&amp;lt;filter&amp;gt;&amp;lt;eq&amp;gt;&amp;lt;column name=&amp;#39;VENCONTR&amp;#39;/&amp;gt;&amp;lt;value&amp;gt;&amp;quot;, xdXDocument:get-DOM()/my:myFields/my:ContractAgreementNumber ,&amp;quot;&amp;lt;/value&amp;gt;&amp;lt;/eq&amp;gt;&amp;lt;/filter&amp;gt;&amp;lt;/query&amp;gt;&amp;quot;)&lt;/p&gt;
&lt;p&gt;I am referencing a field in the form as my &amp;quot;where&amp;quot; clause.&amp;nbsp; I add the rule to query database after the set field value.&lt;/p&gt;
&lt;p&gt;The error that I get is &lt;strong&gt;Some rules were not applied.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;here is the detailed error:&lt;/p&gt;
&lt;p&gt;The query cannot be run for the following DataObject: GetColumnsXMLStrQuery&lt;br /&gt;InfoPath cannot run the specified query.&lt;br /&gt;The SOAP response indicates that an error occurred on the server:&lt;/p&gt;
&lt;p&gt;System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&amp;gt; System.ArgumentException: Invalid parameter&lt;br /&gt;Parameter name: queryXml ---&amp;gt; System.ArgumentException: Invalid parameter&lt;br /&gt;Parameter name: queryXml&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Qdabra.DataBaseService.QueryDBService.GetColumnsXMLStrQuery(String queryXml)&lt;br /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Qdabra.DataBaseService.QueryDBService.GetColumnsXMLStrQuery(String queryXml)&lt;br /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I am not sure how to trouble shoot the invalid parameter.&lt;/p&gt;</description></item></channel></rss>