<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Null SQL Statement error from executeSQLQuery in Management</title>
    <link>https://community.cisco.com/t5/management/null-sql-statement-error-from-executesqlquery/m-p/3540484#M1792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've just upgraded our CUCM to 11.5.1.SU1 and I've been asked by the telecoms manager to update some AXL scripts that I wrote some years ago.&amp;nbsp; These have been working fine under the previous 8.6 version of CUCM, but now fail.&amp;nbsp; Lots of them use executeSQLQuery AXL calls, and these now seem to be failing.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;soap:Envelope xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:soap="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;soap:Body&amp;gt;&amp;lt;executeSQLQuery xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/11.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/11.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;sql xsi:type="xsd:string"&amp;gt;select NumPlan.pkid, NumPlan.dnorpattern, NumPlan.description from NumPlan where NumPlan.tkPatternUsage = 7&amp;lt;/sql&amp;gt;&amp;lt;/executeSQLQuery&amp;gt;&amp;lt;/soap:Body&amp;gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now dies with the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;soapenv:Fault&amp;gt;&amp;lt;faultcode&amp;gt;soapenv:Client&amp;lt;/faultcode&amp;gt;&amp;lt;faultstring&amp;gt;Null SQL statement&amp;lt;/faultstring&amp;gt;&amp;lt;detail&amp;gt;&amp;lt;axlError&amp;gt;&amp;lt;axlcode&amp;gt;-79726&amp;lt;/axlcode&amp;gt;&amp;lt;axlmessage&amp;gt;Null SQL statement&amp;lt;/axlmessage&amp;gt;&amp;lt;request&amp;gt;executeSQLQuery&amp;lt;/request&amp;gt;&amp;lt;/axlError&amp;gt;&amp;lt;/detail&amp;gt;&amp;lt;/soapenv:Fault&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, there's definitely a "sql" element inside the executeSQLQuery, with the correct xsi:type. So why does the server think there isn't?&amp;nbsp; The error code -79726 looks to be coming from the Informix database (it has the same error message text as well according to an IBM site), so looks like something is amiss between the AXL request and the database that's causing the SQL to go missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2016 17:12:23 GMT</pubDate>
    <dc:creator>lborojimll</dc:creator>
    <dc:date>2016-12-05T17:12:23Z</dc:date>
    <item>
      <title>Null SQL Statement error from executeSQLQuery</title>
      <link>https://community.cisco.com/t5/management/null-sql-statement-error-from-executesqlquery/m-p/3540484#M1792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've just upgraded our CUCM to 11.5.1.SU1 and I've been asked by the telecoms manager to update some AXL scripts that I wrote some years ago.&amp;nbsp; These have been working fine under the previous 8.6 version of CUCM, but now fail.&amp;nbsp; Lots of them use executeSQLQuery AXL calls, and these now seem to be failing.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;soap:Envelope xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:soap="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;soap:Body&amp;gt;&amp;lt;executeSQLQuery xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/11.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/11.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;sql xsi:type="xsd:string"&amp;gt;select NumPlan.pkid, NumPlan.dnorpattern, NumPlan.description from NumPlan where NumPlan.tkPatternUsage = 7&amp;lt;/sql&amp;gt;&amp;lt;/executeSQLQuery&amp;gt;&amp;lt;/soap:Body&amp;gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now dies with the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;soapenv:Fault&amp;gt;&amp;lt;faultcode&amp;gt;soapenv:Client&amp;lt;/faultcode&amp;gt;&amp;lt;faultstring&amp;gt;Null SQL statement&amp;lt;/faultstring&amp;gt;&amp;lt;detail&amp;gt;&amp;lt;axlError&amp;gt;&amp;lt;axlcode&amp;gt;-79726&amp;lt;/axlcode&amp;gt;&amp;lt;axlmessage&amp;gt;Null SQL statement&amp;lt;/axlmessage&amp;gt;&amp;lt;request&amp;gt;executeSQLQuery&amp;lt;/request&amp;gt;&amp;lt;/axlError&amp;gt;&amp;lt;/detail&amp;gt;&amp;lt;/soapenv:Fault&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, there's definitely a "sql" element inside the executeSQLQuery, with the correct xsi:type. So why does the server think there isn't?&amp;nbsp; The error code -79726 looks to be coming from the Informix database (it has the same error message text as well according to an IBM site), so looks like something is amiss between the AXL request and the database that's causing the SQL to go missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 17:12:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/null-sql-statement-error-from-executesqlquery/m-p/3540484#M1792</guid>
      <dc:creator>lborojimll</dc:creator>
      <dc:date>2016-12-05T17:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Null SQL Statement error from executeSQLQuery</title>
      <link>https://community.cisco.com/t5/management/null-sql-statement-error-from-executesqlquery/m-p/3540485#M1793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the namespace declaration for the AXL namespace is a bit off...perhaps the XML handlers are more picky about this in later CUCM versions.&amp;nbsp; Two forms which worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As generated by soapUI:&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14809606066589426 jive_macro_code" jivemacro_uid="_14809606066589426"&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;" xmlns:ns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/11.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/11.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;soapenv:Header/&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;soapenv:Body&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns:executeSQLQuery sequence="?"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sql&amp;gt;select NumPlan.pkid, NumPlan.dnorpattern, NumPlan.description from NumPlan where NumPlan.tkPatternUsage = 7&amp;lt;/sql&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ns:executeSQLQuery&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/soapenv:Body&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Via manually tweaking your example:&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14809606141655456" jivemacro_uid="_14809606141655456" modifiedtitle="true"&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;soap:Envelope xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:soap="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;soap:Body&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns:executeSQLQuery xmlns:ns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/11.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/11.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sql xsi:type="xsd:string"&amp;gt;select NumPlan.pkid, NumPlan.dnorpattern, NumPlan.description from NumPlan where NumPlan.tkPatternUsage = 7&amp;lt;/sql&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ns:executeSQLQuery&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/soap:Body&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 17:59:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/null-sql-statement-error-from-executesqlquery/m-p/3540485#M1793</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2016-12-05T17:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Null SQL Statement error from executeSQLQuery</title>
      <link>https://community.cisco.com/t5/management/null-sql-statement-error-from-executesqlquery/m-p/3540486#M1794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - that's really helpful.&amp;nbsp; Looks like I'll need to hit SOAP::Lite a few times to get it to match up with what SOAPUI is generating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 09:54:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/null-sql-statement-error-from-executesqlquery/m-p/3540486#M1794</guid>
      <dc:creator>lborojimll</dc:creator>
      <dc:date>2016-12-06T09:54:46Z</dc:date>
    </item>
  </channel>
</rss>

