<?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: Load Multiple KML in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095561#M1802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yan&lt;/P&gt;&lt;P&gt;So, your solution now works? or do you have some issues still open?&lt;/P&gt;&lt;P&gt;If the solution now works, it would be great, if you would mark your question as answered. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Feb 2016 08:55:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-18T08:55:22Z</dc:date>
    <item>
      <title>Load Multiple KML</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095553#M1794</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;I have these KML files generated automatically with different filename depend on time generated. I have no problem to load each of the files, but is there any way to load all the files automatically using modified load script so I can just set the load task in Management Console without manually adding new kml file first?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 05:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095553#M1794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T05:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple KML</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095554#M1795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can edit the load script and use a star (*) as a wildcard to load multiple files with the same structure in one go &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;So edit your current load script and remove parts of the file name that is different and replace it by *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;location*.kml&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 08:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095554#M1795</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-02-11T08:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple KML</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095555#M1796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First define a variable containing the path to the kml files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vRoot = '..here add the path to where your kml-files are located....';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB DoDir (Root)&lt;/P&gt;&lt;P&gt;FOR each FILE in FileList(Root&amp;amp; '\My_kml_File_from_date*.kml')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(FILE)];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT FILE&lt;/P&gt;&lt;P&gt;END SUB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL DoDir(vRoot);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 12:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095555#M1796</guid>
      <dc:creator />
      <dc:date>2016-02-11T12:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple KML</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095556#M1797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="j-simple-name font-color-normal"&gt;QlikCsgg,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are my script version :&lt;/P&gt;&lt;P&gt;Let vRoot = 'lib://TestLoad/ftp\shp_oildetection';&lt;/P&gt;&lt;P&gt;SUB DoDir (Root)&lt;/P&gt;&lt;P&gt;FOR each FILE in FileList(Root&amp;amp; '\*.kml')&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(FILE)];&lt;/P&gt;&lt;P&gt;NEXT FILE&lt;/P&gt;&lt;P&gt;END SUB;&lt;/P&gt;&lt;P&gt;CALL DoDir(vRoot);&lt;/P&gt;&lt;P&gt;And this are the result : "&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-weight: bold; text-align: start; text-indent: 0px;"&gt;Data has not been loaded. Please correct the error and try loading again.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;I noticed you not using table attribute, is it correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 03:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095556#M1797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-12T03:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple KML</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095557#M1798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table attribute should not be an issue here. The problem you ran into is that in Qlik Sense file path descriptions use "/" instead of "\". In Qlikview, however, you would normally use the "/". Thus, when you replace&lt;/P&gt;&lt;P&gt;Let vRoot = 'lib://TestLoad/ftp\shp_oildetection'; ... and ...&amp;nbsp; FOR each FILE in FileList(Root&amp;amp; '\*.kml') ...&amp;nbsp; to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vRoot = 'lib://TestLoad/ftp/shp_oildetection'; ... and ...&amp;nbsp; FOR each FILE in FileList(Root&amp;amp; '/*.kml')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then this should work in Qlik Sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 07:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095557#M1798</guid>
      <dc:creator />
      <dc:date>2016-02-12T07:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple KML</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095558#M1799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="j-simple-name font-color-normal"&gt;QlikCsgg,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I've change the part you mention thus here are the result :&lt;/P&gt;&lt;P&gt;Let vRoot = 'lib://TestLoad/ftp/shp_oildetection';&lt;/P&gt;&lt;P&gt;SUB DoDir (Root)&lt;/P&gt;&lt;P&gt;FOR each FILE in FileList(Root&amp;amp; '/*.kml')&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(FILE)];&lt;/P&gt;&lt;P&gt;NEXT FILE&lt;/P&gt;&lt;P&gt;END SUB;&lt;/P&gt;&lt;P&gt;CALL DoDir(vRoot);&lt;/P&gt;&lt;P&gt;But the error are still the same message. Is there any log or note that have detail information of the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 06:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095558#M1799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-15T06:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple KML</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095559#M1800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's get then to the starting point. Are you using Qlikview or Qlik Sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using Qlikview, then you need to define your variable vRoot with a proper file path to where your kml-files are stored, e.g. &lt;/P&gt;&lt;P&gt;let vRoot = 'C:\Users\geomarketing\Documents\Qlikview\010_rawdata\'&lt;/P&gt;&lt;P&gt;and the variable FileList(Root&amp;amp;'\Customer_with_GeoLoc_20*.kml')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using Qlik Sense, then you need to define first a connector within your QS application, which you define as a path to a file folder, e.g.&lt;/P&gt;&lt;P&gt;C:/Users/geomarketing/Documents/QlikSense/010_rawdata/ and as a Library-Name you could use "KML_File_Folder".&lt;/P&gt;&lt;P&gt;The variable vRoot would then be&lt;/P&gt;&lt;P&gt;let vRoot ='LIB://KML_File_Folder'&lt;/P&gt;&lt;P&gt;and the variable FileList(Root&amp;amp;'/Customer_with_GeoLoc_20*.kml')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, when you let this script run as a scheduled Management Console "job", you need to grant the "User of the Management Console" (in most cases this is a technical user) to have access rights to the folder where your kml-files are stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should work - at least it does with my setup. Hope this works for you too.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 16:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095559#M1800</guid>
      <dc:creator />
      <dc:date>2016-02-15T16:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple KML</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095560#M1801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName"&gt;QlikCsgg,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I found all KML files didn't have any common field, so then I remove &lt;STRONG&gt;Concatenate&lt;/STRONG&gt; command and put some declaration to change the field name into 1 name. Then I add &lt;STRONG&gt;(kml) &lt;/STRONG&gt;command after &lt;STRONG&gt;FROM&lt;/STRONG&gt; line to get only the KML content. Finally these are my latest working load script:&lt;/P&gt;&lt;P&gt;LET vRoot = 'lib://Oil/';&lt;/P&gt;&lt;P&gt;SUB DoDir (Root)&lt;/P&gt;&lt;P&gt;FOR each FILE in FileList(Root &amp;amp; '*.kml')&lt;/P&gt;&lt;P&gt;SET vPath = [$(FILE)];&lt;/P&gt;&lt;P&gt;LET vFileName = mid(vPath,11,67)&amp;amp;'.Area';&lt;/P&gt;&lt;P&gt;OilPolygon:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD $(vFileName) as Polygon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(FILE)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (kml);&lt;/P&gt;&lt;P&gt;NEXT FILE&lt;/P&gt;&lt;P&gt;END SUB;&lt;/P&gt;&lt;P&gt;CALL DoDir(vRoot);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 04:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095560#M1801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-16T04:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple KML</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095561#M1802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yan&lt;/P&gt;&lt;P&gt;So, your solution now works? or do you have some issues still open?&lt;/P&gt;&lt;P&gt;If the solution now works, it would be great, if you would mark your question as answered. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 08:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095561#M1802</guid>
      <dc:creator />
      <dc:date>2016-02-18T08:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple KML</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095562#M1803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QlikCsgg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It solved now, thank you very much for the guidance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 03:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-Multiple-KML/m-p/1095562#M1803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T03:18:05Z</dc:date>
    </item>
  </channel>
</rss>

