Dashboards & Visualizations

Duplicate value conflict

patilsh
Explorer

Hey ,

get the duplicate conflict error. I already check few posts here and tried changing field by label and field by value , i still get the error. There are no duplicates.

Below is the xml

<fieldset submitButton="false" autoRun="true">
    <input type="dropdown" token="field1" searchWhenChanged="true">
      <label>username</label>
      <choice value="spatil">default</choice>
      <search>
        <query>index="alpha_all_callsummary_ds"  user.username=*  call.lineType=VOIP|dedup user.username|table user.username</query>
        <earliest>0</earliest>
        <latest></latest>
      </search>
      <fieldForLabel>user.username</fieldForLabel>
      <fieldForValue>user.username</fieldForValue>
      <default>spatil</default>
    </input>
  </fieldset>

Can someone please help me where am i going wrong in this.

Tags (1)
0 Karma

woodcock
Esteemed Legend

Remove this line completely:

<choice value="spatil">default</choice>

The search also has spatil so you are adding it twice.

0 Karma

DalJeanis
SplunkTrust
SplunkTrust

Change

<choice value="spatil">default</choice>

to

<choice value="spatil">spatil</choice>

and see what happens.

0 Karma

cmerriman
Super Champion

I'm not 100% sure, but it might have to do with the "." In the field name. Can you try to rename the field in your query to see if that works

patilsh
Explorer

I tried changing the name , it still gives the same error.

I tried on one more thing , When I give default value and keep the static option as well I get the error. But when I remove the static option and just keep default i dont get that error.

So not sure what is causing this error.

0 Karma

cmerriman
Super Champion

It is likely because you have a value under user.username called spatil. So by creating the static option with the same value, it's creating a duplicate

patilsh
Explorer

That makes sense! That was helpful, thanks for the help!!

0 Karma
Get Updates on the Splunk Community!

.conf23 | Get Your Cybersecurity Defense Analyst Certification in Vegas

We’re excited to announce a new Splunk certification exam being released at .conf23! If you’re going to Las ...

Starting With Observability: OpenTelemetry Best Practices

Tech Talk Starting With Observability: OpenTelemetry Best Practices Tuesday, October 17, 2023   |  11AM PST / ...

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW! Every day the list of sources Admins are responsible for gets bigger and bigger, often making ...