<?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 Script error: Why? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-error-Why/m-p/1395912#M423765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Hi Guys,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;i'm getting this error in red below when i load my script. It's the first time and on that portion of scripet all field are unique.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Which could be the reason?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;hanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Field names must be unique within table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Concatenate (F42119Temp)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'000'&amp;amp;[COMPANY],5 as Order_Company,&lt;/P&gt;&lt;P&gt;'000'&amp;amp;[COMPANY],5 as CompanyBP,&lt;/P&gt;&lt;P&gt;RECORD_NO as Order_Line,&lt;/P&gt;&lt;P&gt;CUSTOMER_NO as Ship_to_Number,&lt;/P&gt;&lt;P&gt;CUSTOMER_NO as Address_Number,&lt;/P&gt;&lt;P&gt;If(Match(COMPANY, 10), 'USD', If(Match(COMPANY, 80), 'JPY')) as Currency,&lt;/P&gt;&lt;P&gt;Date#(If(Len(MONTH)=1,YEAR&amp;amp;'0'&amp;amp;MONTH&amp;amp;'01',YEAR&amp;amp;MONTH&amp;amp;'01'),'YYYYMMDD') as Date,&lt;/P&gt;&lt;P&gt;Date(Date#(If(Len(MONTH)=1,YEAR&amp;amp;'0'&amp;amp;MONTH&amp;amp;'01',YEAR&amp;amp;MONTH&amp;amp;'01'),'YYYYMMDD'), 'MM/DD/YYYY') as Date2,&lt;/P&gt;&lt;P&gt;ITEM_NO as Item_Number,&lt;/P&gt;&lt;P&gt;Num(EXTENDED_PRICE_AMT_LCL) as ExtendedOriginal,&lt;/P&gt;&lt;P&gt;QUANTITY as Qty_Sold,&lt;/P&gt;&lt;P&gt;QUANTITY as Qty_Shipped,&lt;/P&gt;&lt;P&gt;ApplyMap('PlanRate', (If(Match(Right([COMPANY],2), '10', '14'), 'USD', If(Match(Right([COMPANY],2), '15'), 'CAD', If(Match(Right([COMPANY],2), '32', '34', '40', '46'), 'EUR',&lt;/P&gt;&lt;P&gt;If(Match(Right([COMPANY],2), '42'), 'GBP'))))), 'FX-not-found')* Replace(EXTENDED_PRICE_AMT_LCL, '.',',') as ExtendedUSD&lt;/P&gt;&lt;P&gt;Resident SalesInternationalTemp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2017 08:08:18 GMT</pubDate>
    <dc:creator>qlikviewaf</dc:creator>
    <dc:date>2017-09-12T08:08:18Z</dc:date>
    <item>
      <title>Script error: Why?</title>
      <link>https://community.qlik.com/t5/QlikView/Script-error-Why/m-p/1395912#M423765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Hi Guys,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;i'm getting this error in red below when i load my script. It's the first time and on that portion of scripet all field are unique.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Which could be the reason?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;hanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Field names must be unique within table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Concatenate (F42119Temp)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'000'&amp;amp;[COMPANY],5 as Order_Company,&lt;/P&gt;&lt;P&gt;'000'&amp;amp;[COMPANY],5 as CompanyBP,&lt;/P&gt;&lt;P&gt;RECORD_NO as Order_Line,&lt;/P&gt;&lt;P&gt;CUSTOMER_NO as Ship_to_Number,&lt;/P&gt;&lt;P&gt;CUSTOMER_NO as Address_Number,&lt;/P&gt;&lt;P&gt;If(Match(COMPANY, 10), 'USD', If(Match(COMPANY, 80), 'JPY')) as Currency,&lt;/P&gt;&lt;P&gt;Date#(If(Len(MONTH)=1,YEAR&amp;amp;'0'&amp;amp;MONTH&amp;amp;'01',YEAR&amp;amp;MONTH&amp;amp;'01'),'YYYYMMDD') as Date,&lt;/P&gt;&lt;P&gt;Date(Date#(If(Len(MONTH)=1,YEAR&amp;amp;'0'&amp;amp;MONTH&amp;amp;'01',YEAR&amp;amp;MONTH&amp;amp;'01'),'YYYYMMDD'), 'MM/DD/YYYY') as Date2,&lt;/P&gt;&lt;P&gt;ITEM_NO as Item_Number,&lt;/P&gt;&lt;P&gt;Num(EXTENDED_PRICE_AMT_LCL) as ExtendedOriginal,&lt;/P&gt;&lt;P&gt;QUANTITY as Qty_Sold,&lt;/P&gt;&lt;P&gt;QUANTITY as Qty_Shipped,&lt;/P&gt;&lt;P&gt;ApplyMap('PlanRate', (If(Match(Right([COMPANY],2), '10', '14'), 'USD', If(Match(Right([COMPANY],2), '15'), 'CAD', If(Match(Right([COMPANY],2), '32', '34', '40', '46'), 'EUR',&lt;/P&gt;&lt;P&gt;If(Match(Right([COMPANY],2), '42'), 'GBP'))))), 'FX-not-found')* Replace(EXTENDED_PRICE_AMT_LCL, '.',',') as ExtendedUSD&lt;/P&gt;&lt;P&gt;Resident SalesInternationalTemp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-error-Why/m-p/1395912#M423765</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2017-09-12T08:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script error: Why?</title>
      <link>https://community.qlik.com/t5/QlikView/Script-error-Why/m-p/1395913#M423766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This error indicates if we are not initiating the fields then this error will come up &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Field names must be unique within table &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load &lt;STRONG&gt;*,&lt;/STRONG&gt; If(.....);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load File1, File2, File3 ....;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-error-Why/m-p/1395913#M423766</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-12T08:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script error: Why?</title>
      <link>https://community.qlik.com/t5/QlikView/Script-error-Why/m-p/1395914#M423767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At a first glance, it's because&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;'000'&amp;amp;[COMPANY],5&lt;/STRONG&gt; as Order_Company,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;'000'&amp;amp;[COMPANY],5&lt;/STRONG&gt; as CompanyBP,&lt;/P&gt;&lt;P&gt;use a comma without escaping, so the name of the field in both cases is&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;'000'&amp;amp;[COMPANY]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Maybe you want something like this instead:&lt;/P&gt;&lt;P&gt;"'000'&amp;amp;[COMPANY],5" as Order_Company&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;using double quotes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-error-Why/m-p/1395914#M423767</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-09-12T08:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script error: Why?</title>
      <link>https://community.qlik.com/t5/QlikView/Script-error-Why/m-p/1395915#M423768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;Miguel is right.&lt;/P&gt;&lt;P&gt;If You want Order_Company like&amp;nbsp; '00015' or '00001', then if COMPANY is numeric try&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(COMPANY,'00000') as Order_Company,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-error-Why/m-p/1395915#M423768</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-09-12T08:58:21Z</dc:date>
    </item>
  </channel>
</rss>

