<?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 Store and drop tables in a loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-and-drop-tables-in-a-loop/m-p/1854985#M1215837</link>
    <description>&lt;P&gt;Hi All.&lt;/P&gt;
&lt;P&gt;Here I have some issue with store and drop process in a loop.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have several tables in a load script and want to store and drop them using&amp;nbsp; a loop. Like below.&lt;/P&gt;
&lt;P&gt;Answer:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM Answer;&lt;/P&gt;
&lt;P&gt;Question:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM Question;&lt;/P&gt;
&lt;P&gt;Set vTransformFinal = '[QVD\Transform\Full\';&lt;/P&gt;
&lt;P&gt;let vTables = NoOfTables();&lt;/P&gt;
&lt;P&gt;Let i = 0;&lt;/P&gt;
&lt;P&gt;Do While i &amp;lt; vTables&lt;/P&gt;
&lt;P&gt;Let vTable = TableName(i);&lt;/P&gt;
&lt;P&gt;Store $(vTable) into $(vTransformFinal)$(vTable).qvd];&lt;BR /&gt;Drop Table $(vTable);&lt;/P&gt;
&lt;P&gt;i = i+1;&lt;/P&gt;
&lt;P&gt;Loop;&lt;/P&gt;
&lt;P&gt;But for some reason after first iteration I received such error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65825i9125792CDAAAD6BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But I see that QVD for Answer table&amp;nbsp; was stored even after I get this error. But table can't be dropped.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error2.png" style="width: 160px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65826i3058F7361750D42D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="error2.png" alt="error2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;After this message script failed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could you please help me to find what&amp;nbsp; am I doing&amp;nbsp; wrong&amp;nbsp; with my code and how to fix it?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 09:11:11 GMT</pubDate>
    <dc:creator>Peony</dc:creator>
    <dc:date>2021-11-03T09:11:11Z</dc:date>
    <item>
      <title>Store and drop tables in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Store-and-drop-tables-in-a-loop/m-p/1854985#M1215837</link>
      <description>&lt;P&gt;Hi All.&lt;/P&gt;
&lt;P&gt;Here I have some issue with store and drop process in a loop.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have several tables in a load script and want to store and drop them using&amp;nbsp; a loop. Like below.&lt;/P&gt;
&lt;P&gt;Answer:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM Answer;&lt;/P&gt;
&lt;P&gt;Question:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM Question;&lt;/P&gt;
&lt;P&gt;Set vTransformFinal = '[QVD\Transform\Full\';&lt;/P&gt;
&lt;P&gt;let vTables = NoOfTables();&lt;/P&gt;
&lt;P&gt;Let i = 0;&lt;/P&gt;
&lt;P&gt;Do While i &amp;lt; vTables&lt;/P&gt;
&lt;P&gt;Let vTable = TableName(i);&lt;/P&gt;
&lt;P&gt;Store $(vTable) into $(vTransformFinal)$(vTable).qvd];&lt;BR /&gt;Drop Table $(vTable);&lt;/P&gt;
&lt;P&gt;i = i+1;&lt;/P&gt;
&lt;P&gt;Loop;&lt;/P&gt;
&lt;P&gt;But for some reason after first iteration I received such error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65825i9125792CDAAAD6BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But I see that QVD for Answer table&amp;nbsp; was stored even after I get this error. But table can't be dropped.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error2.png" style="width: 160px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65826i3058F7361750D42D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="error2.png" alt="error2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;After this message script failed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could you please help me to find what&amp;nbsp; am I doing&amp;nbsp; wrong&amp;nbsp; with my code and how to fix it?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 09:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-and-drop-tables-in-a-loop/m-p/1854985#M1215837</guid>
      <dc:creator>Peony</dc:creator>
      <dc:date>2021-11-03T09:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Store and drop tables in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Store-and-drop-tables-in-a-loop/m-p/1855056#M1215841</link>
      <description>&lt;P&gt;Solved! Should be&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Let vTable = TableName(0);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 11:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-and-drop-tables-in-a-loop/m-p/1855056#M1215841</guid>
      <dc:creator>Peony</dc:creator>
      <dc:date>2021-11-03T11:16:14Z</dc:date>
    </item>
  </channel>
</rss>

