# \[request query.pattern\]: expected value of type \[string\] but got \[undefined\]

**URL:** https://discuss.elastic.co/t/request-query-pattern-expected-value-of-type-string-but-got-undefined/284953
**Category:** Kibana
**Created:** [September 23, 2021, 1:20am UTC](https://discuss.elastic.co/t/request-query-pattern-expected-value-of-type-string-but-got-undefined/284953 "2021-09-23T01:20:51Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ewitkop](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@ewitkop](https://discuss.elastic.co/u/ewitkop)
#### Post date: [September 23, 2021, 1:20am UTC](https://discuss.elastic.co/t/request-query-pattern-expected-value-of-type-string-but-got-undefined/284953/1 "2021-09-23T01:20:51Z")

</div>

I cannot seem to create an index pattern. There are over 600 fields and I cannot tell which one Kibana has an issue with. I have Kibana logging to stdout. And I can't get a idea of which field it has an issue with. Any thoughts?

```auto
Error fetching fields for index pattern (ID: d1d077f0-1993-11ec-9e40-675739437201)

[request query.pattern]: expected value of type [string] but got [undefined]

Error: [request query.pattern]: expected value of type [string] but got [undefined]
    at http://192.168.45.101:5601/41022/bundles/plugin/data/kibana/data.plugin.js:1:361224
    at async index_patterns_IndexPatternsService.refreshFieldSpecMap (http://192.168.45.101:5601/41022/bundles/plugin/data/kibana/data.plugin.js:1:527636)
    at async index_patterns_IndexPatternsService.getSavedObjectAndInit (http://192.168.45.101:5601/41022/bundles/plugin/data/kibana/data.plugin.js:1:530353)

```

```auto

```

---

<div class="post-metadata">

### Author: ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)
#### Post date: [September 23, 2021, 9:58pm UTC](https://discuss.elastic.co/t/request-query-pattern-expected-value-of-type-string-but-got-undefined/284953/2 "2021-09-23T21:58:16Z")

</div>

Hi, which version of Kibana is this?

Have you tried looking in our Github repository to see if this is a known issue?

I have found this related issue, which looks like it was closed for not getting enough feedback: [https://github.com/elastic/kibana/issues/102512](https://github.com/elastic/kibana/issues/102512)

---

<div class="post-metadata">

### Author: ![ewitkop](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@ewitkop](https://discuss.elastic.co/u/ewitkop)
#### Post date: [September 24, 2021, 4:31pm UTC](https://discuss.elastic.co/t/request-query-pattern-expected-value-of-type-string-but-got-undefined/284953/3 "2021-09-24T16:31:58Z")

</div>

bash-4.4$ ./kibana --version

7.13.4

bash-4.4$

root@ip-192-168-45-101:~# curl -XGET -u elastic:changeme [https://localhost:9200](https://localhost:9200) -k

{

"name" : "0786e8fd2266",

"cluster\_name" : "docker-cluster",

"cluster\_uuid" : "l6Sld-zwTASMTwV4nLRhEw",

"version" : {

"number" : "7.13.4",

"build\_flavor" : "default",

"build\_type" : "docker",

"build\_hash" : "c5f60e894ca0c61cdbae4f5a686d9f08bcefc942",

"build\_date" : "2021-07-14T18:33:36.673943207Z",

"build\_snapshot" : false,

"lucene\_version" : "8.8.2",

"minimum\_wire\_compatibility\_version" : "6.8.0",

"minimum\_index\_compatibility\_version" : "6.0.0-beta1"

},

"tagline" : "You Know, for Search"

}

root@ip-192-168-45-101:~#

---

<div class="post-metadata">

### Author: ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)
#### Post date: [September 27, 2021, 5:15pm UTC](https://discuss.elastic.co/t/request-query-pattern-expected-value-of-type-string-but-got-undefined/284953/4 "2021-09-27T17:15:01Z")

</div>

As **[mattkime](https://github.com/mattkime)** suggested in Github, please open a new issue for this problem. It will help to give the full information, such as the steps to reproduce: it sounds like you are not using the API to generate these index patterns.

---

<div class="post-metadata">

### Author: ![ewitkop](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@ewitkop](https://discuss.elastic.co/u/ewitkop)
#### Post date: [September 27, 2021, 8:37pm UTC](https://discuss.elastic.co/t/request-query-pattern-expected-value-of-type-string-but-got-undefined/284953/5 "2021-09-27T20:37:22Z")

</div>

I am afraid I don't know the repro steps. We exposed the hidden indexes in the Kibana UI and we found the two auto-generated indexes via GUID and deleted them. And then the problem went away.  
If it pops up again, I will be sure to document it.

---

<div class="post-metadata">

### Author: ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)
#### Post date: [September 27, 2021, 9:05pm UTC](https://discuss.elastic.co/t/request-query-pattern-expected-value-of-type-string-but-got-undefined/284953/6 "2021-09-27T21:05:52Z")

</div>

Glad that things are working now!

Did your 7.13 cluster have Kibana saved objects that were carried over from a previous version?

---

<div class="post-metadata">

### Author: ![ewitkop](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@ewitkop](https://discuss.elastic.co/u/ewitkop)
#### Post date: [September 27, 2021, 10:58pm UTC](https://discuss.elastic.co/t/request-query-pattern-expected-value-of-type-string-but-got-undefined/284953/7 "2021-09-27T22:58:48Z")

</div>

Nope, it was a fresh install. However, I did populate data from Filebeat first. Then I swung the data connection from Filebeat to connect to logstash. And then logstash would publish to Elasticsearch.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 25, 2021, 10:59pm UTC](https://discuss.elastic.co/t/request-query-pattern-expected-value-of-type-string-but-got-undefined/284953/8 "2021-10-25T22:59:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
