<?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: synthetic keys in XML data load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/synthetic-keys-in-XML-data-load/m-p/574611#M682090</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;There are three statements that you have to notice: &lt;/P&gt;&lt;P&gt;By default QV concatenates the subsequent loads if they have the same list of field names.&lt;/P&gt;&lt;P&gt;By default the join load is done to the table above (in the script).&lt;/P&gt;&lt;P&gt;After the script ends QV generates the references according to field names creating synkeys if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case the first one is not true. After the first join the subsequent load is done into separate table.&lt;/P&gt;&lt;P&gt;Then the last load joins to it.&lt;/P&gt;&lt;P&gt;As a result you have two different tables with the same field names. As a final step QV generates the keys to connect them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign the names to your two tables.&lt;/P&gt;&lt;P&gt;Concatenate the separate table for the second date manually with additional load.&lt;/P&gt;&lt;P&gt;Then remove the unnecessary table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Mar 2014 09:24:04 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2014-03-30T09:24:04Z</dc:date>
    <item>
      <title>synthetic keys in XML data load</title>
      <link>https://community.qlik.com/t5/QlikView/synthetic-keys-in-XML-data-load/m-p/574610#M682089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using qlikview for about 3 - 4 weeks now and allready came into several situation with synthetic key. Till now I was allways able to manage them but now I am a bit lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load XML Data from an official webside. The XML data consists out of several tables which are joint by a manual created key. The XML data needs to be loaded for several dates. The date itself is part of the XML URL.&lt;/P&gt;&lt;P&gt;Since I am requesting allways the same 4 columns I would like to store them into one table in qlikview (like loading 2 Excel documents with the same columns, they get stroed by qlikview in the same table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the beginning I use the script wizard to load the first Information from the XML Interface, everythink was working fine. When I add the second LOAD for the second date, I get synthetic keys and I do not really know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Skript example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; klasse as KLASSE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; quote as QUOTE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; jackpot as JACKPOT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; %Key_zahlenUndQuoten_429DBD973FACB660&amp;nbsp;&amp;nbsp; as key // Key to parent table: TABLENAME2&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://URL....&amp;amp;datum=25.12.2013"&gt;https://URL....&amp;amp;datum=25.12.2013&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [TABLENAME1]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; [head/datum] as DATUM,&lt;/P&gt;&lt;P&gt;&amp;nbsp; %Key_zahlenUndQuoten_429DBD973FACB660 as key&amp;nbsp;&amp;nbsp; // Key for this table: TABLENAME2&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://URL....&amp;amp;datum=25.12.2013"&gt;https://URL....&amp;amp;datum=25.12.2013&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [TABLENAME2]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP field key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; klasse as KLASSE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; quote as QUOTE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; jackpot as JACKPOT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; %Key_zahlenUndQuoten_429DBD973FACB660&amp;nbsp;&amp;nbsp; as key // Key to parent table: TABLENAME2&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://URL....&amp;amp;datum=28.12.2013"&gt;https://URL....&amp;amp;datum=28.12.2013&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [TABLENAME1]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; [head/datum] as DATUM,&lt;/P&gt;&lt;P&gt;&amp;nbsp; %Key_zahlenUndQuoten_429DBD973FACB660 as key&amp;nbsp;&amp;nbsp; // Key for this table: TABLENAME2&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://URL....&amp;amp;datum=28.12.2013"&gt;https://URL....&amp;amp;datum=28.12.2013&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [TABLENAME2]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP field key;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 13:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/synthetic-keys-in-XML-data-load/m-p/574610#M682089</guid>
      <dc:creator />
      <dc:date>2014-03-28T13:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: synthetic keys in XML data load</title>
      <link>https://community.qlik.com/t5/QlikView/synthetic-keys-in-XML-data-load/m-p/574611#M682090</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;There are three statements that you have to notice: &lt;/P&gt;&lt;P&gt;By default QV concatenates the subsequent loads if they have the same list of field names.&lt;/P&gt;&lt;P&gt;By default the join load is done to the table above (in the script).&lt;/P&gt;&lt;P&gt;After the script ends QV generates the references according to field names creating synkeys if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case the first one is not true. After the first join the subsequent load is done into separate table.&lt;/P&gt;&lt;P&gt;Then the last load joins to it.&lt;/P&gt;&lt;P&gt;As a result you have two different tables with the same field names. As a final step QV generates the keys to connect them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign the names to your two tables.&lt;/P&gt;&lt;P&gt;Concatenate the separate table for the second date manually with additional load.&lt;/P&gt;&lt;P&gt;Then remove the unnecessary table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 09:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/synthetic-keys-in-XML-data-load/m-p/574611#M682090</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-03-30T09:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: synthetic keys in XML data load</title>
      <link>https://community.qlik.com/t5/QlikView/synthetic-keys-in-XML-data-load/m-p/574612#M682091</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;Looking at your script, You are loading same type of data from different tables,&lt;/P&gt;&lt;P&gt;So you can create one table instead of several tables;&lt;/P&gt;&lt;P&gt;You are doing join on two tables so instead of this you can simply &lt;STRONG&gt;concatenate&lt;/STRONG&gt; that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more advice always try to give names to your tables.It will help you to understand flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do something like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MainTable:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; klasse as KLASSE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; quote as QUOTE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; jackpot as JACKPOT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; %Key_zahlenUndQuoten_429DBD973FACB660&amp;nbsp;&amp;nbsp; as key // Key to parent table: TABLENAME2&lt;/P&gt;&lt;P&gt;FROM [&lt;A class="jive-link-external-small" href="https://URL....&amp;amp;datum=25.12.2013/"&gt;https://URL....&amp;amp;datum=25.12.2013&lt;/A&gt;] (XmlSimple, Table is [TABLENAME1]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join(MainTable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; [head/datum] as DATUM,&lt;/P&gt;&lt;P&gt;&amp;nbsp; %Key_zahlenUndQuoten_429DBD973FACB660 as key&amp;nbsp;&amp;nbsp; // Key for this table: TABLENAME2&lt;/P&gt;&lt;P&gt;FROM [&lt;A class="jive-link-external-small" href="https://URL....&amp;amp;datum=25.12.2013/"&gt;https://URL....&amp;amp;datum=25.12.2013&lt;/A&gt;] (XmlSimple, Table is [TABLENAME2]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//DROP field key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; klasse as KLASSE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; quote as QUOTE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; jackpot as JACKPOT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; %Key_zahlenUndQuoten_429DBD973FACB660&amp;nbsp;&amp;nbsp; as key // Key to parent table: TABLENAME2&lt;/P&gt;&lt;P&gt;FROM [&lt;A class="jive-link-external-small" href="https://URL....&amp;amp;datum=28.12.2013/"&gt;https://URL....&amp;amp;datum=28.12.2013&lt;/A&gt;] (XmlSimple, Table is [TABLENAME1]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; [head/datum] as DATUM,&lt;/P&gt;&lt;P&gt;&amp;nbsp; %Key_zahlenUndQuoten_429DBD973FACB660 as key&amp;nbsp;&amp;nbsp; // Key for this table: TABLENAME2&lt;/P&gt;&lt;P&gt;FROM [&lt;A class="jive-link-external-small" href="https://URL....&amp;amp;datum=28.12.2013/"&gt;https://URL....&amp;amp;datum=28.12.2013&lt;/A&gt;] (XmlSimple, Table is [TABLENAME2]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP field key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 15:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/synthetic-keys-in-XML-data-load/m-p/574612#M682091</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-30T15:29:57Z</dc:date>
    </item>
  </channel>
</rss>

