# Create visualization with Lens Error

**URL:** <https://discuss.elastic.co/t/create-visualization-with-lens-error/290687>\
**Category:** Kibana\
**Created:** [December 1, 2021, 3:44pm UTC](https://discuss.elastic.co/t/create-visualization-with-lens-error/290687 "2021-12-01T15:44:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [December 1, 2021, 3:44pm UTC](https://discuss.elastic.co/t/create-visualization-with-lens-error/290687/1 "2021-12-01T15:44:47Z")

</div>

Hi, we are using elastic 7.9.3

After a fresh installation, if we navigate to the Visualize panel and select Create visualization / Lens we get can error saying "Unexpected token u in JSON at position 0" on the UI.

If we go to the Discovery panel and select the filebeat-\* index and then try to create the visualization then we do not have an error and its successfully created.

Any idea how to resolve this issue?

Thank you,  
Kris

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [December 1, 2021, 4:49pm UTC](https://discuss.elastic.co/t/create-visualization-with-lens-error/290687/2 "2021-12-01T16:49:05Z")

</div>

Hi @kbujold_wr ,

is the error reported only in the console or does it prevent from showing the Lens editor?  
Would it be possible to have a screenshot?

---

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [December 1, 2021, 5:04pm UTC](https://discuss.elastic.co/t/create-visualization-with-lens-error/290687/3 "2021-12-01T17:04:29Z")

</div>

There is nothing on the console other than the error message. But I have noticed these difference in the query with a working setup and a non working one.

Not working

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

Working

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

Pop up error

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/c/3c0565f7a4818983f379406effc5ad6b7f77d086.png)

---

<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:** [December 29, 2021, 5:04pm UTC](https://discuss.elastic.co/t/create-visualization-with-lens-error/290687/4 "2021-12-29T17:04:44Z")

</div>

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