<?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 QV 64 vs. QB 32 bit - problems in SQL Selec in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151149#M29060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I cannot get the scripts right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;"LAG_MANDANT",&lt;BR /&gt; "LAG_ART_TYP",&lt;BR /&gt; "LAG_ART_NUM",&lt;BR /&gt; "LAG_BEARB",&lt;BR /&gt; "LAG_SFORM",&lt;BR /&gt; "LAG_VERFUEGBAR",&lt;BR /&gt; "LAG_EINK_PREIS",&lt;BR /&gt; "LAG_ZUSCHN_JN",&lt;BR /&gt; "LAG_GRP_ID";&lt;BR /&gt;SQL SELECT&lt;BR /&gt;"LAG_MANDANT",&lt;BR /&gt; "LAG_ART_TYP",&lt;BR /&gt; "LAG_ART_NUM",&lt;BR /&gt; "LAG_BEARB",&lt;BR /&gt; "LAG_SFORM",&lt;BR /&gt; "LAG_VERFUEGBAR",&lt;BR /&gt; "LAG_EINK_PREIS",&lt;BR /&gt; "LAG_ZUSCHN_JN",&lt;BR /&gt; "LAG_GRP_ID"&lt;BR /&gt;FROM LIORDER.V_LAGER_ST_ALPHA where LAG_BEARB = 0 and LAG_ART_TYP = 0;&lt;/P&gt;&lt;P&gt;If I exchange the LAG_ART_TYP = 0 with a 1 instead I get no problems (but not having the right criteria &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2009 16:49:32 GMT</pubDate>
    <dc:creator>johnlauridsen</dc:creator>
    <dc:date>2009-08-11T16:49:32Z</dc:date>
    <item>
      <title>QV 64 vs. QB 32 bit - problems in SQL Selec</title>
      <link>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151145#M29056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using 32 bit at the moment but planning to switch to 64 bit. at the test before switching I noticed that some of the documents wasn't able to reload. Even that they work on 32 bit.&lt;/P&gt;&lt;P&gt;The script is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ODBC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;CONNECT&lt;/B&gt; &lt;B&gt;TO&lt;/B&gt; [SG1;DBQ=LIO_1] (XUserId is Xxxxxxxxx, XPassword is 99999999999);&lt;/P&gt;&lt;P&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; *&lt;/P&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt; LIORDER."LAGER_ST" where "LAG_MANDANT"='KO' and LAG_ART_TYP=0;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;SQL Error:[Oracle][ODBC][Ora]ORA-01406: hentet kolonneværdi blev afskåret&lt;/P&gt;&lt;P&gt;SQL Scriptline:&lt;BR /&gt;SQL State:S1000&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM LIORDER."LAGER_ST" where "LAG_MANDANT"='KO' and LAG_ART_TYP=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I leave out the "where...." I have no problems. In the 32 bit it working fine.&lt;/P&gt;&lt;P&gt;Anyone having some suggestions?&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 20:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151145#M29056</guid>
      <dc:creator>johnlauridsen</dc:creator>
      <dc:date>2009-08-05T20:56:31Z</dc:date>
    </item>
    <item>
      <title>QV 64 vs. QB 32 bit - problems in SQL Selec</title>
      <link>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151146#M29057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem comes from your ODBC drivers :&lt;/P&gt;&lt;P&gt;1) Please check that your OBDC driver is 64 bit compliant.&lt;BR /&gt;2) If you need to use a 32 bit connection in a 64 bit environment, check that post :&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/p/12436/49208.aspx#49208"&gt;http://community.qlik.com/forums/p/12436/49208.aspx#49208&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the point has already been discussed in the forums, search : "ODBC 64 bits" related posts&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 19:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151146#M29057</guid>
      <dc:creator />
      <dc:date>2009-08-06T19:17:33Z</dc:date>
    </item>
    <item>
      <title>QV 64 vs. QB 32 bit - problems in SQL Selec</title>
      <link>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151147#M29058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;I'm not sure it has to do with the 64 bit .. or partly at least.&lt;/P&gt;&lt;P&gt;Next part in the script I have the same From: "&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;LIORDER.V_LAGER_ST_ALPHA where &lt;B&gt;/*"LAG_BEARB" = 0 and*/&lt;/B&gt; LAG_ART_TYP = 3; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;And here it just passes fine through... In the first part I directly used SQL select... and in the second part I use a Load... and then SQL select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 15:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151147#M29058</guid>
      <dc:creator>johnlauridsen</dc:creator>
      <dc:date>2009-08-11T15:35:26Z</dc:date>
    </item>
    <item>
      <title>QV 64 vs. QB 32 bit - problems in SQL Selec</title>
      <link>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151148#M29059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;/P&gt;&lt;TABLE border="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="top"&gt;&lt;B&gt;ORA-01406:&lt;/B&gt;&lt;/TD&gt;&lt;TD&gt;fetched column value was truncated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top"&gt;&lt;B&gt;Cause:&lt;/B&gt;&lt;/TD&gt;&lt;TD&gt;In a host language program, a FETCH operation was forced to truncate a character string. The program buffer area for this column was not large enough to contain the entire string. The cursor return code from the fetch was +3.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;"&lt;/P&gt;&lt;P&gt;Try and see if you can find the offending field(s) in your table and note the data type and size (for example if it is data type with large numeric values). When you found the field that's being truncated you could try converting it using CHAR, like:&lt;/P&gt;&lt;P&gt;TO_CHAR(field) field&lt;/P&gt;&lt;P&gt;(in the SQL-statement). See if this will give any result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 16:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151148#M29059</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2009-08-11T16:08:18Z</dc:date>
    </item>
    <item>
      <title>QV 64 vs. QB 32 bit - problems in SQL Selec</title>
      <link>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151149#M29060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I cannot get the scripts right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;"LAG_MANDANT",&lt;BR /&gt; "LAG_ART_TYP",&lt;BR /&gt; "LAG_ART_NUM",&lt;BR /&gt; "LAG_BEARB",&lt;BR /&gt; "LAG_SFORM",&lt;BR /&gt; "LAG_VERFUEGBAR",&lt;BR /&gt; "LAG_EINK_PREIS",&lt;BR /&gt; "LAG_ZUSCHN_JN",&lt;BR /&gt; "LAG_GRP_ID";&lt;BR /&gt;SQL SELECT&lt;BR /&gt;"LAG_MANDANT",&lt;BR /&gt; "LAG_ART_TYP",&lt;BR /&gt; "LAG_ART_NUM",&lt;BR /&gt; "LAG_BEARB",&lt;BR /&gt; "LAG_SFORM",&lt;BR /&gt; "LAG_VERFUEGBAR",&lt;BR /&gt; "LAG_EINK_PREIS",&lt;BR /&gt; "LAG_ZUSCHN_JN",&lt;BR /&gt; "LAG_GRP_ID"&lt;BR /&gt;FROM LIORDER.V_LAGER_ST_ALPHA where LAG_BEARB = 0 and LAG_ART_TYP = 0;&lt;/P&gt;&lt;P&gt;If I exchange the LAG_ART_TYP = 0 with a 1 instead I get no problems (but not having the right criteria &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 16:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151149#M29060</guid>
      <dc:creator>johnlauridsen</dc:creator>
      <dc:date>2009-08-11T16:49:32Z</dc:date>
    </item>
    <item>
      <title>QV 64 vs. QB 32 bit - problems in SQL Selec</title>
      <link>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151150#M29061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try removing one field at the time from the SQL-statement until you find which field(s) are causing the problem. When you found it (I guess it's a numeric field) try:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;BR /&gt;"LAG_MANDANT",&lt;BR /&gt; "LAG_ART_TYP",&lt;BR /&gt; TO_CHAR( LAG_ART_NUM) LAG_ART_NUM,&lt;BR /&gt; "LAG_BEARB",&lt;BR /&gt; "LAG_SFORM",&lt;BR /&gt; "LAG_VERFUEGBAR",&lt;BR /&gt; "LAG_EINK_PREIS",&lt;BR /&gt; "LAG_ZUSCHN_JN",&lt;BR /&gt; "LAG_GRP_ID"&lt;BR /&gt;FROM LIORDER.V_LAGER_ST_ALPHA ;&lt;/P&gt;&lt;P&gt;Here I assume the field causing the problem is the LAG_ART_NUM field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 18:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151150#M29061</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2009-08-11T18:49:22Z</dc:date>
    </item>
    <item>
      <title>QV 64 vs. QB 32 bit - problems in SQL Selec</title>
      <link>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151151#M29062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay.. I have solved the probem. I copied from another application a part of the script including similar text and added the fields I needed.&lt;/P&gt;&lt;P&gt;I have not use TO_CHAR but what I have now works.&lt;/P&gt;&lt;P&gt;Thank you for your assistance.. '&lt;/P&gt;&lt;P&gt;/John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 19:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151151#M29062</guid>
      <dc:creator>johnlauridsen</dc:creator>
      <dc:date>2009-08-11T19:03:34Z</dc:date>
    </item>
    <item>
      <title>QV 64 vs. QB 32 bit - problems in SQL Selec</title>
      <link>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151152#M29063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry... I have to come bakc to this thread.&lt;/P&gt;&lt;P&gt;I have a script. really close the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELECT&lt;/STRONG&gt; *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt; &lt;STRONG&gt;LIORDER."LAGER_ST"&lt;/STRONG&gt; where /*"LAG_ZUSCHN_JN" = 0 and*/ "LAG_ART_TYP"= 0 and "LAG_MANDANT"='ES';&lt;/P&gt;&lt;P&gt;If I have the last ='ES'; it works... If I change it to ='KO' its not working... but if I put it ='ko' it works but without any records as the records are in capital letters. &lt;IMG alt="Super Angry" src="http://community.qlik.com/emoticons/emotion-39.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 19:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151152#M29063</guid>
      <dc:creator>johnlauridsen</dc:creator>
      <dc:date>2009-08-13T19:00:16Z</dc:date>
    </item>
    <item>
      <title>QV 64 vs. QB 32 bit - problems in SQL Selec</title>
      <link>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151153#M29064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Are you getting the same error as before (SQL Error:[Oracle][ODBC][Ora]ORA-01406: hentet kolonneværdi blev afskåret)? If yes, it's because one or many fieldvalues are truncated, as described in the post I copied earlier. The reason why you don't get the error if you for example limit the result using LAG_MANDANDT='ES' is simply because then you're limiting the number of records, filtering out the values being truncated.&lt;/P&gt;&lt;P&gt;If you get this error when putting LAG_MANDANT='KO' then you know that somewhere in those records there are values being truncated. Again, try to limit the number of fields in the SELECT-statement, instead of using * until you find the field causing the problem, and try converting it using TO_CHAR().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 21:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151153#M29064</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2009-08-13T21:09:41Z</dc:date>
    </item>
    <item>
      <title>QV 64 vs. QB 32 bit - problems in SQL Selec</title>
      <link>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151154#M29065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Database is Oracle 9.2.0.6.0 in AIX Version 5.3&lt;BR /&gt;AMERICAN _ AMERICA. ZHS16GBK&lt;/P&gt;&lt;P&gt;generate qvd computer is Windows Server 2003R2 Enterprise X64 Edition&lt;BR /&gt;Oracle Client is 10g&lt;BR /&gt;AMERICAN _ AMERICA. ZHS16GBK&lt;/P&gt;&lt;P&gt;the number of fields using to_char() is ok,&lt;BR /&gt;have other methods???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 01:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-64-vs-QB-32-bit-problems-in-SQL-Selec/m-p/151154#M29065</guid>
      <dc:creator />
      <dc:date>2011-02-15T01:22:39Z</dc:date>
    </item>
  </channel>
</rss>

