<?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 qRules</title><link>https://www.infopathdev.com:443/forums/131.aspx</link><description>qRules adds support to your InfoPath  forms. With qRules, you can add features to your form that require code, but without having to write it. </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119366.aspx</link><pubDate>Thu, 28 Jun 2018 20:26:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119366</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119366.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119366</wfw:commentRss><description>My Apologies for not posting back sooner. The problem was rectified with the normalize-space() command. Although, I must add that adding it to the insert statement did decrease performance, so I applied to the field before the insert was invoked. Thanks again for your help on this, everyone.</description></item><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119215.aspx</link><pubDate>Fri, 08 Jun 2018 23:18:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119215</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119215.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119215</wfw:commentRss><description>Hi Jimmy and Hilary. It&amp;#39;s always a pleasure to see you both. Hope your doing well. I have confirmed that running the SQL statement themselves in SQL as they were generated in InfoPath, runs in SQL perfectly and inserts all rows of data. Jimmy to address your concerns if the SQL field doesn&amp;#39;t allow for such, it will just truncate that line at the point of the hard return. I have already addressed this for those fields and am doing something to ensure this doesn&amp;#39;t happen again. 

Joanne, I will try again and utilize the normalize space command at the point of the command for insert to see is this helps. May not be able to do this until Monday  Morning. I will update you all as soon as humanly possible and thank you for all of your efforts.</description></item><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119208.aspx</link><pubDate>Fri, 08 Jun 2018 14:56:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119208</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119208.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119208</wfw:commentRss><description>I know Jo-Anne is actively investigating this (I was out of the office for a few days) - but I wanted to ask if you&amp;#39;d tried running a SQL trace to see if it provided any insight? EDITED TO ADD: I see Jimmy replied and I hadn&amp;#39;t refreshed the page! A SQL trace still might help pinpoint the issue...</description></item><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119207.aspx</link><pubDate>Fri, 08 Jun 2018 14:54:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119207</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119207.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119207</wfw:commentRss><description>&lt;p&gt;Hello CCBSMF,&lt;/p&gt;
&lt;p&gt;I suspect that the reason your query is failing on rows 4 and 7 is that in both of those rows (and only these rows), the prd_vndr_part_desc field contains a line break.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not completely sure why this is causing an issue and am unable to reproduce this error myself, but that seems like the most likely culprit.&lt;/p&gt;
&lt;p dir="ltr"&gt;If it&amp;#39;s not important to preserve these line breaks, what I would suggest doing is using the normalize-space() function to turn these line breaks into single spaces when you build the SQL command:&lt;/p&gt;
&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;
&lt;p dir="ltr"&gt;concat(&amp;quot;ExecuteSqlQuery /dsname=insert /sql=set implicit_transactions off INSERT INTO [table] (column) VALUES(&amp;#39;&amp;quot;, &lt;span style="color:red;"&gt;normalize-space(&lt;u&gt;field&lt;/u&gt;)&lt;/span&gt;, &amp;quot;&amp;#39; , &amp;#39;&amp;quot;, &lt;span style="color:red;"&gt;normalize-space(&lt;u&gt;otherField&lt;/u&gt;)&lt;/span&gt;, &amp;quot;&amp;#39;)&amp;quot;)&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p dir="ltr"&gt;If there is a need to preserve the line breaks, I&amp;#39;m sure there is a way to make it work, but it will most likely be considerably trickier.&lt;/p&gt;&lt;p dir="ltr"&gt;In any case&amp;nbsp;please try the approach above and let us know if it makes any difference.&lt;/p&gt;</description></item><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119200.aspx</link><pubDate>Thu, 07 Jun 2018 23:20:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119200</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119200.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119200</wfw:commentRss><description>Any luck thus far? :)</description></item><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119198.aspx</link><pubDate>Thu, 07 Jun 2018 14:42:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119198</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119198.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119198</wfw:commentRss><description>Thanks for sending your XSN. We will look into it and hope to have a solution for you soon. 

I&amp;#39;m afraid I don&amp;#39;t have permissions to delete your attachment from your post. Will you be able to delete it? You can also email us directly at Support (at) Qdabra (dot) com. :)</description></item><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119197.aspx</link><pubDate>Thu, 07 Jun 2018 14:19:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119197</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119197</wfw:commentRss><description>Attached is the xsn. The button with the command is on the &amp;quot;View Changes&amp;quot; view and is called &amp;quot;Insert into ***&amp;quot; where it sets the submit_prd field to true, then that field runs the command for the RG contained in PRD. I ask that you remove the attachment or delete my reply if need be so that no one else can see it. The XML file I attached on my question above is the saved filed out form with the commands and the errors on the &amp;quot;zData&amp;quot; view for Rows 4 and 7 of the PRD insert. The error node is simply stating &amp;quot;Invalid Command&amp;quot;. As I said previously the  insert into statement works fine in SQL and works fine for the other 8 rows when ran in InfoPath utilizing the ExecuteSqlQuery command. Please let me know if you have any questions.</description></item><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119196.aspx</link><pubDate>Thu, 07 Jun 2018 13:53:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119196</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119196</wfw:commentRss><description>Can you reply with the complete error details and attach your XSN? :) Thank you</description></item><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119195.aspx</link><pubDate>Thu, 07 Jun 2018 13:34:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119195</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119195.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119195</wfw:commentRss><description>Hi Joanne, and thank you for responding. My original post actually has the .xml file with everything you have requested. If you need the .xsn file just let me know. :)</description></item><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119194.aspx</link><pubDate>Thu, 07 Jun 2018 05:14:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119194</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119194.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119194</wfw:commentRss><description>Hi -

can you put the Errors node (/QdabraRules/ExecutionHistory/History/Error) from the QdabraRules data source on your form and send us a copy of the error that is displayed?  Also, can you send us the syntax for your command?</description></item><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119193.aspx</link><pubDate>Thu, 07 Jun 2018 04:41:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119193</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119193.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119193</wfw:commentRss><description>Can anyone please respond? Seems like this might be an issue with qRules. :/</description></item><item><title>Re: ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119191.aspx</link><pubDate>Wed, 06 Jun 2018 17:35:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119191</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119191.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119191</wfw:commentRss><description>I can&amp;#39;t remove the other post but here is the link.
http://www.infopathdev.com/forums/p/39064/119186.aspx#119186</description></item><item><title>ExecuteSqlQuery Invalid command?</title><link>https://www.infopathdev.com:443/forums/thread/119190.aspx</link><pubDate>Wed, 06 Jun 2018 17:25:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119190</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119190.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=119190</wfw:commentRss><description>Hi all. I am utilizing the QRules command ExecuteSqlQuery and it works great. But now its giving me some weird behavior? It says its an invalid command for only 2 rows of data that I&amp;#39;m inserting into sql. Obviously the command is good for the other 8 rows of repeating data. so I questioned the data itself, but when I take the SQL insert command to SSMS and run it. Works like a charm. I&amp;#39;m puzzled with this one. Can anyone please assist? Attached is the XML saved form and a screenshot. 

I posted this in another area and will remove it as it is best suited in the qRules forum.</description></item></channel></rss>