<?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 Qlik CSV load fails to detect duplicate fields' names in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-CSV-load-fails-to-detect-duplicate-fields-names/m-p/1368300#M2909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a CSV file that has several identical fields' names:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 12.26.28 PM.png" class="jive-image image-1" height="148" src="/legacyfs/online/162237_Screen Shot 2017-05-04 at 12.26.28 PM.png" style="height: 148.474px; width: 403px;" width="402" /&gt;&lt;/P&gt;&lt;P&gt;Loading this file in the original CSV format creates a problem since QS does not detect the duplicate fields' names until the actual script's loading. &lt;/P&gt;&lt;P&gt;The script it generated as:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 12.48.59 PM.png" class="jive-image image-2" src="/legacyfs/online/162251_Screen Shot 2017-05-04 at 12.48.59 PM.png" style="height: 170px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Which requires fields renaming before the load:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 12.55.11 PM.png" class="jive-image image-3" src="/legacyfs/online/162254_Screen Shot 2017-05-04 at 12.55.11 PM.png" style="height: 167px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that Qlik loads the data for all these AAAAA fields from the &lt;STRONG style="text-decoration: underline;"&gt;last (??!!)&lt;/STRONG&gt; field listed in the table:&lt;/P&gt;&lt;P&gt;Here is the result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 12.53.44 PM.png" class="image-4 jive-image" src="/legacyfs/online/162256_Screen Shot 2017-05-04 at 12.53.44 PM.png" style="height: 198px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Using "Data Manager" and "Add Data" mode produces even more radical solution. Qlik just ignores duplicate fields:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 1.11.31 PM.png" class="jive-image image-7" height="179" src="/legacyfs/online/162259_Screen Shot 2017-05-04 at 1.11.31 PM.png" style="width: 766px; height: 178.965px;" width="766" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same file converted to XLS format works fine. Qlik recognizes duplicates and generates the script as:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 1.03.29 PM.png" class="image-5 jive-image" src="/legacyfs/online/162257_Screen Shot 2017-05-04 at 1.03.29 PM.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Which produces the proper result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 1.05.45 PM.png" class="jive-image image-6" src="/legacyfs/online/162258_Screen Shot 2017-05-04 at 1.05.45 PM.png" style="height: 150px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Any reason Qlik has not applied the same logic to CSV load? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I can ignore file's Header and load data as @1, @2, ... @n fields... Which requires a lot of fields' renaming (I am loading US Census data with 500+ columns) and is not very stable because of the possible data structure changes....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also know that this is a legacy issue and was discussed here few times (&lt;A href="https://community.qlik.com/message/110655"&gt;Same Field Names&lt;/A&gt;‌) and (&lt;A href="https://community.qlik.com/message/708621"&gt;Re: Reload Excel file with duplicate field name&lt;/A&gt;). But I am just wondering if any other solution would be suggested....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate a feedback and suggestions... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 May 2017 18:25:07 GMT</pubDate>
    <dc:creator>vlad_komarov</dc:creator>
    <dc:date>2017-05-04T18:25:07Z</dc:date>
    <item>
      <title>Qlik CSV load fails to detect duplicate fields' names</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-CSV-load-fails-to-detect-duplicate-fields-names/m-p/1368300#M2909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a CSV file that has several identical fields' names:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 12.26.28 PM.png" class="jive-image image-1" height="148" src="/legacyfs/online/162237_Screen Shot 2017-05-04 at 12.26.28 PM.png" style="height: 148.474px; width: 403px;" width="402" /&gt;&lt;/P&gt;&lt;P&gt;Loading this file in the original CSV format creates a problem since QS does not detect the duplicate fields' names until the actual script's loading. &lt;/P&gt;&lt;P&gt;The script it generated as:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 12.48.59 PM.png" class="jive-image image-2" src="/legacyfs/online/162251_Screen Shot 2017-05-04 at 12.48.59 PM.png" style="height: 170px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Which requires fields renaming before the load:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 12.55.11 PM.png" class="jive-image image-3" src="/legacyfs/online/162254_Screen Shot 2017-05-04 at 12.55.11 PM.png" style="height: 167px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that Qlik loads the data for all these AAAAA fields from the &lt;STRONG style="text-decoration: underline;"&gt;last (??!!)&lt;/STRONG&gt; field listed in the table:&lt;/P&gt;&lt;P&gt;Here is the result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 12.53.44 PM.png" class="image-4 jive-image" src="/legacyfs/online/162256_Screen Shot 2017-05-04 at 12.53.44 PM.png" style="height: 198px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Using "Data Manager" and "Add Data" mode produces even more radical solution. Qlik just ignores duplicate fields:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 1.11.31 PM.png" class="jive-image image-7" height="179" src="/legacyfs/online/162259_Screen Shot 2017-05-04 at 1.11.31 PM.png" style="width: 766px; height: 178.965px;" width="766" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same file converted to XLS format works fine. Qlik recognizes duplicates and generates the script as:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 1.03.29 PM.png" class="image-5 jive-image" src="/legacyfs/online/162257_Screen Shot 2017-05-04 at 1.03.29 PM.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Which produces the proper result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-05-04 at 1.05.45 PM.png" class="jive-image image-6" src="/legacyfs/online/162258_Screen Shot 2017-05-04 at 1.05.45 PM.png" style="height: 150px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Any reason Qlik has not applied the same logic to CSV load? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I can ignore file's Header and load data as @1, @2, ... @n fields... Which requires a lot of fields' renaming (I am loading US Census data with 500+ columns) and is not very stable because of the possible data structure changes....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also know that this is a legacy issue and was discussed here few times (&lt;A href="https://community.qlik.com/message/110655"&gt;Same Field Names&lt;/A&gt;‌) and (&lt;A href="https://community.qlik.com/message/708621"&gt;Re: Reload Excel file with duplicate field name&lt;/A&gt;). But I am just wondering if any other solution would be suggested....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate a feedback and suggestions... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 18:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-CSV-load-fails-to-detect-duplicate-fields-names/m-p/1368300#M2909</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2017-05-04T18:25:07Z</dc:date>
    </item>
  </channel>
</rss>

