<?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: Temporary tables not being dropped in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817554#M288203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the answer!&lt;/P&gt;&lt;P&gt;I have just found out what is the reason for my woes: It is the NOCONCATENATE keyword - there are 2 Excel_files in that directory, 1 for 2014 and 1 for 2015. That is fine so far. I load them both with the * - but since I have that NOCONCATENATE, the 2 are loaded as 2 separate tables ....&lt;/P&gt;&lt;P&gt;I have to find a way to concatenate those 2 to each other, but not to the tables I loaded before ...&lt;/P&gt;&lt;P&gt;Can you think of a way to do this?&lt;/P&gt;&lt;P&gt;I had similar scenarios before and in one instance what I did was store and drop one table and load it again afterwards, but that is not as straightforward as I'd like to do this ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 15:01:28 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-01-05T15:01:28Z</dc:date>
    <item>
      <title>Temporary tables not being dropped</title>
      <link>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817551#M288200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a very strange problem: There is one Excel_file from which I load data in several steps:&lt;/P&gt;&lt;P&gt;- There are 4 types of costs in that sheet, so I load 4 tables, one for each cost_type.&lt;/P&gt;&lt;P&gt;- Then one total_table is generated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I concatenate to that RESIDENT from each of those 4 tables (one by one)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - That done, I drop the temporary table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens is this:&lt;/P&gt;&lt;P&gt;The 4 temporary tables are created, the total_table is created, it is saved and dropped just as it should&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; The 4 temporary tables are not dropped though it is in the script, so of course I am getting synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me with that?&lt;/P&gt;&lt;P&gt;I can attach my code no problem. Sample data will be more complicated. I will try to work it out in the debugging_mode. Maybe someone can give me a hint, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 14:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817551#M288200</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-01-05T14:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary tables not being dropped</title>
      <link>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817552#M288201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the Debugging_mode what happens is this:&lt;/P&gt;&lt;P&gt;- The first two LOADs (from the same Excel_file) are fine.&lt;/P&gt;&lt;P&gt;- Then comes the first of those 4 temp_tables (from a second file)&lt;/P&gt;&lt;P&gt;&amp;nbsp; =&amp;gt; Somehow, the Debugger stops at the NOCONCATENATE keyword and LOADs - but does not forware the "cursor", so the LOAD is done twice!?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed, these 4 "second tables" - with the "-1" as a suffix - are the ones which are not dropped and which form the synthetic keys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 14:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817552#M288201</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-01-05T14:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary tables not being dropped</title>
      <link>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817553#M288202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to concatenate explicitly to the Fact Table and load work tables with NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like FE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worktable1: noconcatenate&lt;/P&gt;&lt;P&gt;Load * from Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FactTable: noconcatenate&lt;/P&gt;&lt;P&gt;load * from Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(FactTable)&lt;/P&gt;&lt;P&gt;load * resident WorkTable1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table WorkTable1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;F.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 14:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817553#M288202</guid>
      <dc:creator />
      <dc:date>2015-01-05T14:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary tables not being dropped</title>
      <link>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817554#M288203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the answer!&lt;/P&gt;&lt;P&gt;I have just found out what is the reason for my woes: It is the NOCONCATENATE keyword - there are 2 Excel_files in that directory, 1 for 2014 and 1 for 2015. That is fine so far. I load them both with the * - but since I have that NOCONCATENATE, the 2 are loaded as 2 separate tables ....&lt;/P&gt;&lt;P&gt;I have to find a way to concatenate those 2 to each other, but not to the tables I loaded before ...&lt;/P&gt;&lt;P&gt;Can you think of a way to do this?&lt;/P&gt;&lt;P&gt;I had similar scenarios before and in one instance what I did was store and drop one table and load it again afterwards, but that is not as straightforward as I'd like to do this ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 15:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817554#M288203</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-01-05T15:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary tables not being dropped</title>
      <link>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817555#M288204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if this will solve your issue, but if you are looking to concatenate both years into a single table for each load, you could try to do a loop, you just need to create a blank table to load onto before each loop. Basically just an inline table to concatenate onto and then a directory load loop using your different load requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 15:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817555#M288204</guid>
      <dc:creator />
      <dc:date>2015-01-05T15:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary tables not being dropped</title>
      <link>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817556#M288205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibble, I used two ways to make that, one is creating an empty table and always concatenate to that table, ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ladegeräte_Stapler:&lt;/P&gt;&lt;P&gt;LOAD * Inline [dumbfield];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when you read from Excel you can use Concatenate(Ladegeräte_Stapler) instead of NoConcatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other way is to use a variable to use NoConcatenate or Concatenate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vConcatenate = 'NoConcatenate'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR EACH file in...&lt;/P&gt;&lt;P&gt;Ladegeräte_Stapler:&lt;/P&gt;&lt;P&gt;$(vConcatenate)&lt;/P&gt;&lt;P&gt;LOAD ....&lt;/P&gt;&lt;P&gt;FROM &lt;EM&gt;Excel;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;LET vConcatenate = 'Concatenate (Ladegeräte_Stapler)'&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 15:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Temporary-tables-not-being-dropped/m-p/817556#M288205</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-01-05T15:10:25Z</dc:date>
    </item>
  </channel>
</rss>

