<?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>Question Re: Error Code: 21, SQL State: QFA13]  SQL Anywhere Error -1001013: in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/error-code-21-sql-state-qfa13-sql-anywhere-error-1001013/qaa-p/13820464#M4851307</link>
    <description>&lt;P&gt;The error code -1001013 does not look like a valid SQL Anywhere error. What API are you using? What version (and build) of SQL Anywhere are you using?&lt;/P&gt;
&lt;P&gt;If CAUSE_CODE and SUBCAUSE_CODE are smallint then why are you quoting the '12' and '107'? It would seem to make more sense to just use the numeric int values 12 and 107.&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;Ok, to answer my own question above - error -1001013 seems to be an IQ error code.  Are you using Sybase IQ?&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2013 09:35:35 GMT</pubDate>
    <dc:creator>MarkCulp</dc:creator>
    <dc:date>2013-07-18T09:35:35Z</dc:date>
    <item>
      <title>Error Code: 21, SQL State: QFA13]  SQL Anywhere Error -1001013:</title>
      <link>https://community.sap.com/t5/technology-q-a/error-code-21-sql-state-qfa13-sql-anywhere-error-1001013/qaq-p/13820462</link>
      <description>&lt;P&gt;I executed the below mention query ,&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="nb"&gt;select&lt;/SPAN&gt; &lt;SPAN class="o"&gt;*&lt;/SPAN&gt;
  &lt;SPAN class="n"&gt;from&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ABCD&lt;/SPAN&gt; 
 &lt;SPAN class="n"&gt;where&lt;/SPAN&gt; &lt;SPAN class="n"&gt;DATETIME_ID&lt;/SPAN&gt; &lt;SPAN class="o"&gt;&amp;gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'2013-07-16 20:30'&lt;/SPAN&gt;
   &lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;DATETIME_ID&lt;/SPAN&gt; &lt;SPAN class="o"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'2013-07-16 21:00'&lt;/SPAN&gt;
   &lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;AAT&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'2'&lt;/SPAN&gt;
   &lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;EVENT_NUMBER&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'2'&lt;/SPAN&gt;
   &lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;VENDOR&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'Airtel'&lt;/SPAN&gt;
   &lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;HIERARCHY_3&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'TE0040962'&lt;/SPAN&gt;
   &lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;HIERARCHY_1&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'TE0040962-C'&lt;/SPAN&gt;
   &lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;CAUSE_CODE&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'12'&lt;/SPAN&gt;
   &lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;SUBCAUSE_CODE&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'107'&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;it is throwing a error as " "[Error Code: 21, SQL State: QFA13]  SQL Anywhere Error -1001013: Invalid data type comparison in predicate (rawview.CAUSE_CODE = '12')""&lt;/P&gt;
&lt;P&gt;the data type of "CAUSE_CODE"  and "SUBCAUSE_CODE" are "smallint"&lt;/P&gt;
&lt;P&gt;can anyone have any idea why the above error is coming ?&lt;/P&gt;
&lt;P&gt;Thanks in advance.
Sam&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2013 09:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-code-21-sql-state-qfa13-sql-anywhere-error-1001013/qaq-p/13820462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-18T09:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error Code: 21, SQL State: QFA13]  SQL Anywhere Error -1001013:</title>
      <link>https://community.sap.com/t5/technology-q-a/error-code-21-sql-state-qfa13-sql-anywhere-error-1001013/qaa-p/13820464#M4851307</link>
      <description>&lt;P&gt;The error code -1001013 does not look like a valid SQL Anywhere error. What API are you using? What version (and build) of SQL Anywhere are you using?&lt;/P&gt;
&lt;P&gt;If CAUSE_CODE and SUBCAUSE_CODE are smallint then why are you quoting the '12' and '107'? It would seem to make more sense to just use the numeric int values 12 and 107.&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;Ok, to answer my own question above - error -1001013 seems to be an IQ error code.  Are you using Sybase IQ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2013 09:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-code-21-sql-state-qfa13-sql-anywhere-error-1001013/qaa-p/13820464#M4851307</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2013-07-18T09:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error Code: 21, SQL State: QFA13]  SQL Anywhere Error -1001013:</title>
      <link>https://community.sap.com/t5/technology-q-a/error-code-21-sql-state-qfa13-sql-anywhere-error-1001013/qaa-p/13820463#M4851306</link>
      <description>&lt;P&gt;Try this: &lt;A href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc38151.1270/html/iqref/BABBHHEH.htm"&gt;CONVERSION_MODE option&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;...I confess, I didn't read very far, my head exploded &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2013 14:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-code-21-sql-state-qfa13-sql-anywhere-error-1001013/qaa-p/13820463#M4851306</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2013-07-18T14:33:02Z</dc:date>
    </item>
  </channel>
</rss>

