<?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 Re: Data loader SQL with Where in using an arrary in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-loader-SQL-with-Where-in-using-an-arrary/m-p/1984496#M81227</link>
    <description>&lt;P&gt;Your variable needs to match how you've formatted your filter in the first part.&lt;/P&gt;
&lt;P&gt;E.g.&amp;nbsp;&lt;SPAN&gt;set vPlantsToLoad = ('02462','02470','04012','04025');&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 00:14:32 GMT</pubDate>
    <dc:creator>rachel_delany</dc:creator>
    <dc:date>2022-09-23T00:14:32Z</dc:date>
    <item>
      <title>Data loader SQL with Where in using an arrary</title>
      <link>https://community.qlik.com/t5/App-Development/Data-loader-SQL-with-Where-in-using-an-arrary/m-p/1984469#M81225</link>
      <description>&lt;P&gt;I would like to replace the following code in Qlik Sense Data Loader&lt;/P&gt;
&lt;P&gt;SQL&lt;BR /&gt;SELECT&lt;BR /&gt;I_PLT,&lt;BR /&gt;DEPTCODE,&lt;BR /&gt;LINECODE,&lt;BR /&gt;X_LINE_DESC&lt;BR /&gt;&lt;BR /&gt;from m.maslin &lt;BR /&gt;WHERE I_PLT in ('02462','02470','04012','04025')&lt;BR /&gt;with UR;&lt;/P&gt;
&lt;P&gt;With something like this:&lt;/P&gt;
&lt;P&gt;set vPlantsToLoad = 02462,02470,04012,04025;&lt;/P&gt;
&lt;P&gt;SQL&lt;BR /&gt;SELECT&lt;BR /&gt;I_PLT,&lt;BR /&gt;DEPTCODE,&lt;BR /&gt;LINECODE,&lt;BR /&gt;X_LINE_DESC&lt;BR /&gt;&lt;BR /&gt;from m.maslin &lt;BR /&gt;WHERE I_PLT in '$(vPlantsToLoad)'&lt;BR /&gt;with UR;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 20:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-loader-SQL-with-Where-in-using-an-arrary/m-p/1984469#M81225</guid>
      <dc:creator>SkyTate</dc:creator>
      <dc:date>2022-09-22T20:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data loader SQL with Where in using an arrary</title>
      <link>https://community.qlik.com/t5/App-Development/Data-loader-SQL-with-Where-in-using-an-arrary/m-p/1984496#M81227</link>
      <description>&lt;P&gt;Your variable needs to match how you've formatted your filter in the first part.&lt;/P&gt;
&lt;P&gt;E.g.&amp;nbsp;&lt;SPAN&gt;set vPlantsToLoad = ('02462','02470','04012','04025');&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 00:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-loader-SQL-with-Where-in-using-an-arrary/m-p/1984496#M81227</guid>
      <dc:creator>rachel_delany</dc:creator>
      <dc:date>2022-09-23T00:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data loader SQL with Where in using an arrary</title>
      <link>https://community.qlik.com/t5/App-Development/Data-loader-SQL-with-Where-in-using-an-arrary/m-p/1985607#M81366</link>
      <description>&lt;P&gt;I had already tried that. When I do it like that I get the following error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;The following error occurred:&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;Connector reply error: SQL##f - SqlState: 42601, ErrorCode: 4294967192, ErrorMsg: [IBM][CLI Driver][DB2] SQL0104N An unexpected token "'(''02462'',''02470'',''04012'',''04025'')'" was found following "". Expected tokens may include: "(". SQLSTATE=42601&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;The error occurred here:&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;SQL&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;SELECT&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;I_PLT,&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;DEPTCODE,&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;LINECODE,&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;X_LINE_DESC&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;from m.maslin&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message error"&gt;
&lt;DIV class="selectable"&gt;WHERE I_PLT in '(''02462'',''02470'',''04012'',''04025'')'&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Sep 2022 19:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-loader-SQL-with-Where-in-using-an-arrary/m-p/1985607#M81366</guid>
      <dc:creator>SkyTate</dc:creator>
      <dc:date>2022-09-26T19:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data loader SQL with Where in using an arrary</title>
      <link>https://community.qlik.com/t5/App-Development/Data-loader-SQL-with-Where-in-using-an-arrary/m-p/1986236#M81472</link>
      <description>&lt;P&gt;Can you include the part of your script where you set the variable?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 22:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-loader-SQL-with-Where-in-using-an-arrary/m-p/1986236#M81472</guid>
      <dc:creator>rachel_delany</dc:creator>
      <dc:date>2022-09-27T22:18:37Z</dc:date>
    </item>
  </channel>
</rss>

