<?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 slows down script execution in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28205#M4659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do not really understand what we are suggesting, then you can try the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The synthetic keys are eventually blocking the creation of your data model. There are simply too many.&lt;/LI&gt;&lt;LI&gt;Synthetic keys should be avoided as much as possible&lt;/LI&gt;&lt;LI&gt;The technique to do that is probably very simple, but if QlikView won't grant you access to the document after it loaded all those tables, then you're stuck.&lt;/LI&gt;&lt;LI&gt;A way to escape from this situation and observe what is going wrong with your script is to create a new temporary folder and copy &lt;EM&gt;three&lt;/EM&gt; of the excel&lt;SPAN style="font-size: 13.3333px;"&gt; source&lt;/SPAN&gt; files into that folder to test.&lt;/LI&gt;&lt;LI&gt;Then change the pink path in your&amp;nbsp; FOR EACH statement so that it points to the temporary folder and reload.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView will still create syntehtic keys, but not as many. And they won't block your access to the loaded document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then press Ctrl-T and check your data model. Is this what you expect it to be? If not, check Krishna's post because it contains various solutions for this problem. Or ask away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2018 19:47:59 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2018-03-14T19:47:59Z</dc:date>
    <item>
      <title>Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28200#M4654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hi everyone!&lt;/P&gt;&lt;P&gt;Im having an issue with synthetic keys causing my script load to take FOREVER and no data actually appears.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Script Execution.PNG" class="jive-image image-1" height="272" src="/legacyfs/online/196387_Script Execution.PNG" style="height: 272.127px; width: 315px;" width="315" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a code that pulls multiple excel tabs fom multiple excel files. The files I use ar enot large at all, but for some reason Qlikview is giving me a hard time. Can anyone give a suggestion within my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Each file in FileList('&lt;EM style="color: #ff00ff;"&gt;LOCATION OF FOLDER HERE&lt;/EM&gt;\*.xlsx');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODBC CONNECT32 TO [Excel Files;DBQ=$(file)];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tables:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQLtables;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DISCONNECT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FOR i = 0 to NoOfRows('tables')-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET sheetName = purgeChar(purgeChar(peek('TABLE_NAME', i, 'tables'), chr(39)), chr(36));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From $(file)(ooxml, embedded labels, table is [$(sheetName)]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEXT i&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Tables Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Next file&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 18:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28200#M4654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T18:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28201#M4655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;SQLtables;?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can you share if you have some code here?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28201#M4655</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-03-14T19:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28202#M4656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQLtables will give fields from the tables within the ODBC connection&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptRegularStatements/SQLTables.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptRegularStatements/SQLTables.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptRegularStatements/SQLTables.…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28202#M4656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T19:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28203#M4657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use Qualify on fields for which you don't want associations..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28203#M4657</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-03-14T19:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28204#M4658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;107 synthetic keys? probably qlikview is loading the same table multiple times.If you need all the tables,then you have rename the fields by using various methods like Qualify,Using 'As', etc.if you need all the data in one table try concatenating/merging all the data into one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure what your scenario is.&lt;/P&gt;&lt;P&gt;please share your excel file with some sample data in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28204#M4658</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2018-03-14T19:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28205#M4659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do not really understand what we are suggesting, then you can try the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The synthetic keys are eventually blocking the creation of your data model. There are simply too many.&lt;/LI&gt;&lt;LI&gt;Synthetic keys should be avoided as much as possible&lt;/LI&gt;&lt;LI&gt;The technique to do that is probably very simple, but if QlikView won't grant you access to the document after it loaded all those tables, then you're stuck.&lt;/LI&gt;&lt;LI&gt;A way to escape from this situation and observe what is going wrong with your script is to create a new temporary folder and copy &lt;EM&gt;three&lt;/EM&gt; of the excel&lt;SPAN style="font-size: 13.3333px;"&gt; source&lt;/SPAN&gt; files into that folder to test.&lt;/LI&gt;&lt;LI&gt;Then change the pink path in your&amp;nbsp; FOR EACH statement so that it points to the temporary folder and reload.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView will still create syntehtic keys, but not as many. And they won't block your access to the loaded document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then press Ctrl-T and check your data model. Is this what you expect it to be? If not, check Krishna's post because it contains various solutions for this problem. Or ask away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28205#M4659</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-03-14T19:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28206#M4660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is the right solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tend to store the tables and drop the tables at the end of each iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Synth. Keys are not bad, but they do tend to make the loading process take longer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28206#M4660</guid>
      <dc:creator>dionverbeke</dc:creator>
      <dc:date>2018-03-14T19:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28207#M4661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have several files. Each files contains 4 tabs.&lt;/P&gt;&lt;P&gt;In each tab will be various amounts of data that will all have the same column names, but the information within will vary. I've attached an image with an idea of the data that will be used.I would just like to load all of the data from the multiple tabs from multiple excel files.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sample Data.PNG" class="jive-image image-1" src="/legacyfs/online/196581_Sample Data.PNG" style="height: 36px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 14:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28207#M4661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-16T14:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28208#M4662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to have the data distinct and without concatenation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 14:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28208#M4662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-16T14:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28209#M4663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the script you posted is accurate, then I can see at least one problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Tables Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you meant&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Tables Tables;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you drop Table instead of Tables, then you will keep adding to the Tables list and load every file many times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You &lt;STRONG&gt;should&lt;/STRONG&gt; concatenate these loads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before your file loop begins, prepare a Table to concat to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD 0 as dummyField autogenerate 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Load of the xls file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (Table) LOAD ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of all your loops:&lt;/P&gt;&lt;P&gt;DROP FIELD dummyField;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 17:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28209#M4663</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-03-16T17:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28210#M4664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want all the tables with no concatenation, uSe 'Qualify' key before each table load.this ensure you have all the tables without formation of any synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post atleast some sample files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 07:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28210#M4664</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2018-03-17T07:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic Keys slows down script execution</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28211#M4665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Peter, it's the best solution!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;qualify / unqualify&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;drop table&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;drop field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 12:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-Keys-slows-down-script-execution/m-p/28211#M4665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-17T12:46:02Z</dc:date>
    </item>
  </channel>
</rss>

