<?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: csv file load issue identical field names different data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442095#M697632</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;use below script to get the required:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD @1 as Material, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as [Product Hierarchy Code], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as [Product Hierarchy Descriptio], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4 as [SG GRP], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5 as Manufacturer&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;SalesProducts.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq, filters(&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 1))&lt;/P&gt;&lt;P&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niranjan M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2013 10:42:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-22T10:42:31Z</dc:date>
    <item>
      <title>csv file load issue identical field names different data</title>
      <link>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442093#M697630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wondered if you could help me out with this issue I am having with a csv file load. I am loading a csv extract from an&amp;nbsp; SAP product table that has 2 identical field names but different data in each field. The first field is an&amp;nbsp; alpha numeric code and the second is a description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I load this file and rename these fields to Product code and Product description, they are both populated with the description data from the second field. If you comment out the second field, it still loads the description from the second field and not the code from the first field. I have never come across this issue and I am assuming that it is skipping the contents of the first field for some reason. Bizarre!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried separating the columns, but it still happens. If you load the file without the embedded column names, it loads as normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an example of what I am loading. Am missing something obvious &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brett&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 09:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442093#M697630</guid>
      <dc:creator />
      <dc:date>2013-01-22T09:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue identical field names different data</title>
      <link>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442094#M697631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD @1&amp;nbsp; as Material, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2&amp;nbsp; as [Product Hierarchy Code],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3&amp;nbsp; as [Product Hierarchy Description],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4&amp;nbsp; as [SG GRP],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5 as Manufacturer&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;SalesProducts.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq, header is 1 lines);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 10:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442094#M697631</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-22T10:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue identical field names different data</title>
      <link>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442095#M697632</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;use below script to get the required:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD @1 as Material, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as [Product Hierarchy Code], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as [Product Hierarchy Descriptio], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4 as [SG GRP], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5 as Manufacturer&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;SalesProducts.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq, filters(&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 1))&lt;/P&gt;&lt;P&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niranjan M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 10:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442095#M697632</guid>
      <dc:creator />
      <dc:date>2013-01-22T10:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue identical field names different data</title>
      <link>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442096#M697633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented this solution but its annoying when you have a bunch of columns to rename.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 21:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442096#M697633</guid>
      <dc:creator />
      <dc:date>2013-01-22T21:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue identical field names different data</title>
      <link>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442097#M697634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have placed a support call as this may be a bug&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brett&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 12:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442097#M697634</guid>
      <dc:creator />
      <dc:date>2013-02-11T12:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue identical field names different data</title>
      <link>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442098#M697635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is not a QlikView bug. However there is a programmatically solution for this kind of header issues using a RENAME Fields command with a Mapping table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13605864357488009" jivemacro_uid="_13605864357488009"&gt;&lt;P&gt;Header:&lt;/P&gt;&lt;P&gt;FIRST 1 LOAD @1:n as First_Line&lt;/P&gt;&lt;P&gt;FROM SalesProducts.csv&lt;/P&gt;&lt;P&gt;(fix, codepage is 1252);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map_Fields:&lt;/P&gt;&lt;P&gt;MAPPING LOAD Field1, if(Field2=Previous(Field2), Field2 &amp;amp; '_2nd', Field2) as Field2;&lt;/P&gt;&lt;P&gt;LOAD '@' &amp;amp; RecNo() as Field1, Field2;&lt;/P&gt;&lt;P&gt;LOAD SubField(First_Line, ',') as Field2&lt;/P&gt;&lt;P&gt;Resident Header;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Header;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesProducts:&lt;/P&gt;&lt;P&gt;LOAD @1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5&lt;/P&gt;&lt;P&gt;FROM SalesProducts.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq, header is 1 lines);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RENAME Fields using Map_Fields;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 12:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/csv-file-load-issue-identical-field-names-different-data/m-p/442098#M697635</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-02-11T12:39:19Z</dc:date>
    </item>
  </channel>
</rss>

