<?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 Error : Field Names must be unique within table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509483#M750507</link>
    <description>&lt;P&gt;I am getting the below error : Field NAmes must be unique within table. But I don't see any duplicate NAmes.&lt;/P&gt;&lt;P&gt;Using preceding load&lt;/P&gt;&lt;P&gt;for Each vWorksheet in 'Quota 2013','Quota 2014'&lt;BR /&gt;QuotasTemp:&lt;BR /&gt;CrossTable(QuotaYear, QuotaQuarter, 2)&lt;BR /&gt;LOAD&lt;BR /&gt;EmployeeID as QuotaEmployeeID,&lt;BR /&gt;//SalesPerson,&lt;BR /&gt;//'2013' as QuotaYear,&lt;BR /&gt;SubField('$(vWorksheet)',' ',2) as QuotaYear,&lt;BR /&gt;Q1,&lt;BR /&gt;Q2,&lt;BR /&gt;Q3,&lt;BR /&gt;Q4&lt;BR /&gt;FROM [$(vPathExcel)Quota.xls]&lt;BR /&gt;(biff, embedded labels, header is 1 lines, table is [$(vWorksheet)$]);&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;Quotas:&lt;BR /&gt;Load *,&lt;BR /&gt;QuotaEmployeeID &amp;amp; '|' &amp;amp; QuotaYear &amp;amp; '|' &amp;amp; QuotaQuarter as EmpYrQtr_Key&lt;BR /&gt;Resident QuotasTemp;&lt;BR /&gt;Drop Table QuotasTemp;&lt;/P&gt;&lt;P&gt;BounsTemp:&lt;BR /&gt;CrossTable(BonusQuarter, BounsAmount, 2)&lt;BR /&gt;LOAD&lt;BR /&gt;"YEAR",&lt;BR /&gt;EMPLOYEE_ID as EmployeeID,&lt;BR /&gt;QUARTER,&lt;BR /&gt;Q1,&lt;BR /&gt;Q2,&lt;BR /&gt;Q3,&lt;BR /&gt;Q4&lt;BR /&gt;FROM [$(vPathExcel)Bonus.xls]&lt;BR /&gt;(biff, embedded labels, header is 1 lines, table is Bonus$);&lt;/P&gt;&lt;P&gt;Bonus:&lt;BR /&gt;Load&lt;BR /&gt;EmployeeID,&lt;BR /&gt;BonusQuarter,&lt;BR /&gt;BounsAmount,&lt;BR /&gt;IF(IsNull("YEAR"),Peek(BounsYear),"YEAR") as BounsYear&lt;BR /&gt;Resident BounsTemp;&lt;BR /&gt;Drop Table BounsTemp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="캡처.JPG" style="width: 671px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/621iB29D318979970360/image-size/large?v=v2&amp;amp;px=999" role="button" title="캡처.JPG" alt="캡처.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="캡처1.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/622i6865AD4B646461BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="캡처1.JPG" alt="캡처1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Error : Field Names must be unique within table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509483#M750507</link>
      <description>&lt;P&gt;I am getting the below error : Field NAmes must be unique within table. But I don't see any duplicate NAmes.&lt;/P&gt;&lt;P&gt;Using preceding load&lt;/P&gt;&lt;P&gt;for Each vWorksheet in 'Quota 2013','Quota 2014'&lt;BR /&gt;QuotasTemp:&lt;BR /&gt;CrossTable(QuotaYear, QuotaQuarter, 2)&lt;BR /&gt;LOAD&lt;BR /&gt;EmployeeID as QuotaEmployeeID,&lt;BR /&gt;//SalesPerson,&lt;BR /&gt;//'2013' as QuotaYear,&lt;BR /&gt;SubField('$(vWorksheet)',' ',2) as QuotaYear,&lt;BR /&gt;Q1,&lt;BR /&gt;Q2,&lt;BR /&gt;Q3,&lt;BR /&gt;Q4&lt;BR /&gt;FROM [$(vPathExcel)Quota.xls]&lt;BR /&gt;(biff, embedded labels, header is 1 lines, table is [$(vWorksheet)$]);&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;Quotas:&lt;BR /&gt;Load *,&lt;BR /&gt;QuotaEmployeeID &amp;amp; '|' &amp;amp; QuotaYear &amp;amp; '|' &amp;amp; QuotaQuarter as EmpYrQtr_Key&lt;BR /&gt;Resident QuotasTemp;&lt;BR /&gt;Drop Table QuotasTemp;&lt;/P&gt;&lt;P&gt;BounsTemp:&lt;BR /&gt;CrossTable(BonusQuarter, BounsAmount, 2)&lt;BR /&gt;LOAD&lt;BR /&gt;"YEAR",&lt;BR /&gt;EMPLOYEE_ID as EmployeeID,&lt;BR /&gt;QUARTER,&lt;BR /&gt;Q1,&lt;BR /&gt;Q2,&lt;BR /&gt;Q3,&lt;BR /&gt;Q4&lt;BR /&gt;FROM [$(vPathExcel)Bonus.xls]&lt;BR /&gt;(biff, embedded labels, header is 1 lines, table is Bonus$);&lt;/P&gt;&lt;P&gt;Bonus:&lt;BR /&gt;Load&lt;BR /&gt;EmployeeID,&lt;BR /&gt;BonusQuarter,&lt;BR /&gt;BounsAmount,&lt;BR /&gt;IF(IsNull("YEAR"),Peek(BounsYear),"YEAR") as BounsYear&lt;BR /&gt;Resident BounsTemp;&lt;BR /&gt;Drop Table BounsTemp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="캡처.JPG" style="width: 671px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/621iB29D318979970360/image-size/large?v=v2&amp;amp;px=999" role="button" title="캡처.JPG" alt="캡처.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="캡처1.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/622i6865AD4B646461BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="캡처1.JPG" alt="캡처1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509483#M750507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error : Field Names must be unique within table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509489#M750508</link>
      <description>&lt;P&gt;Instead of &lt;STRONG&gt;Load *&lt;/STRONG&gt; - Use All field names like&amp;nbsp;&lt;STRONG&gt;Load Field, Field1, ....&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 07:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509489#M750508</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-11-20T07:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error : Field Names must be unique within table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509497#M750509</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I think this bit might be the problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;QuotasTemp:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CrossTable(QuotaYear, QuotaQuarter, 2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EmployeeID as QuotaEmployeeID,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//SalesPerson,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//'2013' as QuotaYear,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SubField('$(vWorksheet)',' ',2) as QuotaYear,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Q1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Q2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Q3,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Q4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM [$(vPathExcel)Quota.xls]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(biff, embedded labels, header is 1 lines, table is [$(vWorksheet)$]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You are loading a table with fields QuotaEmployeeID, QuotaYear, Q1, Q2, Q3, Q4, then your crosstable qualifies the first 2 fields (QuotaEmployeeID, QuotaYear) and tries to create 2 fields, 'QuotaYear' for Q1, Q2, Q3, Q4, and 'QuotaQuarter' for the data values. This would create a table with QuotaEmployeeID, QuotaYear, QuotaYear, and QuotaQuarter. This obviously isn't possible, because you'd have 2 QuotaYear fields. You can see this in the fourth line from the bottom in your log file as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To fix this I'd change your crosstable statement to something like (QuotaQuarter, Value, 2). This will put Q1, Q2, Q3, Q4 in the 'QuotaQuarter' field, and all respective values in the 'Value' field.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 07:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509497#M750509</guid>
      <dc:creator>jensmunnichs</dc:creator>
      <dc:date>2018-11-20T07:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error : Field Names must be unique within table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509503#M750510</link>
      <description>&lt;P&gt;Hi Mandue,&lt;/P&gt;&lt;P&gt;Just modify the first section like this and see if it is working for you ?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for Each vWorksheet in 'Quota 2013','Quota 2014'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QuotasTemp:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CrossTable(QuotaYear, QuotaQuarter, 2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EmployeeID as QuotaEmployeeID,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//SalesPerson,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//'2013' as QuotaYear,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SubField('$(vWorksheet)',' ',2) as &lt;FONT face="arial black,avant garde" color="#008000"&gt;QuotaYear_New&lt;/FONT&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Q1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Q2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Q3,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Q4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM [$(vPathExcel)Quota.xls]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(biff, embedded labels, header is 1 lines, table is [$(vWorksheet)$]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 07:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509503#M750510</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-11-20T07:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error : Field Names must be unique within table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509505#M750511</link>
      <description>&lt;P&gt;You are using field QuotaYear filed twice in the same table &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 07:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509505#M750511</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-11-20T07:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error : Field Names must be unique within table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509538#M750512</link>
      <description>&lt;P&gt;Please close the thread by marking the correct answer, if you have found the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 08:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509538#M750512</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-11-20T08:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error : Field Names must be unique within table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509543#M750513</link>
      <description>&lt;P&gt;Thanks to you, I solved it. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 08:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-Names-must-be-unique-within-table/m-p/1509543#M750513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-20T08:57:14Z</dc:date>
    </item>
  </channel>
</rss>

