<?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: Duplicate Keys When Loadin Input Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Duplicate-Keys-When-Loadin-Input-Field/m-p/1459885#M435879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Row 17 and 22 in the table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;DI_CustomisableChart_Complex_Dimension&lt;/STRONG&gt; &lt;/SPAN&gt;have the same field name:&amp;nbsp; &lt;STRONG&gt;effective_item_name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you fix this anomaly it works without a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not very clearly documented actually that there needs to be at least one extra field in the same table as the input field and it has to be unique. Additional fields don't have to be unique though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the &lt;STRONG&gt;Example 2&lt;/STRONG&gt; in this document page and the comment saying something about it:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptPrefixes/Inputfield.htm" style="font-size: 10pt;" title="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptPrefixes/Inputfield.htm"&gt;http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptPrefixes/Inputfield.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2018 23:54:29 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2018-01-05T23:54:29Z</dc:date>
    <item>
      <title>Duplicate Keys When Loadin Input Field</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Keys-When-Loadin-Input-Field/m-p/1459884#M435878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting this error running the following load script and cannot determine why.&amp;nbsp; I use the exact same code in a different dashboard with different dimensions and it runs fine.&amp;nbsp; As always, any and all help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the error text from the failed load:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189106_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Here's the code from the load script that I'm executing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;INPUTFIELD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #800000;"&gt;DI_DIM_SortOrder&lt;/SPAN&gt;;&lt;BR /&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;INPUTFIELD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;DI_Exp_SortOrder&lt;/SPAN&gt;;&lt;BR /&gt; &lt;BR /&gt; DI_CustomisableChart_Complex_Dimension:&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Load&lt;/STRONG&gt; &lt;BR /&gt; '['&amp;amp; &lt;SPAN style="color: #800000;"&gt;DI_Dim_FieldName&lt;/SPAN&gt; &amp;amp; ']' &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DI_Dim_FieldName&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;// Important to use [ &amp;amp; ] to surround the field name!!&lt;BR /&gt; &lt;/SPAN&gt; ,&lt;SPAN style="color: #0000ff;"&gt;RowNo&lt;/SPAN&gt;() &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DI_DIM_SortOrder&lt;/SPAN&gt;&lt;BR /&gt; ;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Load&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; DI_Dim_FieldName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; DM #&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; order_date_quarter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; project_id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; estimate_id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; project_name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; estimate_item_primary_location_name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; estimate_item_network_zone&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; project_is_active&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; project_include_in_forecast&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; estimate_is_active&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; estimate_include_in_forecast&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; catalog_name&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; item_sku as sku&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; catalog_item_class_name &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; catalog_item_class_tier1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; catalog_item_class_tier2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_item_name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_item_action&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; project_include_in_budget&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; estimate_include_in_budget&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_item_name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_infra_order_date&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_onetime_Costs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_year1_prorated_cost&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_monthly_cost&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_annual_cost&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_cio_lob &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_reporting_lob &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_reporting_lob_2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; effective_reporting_lob_3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; family_name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; service_name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; sku_name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; mycompute_sku&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; base_product_family &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; base_product_class &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; base_product_type &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; base_product&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; cpu_cores&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; cpu_sockets &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; memory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; currentstatus &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; wrmid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; clarityid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; dq_fully_valid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; ]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;// Create Expressions, you can add formating and set analysis&lt;BR /&gt; &lt;/SPAN&gt;DI_CustomisableChart_Complex_Expressions:&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Load&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; DI_Exp_Label ,DI_Exp_SortOrder ,DI_Exp_Expression&lt;BR /&gt; CPUs ,1 ,"Num(If(Foundation_1 like '*SI', If(Foundation_2 like '*SI CPU', If(Foundation_3 like '*SI * CPU', effective_item_qty * cpu_cores))), '$#,##0;($#,##0)')"&lt;BR /&gt; Memory ,2 ,"Num(If(Foundation_1 like '*SI', If(Foundation_2 like '*SI MEM', If(Foundation_3 like '*SI * MEM', effective_item_qty * memory))), '$#,##0;($#,##0)')"&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 23:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Keys-When-Loadin-Input-Field/m-p/1459884#M435878</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2018-01-05T23:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Keys When Loadin Input Field</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Keys-When-Loadin-Input-Field/m-p/1459885#M435879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Row 17 and 22 in the table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;DI_CustomisableChart_Complex_Dimension&lt;/STRONG&gt; &lt;/SPAN&gt;have the same field name:&amp;nbsp; &lt;STRONG&gt;effective_item_name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you fix this anomaly it works without a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not very clearly documented actually that there needs to be at least one extra field in the same table as the input field and it has to be unique. Additional fields don't have to be unique though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the &lt;STRONG&gt;Example 2&lt;/STRONG&gt; in this document page and the comment saying something about it:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptPrefixes/Inputfield.htm" style="font-size: 10pt;" title="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptPrefixes/Inputfield.htm"&gt;http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptPrefixes/Inputfield.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 23:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Keys-When-Loadin-Input-Field/m-p/1459885#M435879</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-01-05T23:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Keys When Loadin Input Field</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Keys-When-Loadin-Input-Field/m-p/1459886#M435880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Crap!!!&amp;nbsp; Peter, thank you so much for your help.&amp;nbsp; Sometimes, the obvious isn't so obvious and another set of eyes is needed.&amp;nbsp; I guess I looked at it for so long, that I just missed it.&amp;nbsp; Thank you again.&amp;nbsp; I greatly appreciate it.&amp;nbsp; I'll mark your answer as the correct response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2018 00:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Keys-When-Loadin-Input-Field/m-p/1459886#M435880</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2018-01-06T00:00:26Z</dc:date>
    </item>
  </channel>
</rss>

