# "Saved field parameter is now invalid, please select a new field"

**URL:** https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860
**Category:** Kibana
**Created:** [April 27, 2017, 12:35pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860 "2017-04-27T12:35:14Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Tania\_Bonilla](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tania\_Bonilla](https://discuss.elastic.co/u/Tania_Bonilla)
#### Post date: [April 27, 2017, 12:35pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/1 "2017-04-27T12:35:14Z")

</div>

Hello,

When we tried to run the Dashboard with Broadsoft, dashboard collaborate and the desktop sharing dashboards, we get the error saying "Saved field parameter is now invalid, please select a new field", we are using the last version of broadsoft scripts and 5.2.2 Kibana and elastics.

Can you help me, please.

---

<div class="post-metadata">

### Author: ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)
#### Post date: [April 27, 2017, 2:19pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/2 "2017-04-27T14:19:24Z")

</div>

Hello @Tania_Bonilla,

I am not familiar with Broadsoft, but I assume that it allowed you to import existing dashboards and visualizations. The current version of Kibana relies on the `field_stats` api exposed by Elasticsearch. That dependency creates an unfortunate bug where for fields in indices that don't have any data, Kibana recognizes them as unsearchable and not aggregatable. This in turn causes any visualizations that are dependent on those fields to throw the error you mentioned above.

There is an [open issue](https://github.com/elastic/kibana/issues/11014) that you can follow for the more comprehensive solution to this problem.

For a more short-term fix, you can 'seed' your new index with a sample document that contains data for each field, and that should allow you to load the visualizations/dashboards without this error.

---

<div class="post-metadata">

### Author: ![Tania\_Bonilla](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tania\_Bonilla](https://discuss.elastic.co/u/Tania_Bonilla)
#### Post date: [April 27, 2017, 3:15pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/3 "2017-04-27T15:15:53Z")

</div>

> [@BigFunger](#):
>
> For a more short-term fix, you can 'seed' your new index with a sample document that contains data for each field, and that should allow you to load the visualizations/dashboards without this error.

Thank you for your response but, How can I do " For a more short-term fix, you can 'seed' your new index with a sample document that contains data for each field, and that should allow you to load the visualizations/dashboards without this error."

![](https://us1.discourse-cdn.com/elastic/original/3X/b/e/bee6af18bfe8f0e60dafef8445576ad98c0596c1.png)

My Index

---

<div class="post-metadata">

### Author: ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)
#### Post date: [April 27, 2017, 3:20pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/4 "2017-04-27T15:20:45Z")

</div>

Does the index that this visualization points to contain data?

When you go to the `Index Patterns` section of Kibana, and select that index pattern, does the field that the visualization depends on show as `searchable` and `aggregatable`?

 ![](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6b7b8f49d78b6f5b5cf45f377799479af4e64095.png)

I assume that the answer to both of these questions is 'no', so we go back to my suggestion to seed the index. What I mean is, just make sure there is at least one document indexed into the index. The nature of your index/data will determine how you would accomplish that. You could go into `Dev Tools` and manually index a document, or make sure that however you are populating your index has processed and indexed some documents before attempting to view the visualization in Kibana.

---

<div class="post-metadata">

### Author: ![Tania\_Bonilla](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tania\_Bonilla](https://discuss.elastic.co/u/Tania_Bonilla)
#### Post date: [May 2, 2017, 1:15pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/5 "2017-05-02T13:15:00Z")

</div>

Thank you for you response, but I do not understand, how can I do for upload manually my document. My index

 ![](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e46f0deda6b5d3961e3bc4d40f880db79570298b.png)

In my Dev Tools

 ![](https://us1.discourse-cdn.com/elastic/original/3X/f/7/f7035532b1fb6492af7288daff8c921118e58b13.png)

Can you help me please.

Thank you

---

<div class="post-metadata">

### Author: ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)
#### Post date: [May 2, 2017, 2:55pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/6 "2017-05-02T14:55:46Z")

</div>

Can we limit the scope of your issue a little bit? Can you find a single visualization and view it in the visualization editor to reproduce the error?

---

<div class="post-metadata">

### Author: ![Tania\_Bonilla](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tania\_Bonilla](https://discuss.elastic.co/u/Tania_Bonilla)
#### Post date: [May 2, 2017, 3:32pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/7 "2017-05-02T15:32:47Z")

</div>

> [@BigFunger](#):
>
> limit the scope of your issue a little bit? Can you find a single visualization and view it in the visualization editor to reproduce the error?

The error appears in

 ![](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d79eb96a6f96ba07c4a649ebc4a1587dd48eeaa0.png)

and in

 ![](https://us1.discourse-cdn.com/elastic/original/3X/a/9/a94c03e45c3d2deeab515f0249ccd18de4cf1dea.png)

Thank you!

---

<div class="post-metadata">

### Author: ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)
#### Post date: [May 2, 2017, 4:02pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/8 "2017-05-02T16:02:39Z")

</div>

What is the result if you run this query in Dev Tools?

```auto
POST .kibana/visualization/_search
{
  "query": {
    "match": {
      "title": "Room Type"
    }
  }
}

```

---

<div class="post-metadata">

### Author: ![Tania\_Bonilla](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tania\_Bonilla](https://discuss.elastic.co/u/Tania_Bonilla)
#### Post date: [May 2, 2017, 4:05pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/9 "2017-05-02T16:05:29Z")

</div>

Thank you ! The result is :

{  
"took": 126,  
"timed\_out": false,  
"\_shards": {  
"total": 1,  
"successful": 1,  
"failed": 0  
},  
"hits": {  
"total": 2,  
"max\_score": 7.2276917,  
"hits": [  
{  
"\_index": ".kibana",  
"\_type": "visualization",  
"\_id": "Col:-Room-Type",  
"\_score": 7.2276917,  
"\_source": {  
"title": "Room Type",  
"visState": """  
{  
"title": "Room Type",  
"type": "pie",  
"params": {  
"addLegend": true,  
"addTooltip": true,  
"isDonut": false,  
"shareYAxis": true  
},  
"aggs": [  
{  
"id": "1",  
"type": "count",  
"schema": "metric",  
"params": {}  
},  
{  
"id": "2",  
"type": "terms",  
"schema": "segment",  
"params": {  
"field": "collaborate\_roomtype",  
"size": 10,  
"order": "desc",  
"orderBy": "1"  
}  
}  
],  
"listeners": {}  
}  
""",  
"uiStateJSON": "{}",  
"description": "",  
"version": 1,  
"kibanaSavedObjectMeta": {  
"searchSourceJSON": """  
{  
"index": "bwcdr\*",  
"query": {  
"query\_string": {  
"analyze\_wildcard": true,  
"query": "collaborate\_role:_"  
}  
},  
"filter": []  
}  
"""  
}  
}  
},  
{  
"\_index": ".kibana",  
"\_type": "visualization",  
"\_id": "Sharing:-room-joins-per-time-interval",  
"\_score": 2.0183094,  
"\_source": {  
"title": "Sharing: room joins per time interval",  
"visState": """{"aggs":[{"id":"2","params":{"customInterval":"2h","extended\_bounds":{},"field":"logtimestamp","interval":"auto","min\_doc\_count":1},"schema":"segment","type":"date\_histogram"},{"id":"3","params":{"customLabel":"Joins"},"schema":"metric","type":"count"},{"id":"4","params":{"filters":[{"input":{"query":{"query\_string":{"analyze\_wildcard":true,"query":"source: participant"}}},"label":"Participants"},{"input":{"query":{"query\_string":{"analyze\_wildcard":true,"query":"source: owner"}}},"label":"Owners"}]},"schema":"group","type":"filters"}],"listeners":{},"params":{"addLegend":true,"addTimeMarker":false,"addTooltip":true,"defaultYExtents":false,"mode":"stacked","scale":"linear","setYExtents":false,"shareYAxis":true,"times":[],"yAxis":{}},"title":"Sharing: room joins per time interval","type":"histogram"}""",  
"uiStateJSON": """{"vis":{"legendOpen":true}}""",  
"description": "",  
"version": 1,  
"kibanaSavedObjectMeta": {  
"searchSourceJSON": """{"index":"bwlog_","query":{"query\_string":{"query":"application:USSLog AND channel: RoomControl AND ussroomid:\* AND source:"successfully joined room"","analyze\_wildcard":true}},"filter":[]}"""  
}  
}  
}  
]  
}  
}

---

<div class="post-metadata">

### Author: ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)
#### Post date: [May 2, 2017, 4:10pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/10 "2017-05-02T16:10:50Z")

</div>

Next:

1. Go to Management/Index Patterns.
2. Select the `bwlog*` index pattern
3. In the 'Filter' box of the field list type 'collaborate\_roomtype'
4. What do the `searchable` and `aggregatable` columns show for that field? (check or no check)

---

<div class="post-metadata">

### Author: ![Tania\_Bonilla](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tania\_Bonilla](https://discuss.elastic.co/u/Tania_Bonilla)
#### Post date: [May 2, 2017, 4:15pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/11 "2017-05-02T16:15:35Z")

</div>

No check

 ![](https://us1.discourse-cdn.com/elastic/original/3X/9/6/9644fdcd957fa1d671995c4cdb74e6109fde447a.png)

---

<div class="post-metadata">

### Author: ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)
#### Post date: [May 2, 2017, 4:32pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/12 "2017-05-02T16:32:25Z")

</div>

Execute this is Dev Tools:

```auto
POST bwlog_seed/seed/seed_doc
{
  "collaborate_roomtype": "test"
}

```

Then:

1. Go to Management/Index Patterns.
2. Select the bwlog\* index pattern
3. Click the Refresh Field List button.
4. What do the searchable and aggregatable columns show for the `collaborate_roomtype` field now? (check or no check)

---

<div class="post-metadata">

### Author: ![Tania\_Bonilla](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tania\_Bonilla](https://discuss.elastic.co/u/Tania_Bonilla)
#### Post date: [May 2, 2017, 4:37pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/13 "2017-05-02T16:37:02Z")

</div>

Yes now, are check

 ![](https://us1.discourse-cdn.com/elastic/original/3X/a/e/aef01ef0a25cf8ca5bf8939cff65005de41d045d.png)

---

<div class="post-metadata">

### Author: ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)
#### Post date: [May 2, 2017, 4:38pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/14 "2017-05-02T16:38:14Z")

</div>

Try to reload the 'Room Type' visualization.

---

<div class="post-metadata">

### Author: ![Tania\_Bonilla](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tania\_Bonilla](https://discuss.elastic.co/u/Tania_Bonilla)
#### Post date: [May 2, 2017, 4:45pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/15 "2017-05-02T16:45:22Z")

</div>

Now, no errors in the room type, but how I change all the others Visualize.

Thank you!

---

<div class="post-metadata">

### Author: ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)
#### Post date: [May 2, 2017, 4:49pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/16 "2017-05-02T16:49:19Z")

</div>

To summarize what I did.

1. Find the visualization that is throwing the error
2. Query for the definition of that visualization in Dev Tools
3. Look at the `searchSourceJSON` property to determine the index pattern that was used in the visualization
4. Look at the `visState` property to find which fields were used in the aggregations.
5. Make sure the field is the one causing the problem by looking at whether those checkboxes appear in the field list for that field
6. If the checkboxes are not there, index a throwaway document into the respective index, and refresh the fields.
7. Rinse, repeat

---

<div class="post-metadata">

### Author: ![Tania\_Bonilla](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tania\_Bonilla](https://discuss.elastic.co/u/Tania_Bonilla)
#### Post date: [May 2, 2017, 6:11pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/17 "2017-05-02T18:11:03Z")

</div>

> [@BigFunger](#):
>
> visState

One Post and Query , for each.?  
Thank you!

---

<div class="post-metadata">

### Author: ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)
#### Post date: [May 2, 2017, 6:38pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/18 "2017-05-02T18:38:40Z")

</div>

If they are using the same index pattern, you can index all of the fields in one document. The real issue is that there needs to be at least one document with the field populated in your index for each field that is referenced by your visualizations.

---

<div class="post-metadata">

### Author: ![Tania\_Bonilla](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Tania\_Bonilla](https://discuss.elastic.co/u/Tania_Bonilla)
#### Post date: [May 2, 2017, 6:51pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/19 "2017-05-02T18:51:41Z")

</div>

I create the POST  
POST .kibana/visualization/\_search  
{  
"query": {  
"match": {  
"title": "unique owners"  
}  
}  
}  
POST bwcdr\_seed/seed/seed\_doc  
{  
"collaborate\_uniquer-owners ": "test"  
}  
but the result is

 ![](https://us1.discourse-cdn.com/elastic/original/3X/3/7/37da12f6596a2d03b000710cbe1761fc9300e5a0.png)

---

<div class="post-metadata">

### Author: ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)
#### Post date: [May 2, 2017, 7:12pm UTC](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860/20 "2017-05-02T19:12:32Z")

</div>

Did you click the 'Refresh Field List' button in Management/Index Patterns?

[Next page](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/83860.md?page=2)
