<?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: Query is getting error Duplicate values causing conflict in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-is-getting-error-Duplicate-values-causing-conflict/m-p/416240#M119814</link>
    <description>&lt;P&gt;When its passed as token to other panels along with the Owner , there should be no impact of deleting duplicate branch number in your input query as your selection from lookup or index will be based on combination of branch# and Owner. Can you please paste your code so it will be easy to understand the question.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Oct 2018 15:00:29 GMT</pubDate>
    <dc:creator>Vijeta</dc:creator>
    <dc:date>2018-10-12T15:00:29Z</dc:date>
    <item>
      <title>Query is getting error Duplicate values causing conflict</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-is-getting-error-Duplicate-values-causing-conflict/m-p/416239#M119813</link>
      <description>&lt;P&gt;I have this data&lt;BR /&gt;
Owner   Branch# Bname&lt;BR /&gt;
O1  B1  Bname1&lt;BR /&gt;
O1  B2  Bname2&lt;BR /&gt;
O2  B1  Bname3&lt;BR /&gt;
O2  B3  Bname4&lt;BR /&gt;
O2  B4  Bname5&lt;BR /&gt;
O3  B3  Bname6&lt;BR /&gt;
O3  B5  Bname7&lt;/P&gt;

&lt;P&gt;I need to put the Bname in a dropdown where depending on the Owner (token) but the query is getting error Duplicate values causing conflict because of the multiple Branch#. I cannot dedup Branch# as this will be passed on as token to other panels when owner is chosen. If I do dedup, it will only pass the 1st occurence and other owner will not have any Branch# to chose from. &lt;/P&gt;

&lt;P&gt;Any idea on how to manage the SPL? &lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 13:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-is-getting-error-Duplicate-values-causing-conflict/m-p/416239#M119813</guid>
      <dc:creator>teddyidc1101</dc:creator>
      <dc:date>2018-10-12T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query is getting error Duplicate values causing conflict</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-is-getting-error-Duplicate-values-causing-conflict/m-p/416240#M119814</link>
      <description>&lt;P&gt;When its passed as token to other panels along with the Owner , there should be no impact of deleting duplicate branch number in your input query as your selection from lookup or index will be based on combination of branch# and Owner. Can you please paste your code so it will be easy to understand the question.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 15:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-is-getting-error-Duplicate-values-causing-conflict/m-p/416240#M119814</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-12T15:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Query is getting error Duplicate values causing conflict</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-is-getting-error-Duplicate-values-causing-conflict/m-p/416241#M119815</link>
      <description>&lt;P&gt;Here is the sample code for the dropdown:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt;   &amp;lt;input type="dropdown"
&amp;gt; token="report"
&amp;gt; searchWhenChanged="true"&amp;gt;
&amp;gt;         &amp;lt;label&amp;gt;Report Type&amp;lt;/label&amp;gt;
&amp;gt;         &amp;lt;fieldForValue&amp;gt;foo&amp;lt;/fieldForValue&amp;gt;
&amp;gt;         &amp;lt;search&amp;gt;
&amp;gt;           &amp;lt;query&amp;gt;| inputlookup foo.csv  | sort foo foo_label | where
&amp;gt; report_label="foo" 
&amp;gt;         &amp;lt;/search&amp;gt;
&amp;gt;         &amp;lt;change&amp;gt;
&amp;gt;           &amp;lt;set token="foolabel"&amp;gt;$label$&amp;lt;/set&amp;gt;
&amp;gt;         &amp;lt;/change&amp;gt;
&amp;gt;         &amp;lt;fieldForLabel&amp;gt;foo_label&amp;lt;/fieldForLabel&amp;gt;
&amp;gt;         &amp;lt;default&amp;gt;foo&amp;lt;/default&amp;gt;
&amp;gt;         &amp;lt;initialValue&amp;gt;foo&amp;lt;/initialValue&amp;gt;
&amp;gt;       &amp;lt;/input&amp;gt;
&amp;gt;       &amp;lt;input type="dropdown" token="foo2_id"
&amp;gt; searchWhenChanged="true"&amp;gt;
&amp;gt;         &amp;lt;label&amp;gt;Foo2&amp;lt;/label&amp;gt;
&amp;gt;         &amp;lt;fieldForLabel&amp;gt;foo_NM&amp;lt;/fieldForLabel&amp;gt;
&amp;gt;         &amp;lt;fieldForValue&amp;gt;foo2_ID&amp;lt;/fieldForValue&amp;gt;
&amp;gt;         &amp;lt;search base="foo2_metadata"&amp;gt;
&amp;gt;           &amp;lt;query&amp;gt;| dedup foo2_ID | fields foo_NM foo2_ID  | sort
&amp;gt; foo_NM&amp;lt;/query&amp;gt;
&amp;gt;         &amp;lt;/search&amp;gt;
&amp;gt;         &amp;lt;change&amp;gt;
&amp;gt;           &amp;lt;set token="foo2_label"&amp;gt;$label$&amp;lt;/set&amp;gt;
&amp;gt;         &amp;lt;/change&amp;gt;
&amp;gt;         &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;
&amp;gt;         &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
&amp;gt;         &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
&amp;gt;       &amp;lt;/input&amp;gt;
&amp;gt;       &amp;lt;input type="dropdown" token="foo3" searchWhenChanged="true"&amp;gt;
&amp;gt;         &amp;lt;label&amp;gt;Branch&amp;lt;/label&amp;gt;
&amp;gt;         &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;
&amp;gt;         &amp;lt;fieldForLabel&amp;gt;foo3_NM&amp;lt;/fieldForLabel&amp;gt;
&amp;gt;         &amp;lt;fieldForValue&amp;gt;foo3_NO&amp;lt;/fieldForValue&amp;gt;
&amp;gt;         &amp;lt;search base="foo3_metadata"&amp;gt;
&amp;gt;          &amp;lt;query&amp;gt;| dedup foo3_NO | search foo3_ID="$foo2_id$" | fields
&amp;gt; foo3_NM foo3_NO  | sort foo3_NM
&amp;gt;         &amp;lt;/search&amp;gt;
&amp;gt;         &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
&amp;gt;       &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Oct 2018 02:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-is-getting-error-Duplicate-values-causing-conflict/m-p/416241#M119815</guid>
      <dc:creator>teddyidc1101</dc:creator>
      <dc:date>2018-10-15T02:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query is getting error Duplicate values causing conflict</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-is-getting-error-Duplicate-values-causing-conflict/m-p/416242#M119816</link>
      <description>&lt;P&gt;During the initial load of the dropdown values, there's a duplicate error since there are multiple branch# (Owner=* and branch#=*). when a specific Owner is chosen, then the error disappears as it already has value for branches. &lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 04:25:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-is-getting-error-Duplicate-values-causing-conflict/m-p/416242#M119816</guid>
      <dc:creator>teddyidc1101</dc:creator>
      <dc:date>2018-10-16T04:25:09Z</dc:date>
    </item>
  </channel>
</rss>

