<?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: removing synthetic keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/removing-synthetic-keys/m-p/1404480#M815738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srujan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than adding all 5 tables into your model at once, it is easier to add the tables one-at-a time, and resolve any data issues due to Syn-keys or loops as you go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way to change your script to add the tables one at a time is to insert an "exit script"&amp;nbsp; line before you load the Reportmaster table. The "exit script" will stop the script cleanly at that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can review the data loaded - you only need to use debug and a limited load of 10 rows is sufficient for this,&lt;/P&gt;&lt;P&gt;fix any errors, then move the exit script line down the script after the next table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just remember to remove the "exit script" line when your load is fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ReportDetail:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt; Report Identifier], &lt;/P&gt;&lt;P&gt;[Report Name], &lt;/P&gt;&lt;P&gt;[Report Complexity], &lt;/P&gt;&lt;P&gt;[Report Source],&lt;/P&gt;&lt;P&gt;[Processing Type], &lt;/P&gt;&lt;P&gt;[Processing Stability], &lt;/P&gt;&lt;P&gt;[Validation method],&lt;/P&gt;&lt;P&gt;[Change requests], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Automation Complexity], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Opportunities for automation], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Limitations for automation], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Effort required for report], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Active Flag], [Load Timestamp],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Modified Timestamp]&lt;/P&gt;&lt;P&gt;FROM XXXX&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exit script ;&amp;nbsp; //&amp;nbsp; #### Script execution will stop here ###########################################&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reportmaster:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;[Report Identifier], &lt;/P&gt;&lt;P&gt;[Report Name], &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2017 09:55:11 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2017-09-13T09:55:11Z</dc:date>
    <item>
      <title>removing synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/removing-synthetic-keys/m-p/1404477#M815735</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;i ahve sources coming from 5 excel files and i have extracted all of them but i am getting lot of synthetic keys. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached is the notepad that has the code. please help on removing keys and creating a data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/removing-synthetic-keys/m-p/1404477#M815735</guid>
      <dc:creator>srujanaponnuru</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: removing synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/removing-synthetic-keys/m-p/1404478#M815736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of quickly jumping into the specific solution, I would suggest that you learn about it and the resolve yourself. Please check the below links:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/synthetic-keys.htm?_ga=2.21760443.1069671509.1505195059-1528571695.1496035113" title="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/synthetic-keys.htm?_ga=2.21760443.1069671509.1505195059-1528571695.1496035113"&gt;synthetic-keys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/16/synthetic-keys" style="font-size: 10pt;" title="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/16/synthetic-keys"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/16/synthetic-keys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/869616"&gt;Re: Syntetic key&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 06:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/removing-synthetic-keys/m-p/1404478#M815736</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-09-13T06:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: removing synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/removing-synthetic-keys/m-p/1404479#M815737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srujan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my analysis i got your data model like below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Datamodel.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176329_Datamodel.png" style="height: 343px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Active flags are different for each and every table(i mean Flag creation is depending on condition applied in that table)&amp;nbsp; so we can't&amp;nbsp; use that field as a &lt;STRONG&gt;Key&lt;/STRONG&gt; for 3 tables(&lt;STRONG&gt;Organisation,Report Detail,Report Master).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;in general &lt;STRONG&gt;Load &amp;amp; Modified time stamps&lt;/STRONG&gt; also different for each table so we can't create Key on these&amp;nbsp; fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my knowledge &lt;STRONG&gt;Report detail&lt;/STRONG&gt; and &lt;STRONG&gt;Report Master&lt;/STRONG&gt; having the same number of records for &lt;STRONG&gt;Report Identifier &lt;/STRONG&gt;field(If it is a Primary key field).so&lt;/P&gt;&lt;P&gt;create a Association between &lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Report detail&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Report Master tables &lt;/STRONG&gt;on&lt;STRONG style="font-size: 13.3333px;"&gt; &lt;STRONG style="font-size: 13.3333px;"&gt;Report Identifier field &lt;/STRONG&gt;&lt;/STRONG&gt;and&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;do alias name for&lt;STRONG style="font-size: 13.3333px;"&gt; Report Name &lt;/STRONG&gt;field.&lt;/P&gt;&lt;P&gt;depends on situation some times you can remove the field &lt;STRONG style="font-size: 13.3333px;"&gt;Report Name &lt;/STRONG&gt; in anyone table.&lt;/P&gt;&lt;P&gt;after that alias names need to give for both time stamp fields&amp;nbsp; &lt;STRONG style="font-size: 13.3333px;"&gt;Load &amp;amp; Modified time stamps &lt;/STRONG&gt; in both tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you got association between &lt;STRONG style="font-size: 13.3333px;"&gt;Report detail&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Report Master tables &lt;/STRONG&gt;with&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp; Report Identifier field.&lt;/STRONG&gt;so no synthetic key will created between these 2 tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends on the data you can check the Key field between &lt;SPAN style="font-size: 13.3333px;"&gt;3 tables(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Organisation,Report Detail,Report Master).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but i am sure we can't create any key on these&lt;STRONG style="font-size: 13.3333px;"&gt; 3 fields (Active Flag,&lt;STRONG style="font-size: 13.3333px;"&gt;Load &amp;amp; Modified time stamps) so think other field depend on data.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;still you have any doubt feel free to reach me on &lt;STRONG&gt;&lt;A class="jive-link-email-small" href="mailto:ramasaiqvw@gmail.com"&gt;ramasaiqvw@gmail.com&lt;/A&gt;&lt;SPAN&gt; / 8376964364&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 08:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/removing-synthetic-keys/m-p/1404479#M815737</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2017-09-13T08:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: removing synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/removing-synthetic-keys/m-p/1404480#M815738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srujan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than adding all 5 tables into your model at once, it is easier to add the tables one-at-a time, and resolve any data issues due to Syn-keys or loops as you go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way to change your script to add the tables one at a time is to insert an "exit script"&amp;nbsp; line before you load the Reportmaster table. The "exit script" will stop the script cleanly at that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can review the data loaded - you only need to use debug and a limited load of 10 rows is sufficient for this,&lt;/P&gt;&lt;P&gt;fix any errors, then move the exit script line down the script after the next table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just remember to remove the "exit script" line when your load is fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ReportDetail:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt; Report Identifier], &lt;/P&gt;&lt;P&gt;[Report Name], &lt;/P&gt;&lt;P&gt;[Report Complexity], &lt;/P&gt;&lt;P&gt;[Report Source],&lt;/P&gt;&lt;P&gt;[Processing Type], &lt;/P&gt;&lt;P&gt;[Processing Stability], &lt;/P&gt;&lt;P&gt;[Validation method],&lt;/P&gt;&lt;P&gt;[Change requests], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Automation Complexity], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Opportunities for automation], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Limitations for automation], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Effort required for report], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Active Flag], [Load Timestamp],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Modified Timestamp]&lt;/P&gt;&lt;P&gt;FROM XXXX&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exit script ;&amp;nbsp; //&amp;nbsp; #### Script execution will stop here ###########################################&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reportmaster:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;[Report Identifier], &lt;/P&gt;&lt;P&gt;[Report Name], &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 09:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/removing-synthetic-keys/m-p/1404480#M815738</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2017-09-13T09:55:11Z</dc:date>
    </item>
  </channel>
</rss>

