# Unable to generate report TypeError: FieldFormat is not a constructor

**URL:** <https://discuss.elastic.co/t/unable-to-generate-report-typeerror-fieldformat-is-not-a-constructor/164276>\
**Category:** Kibana\
**Created:** [January 15, 2019, 9:25am UTC](https://discuss.elastic.co/t/unable-to-generate-report-typeerror-fieldformat-is-not-a-constructor/164276 "2019-01-15T09:25:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shripal](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@Shripal](https://discuss.elastic.co/u/Shripal)\
**Post date:** [January 15, 2019, 9:25am UTC](https://discuss.elastic.co/t/unable-to-generate-report-typeerror-fieldformat-is-not-a-constructor/164276/1 "2019-01-15T09:25:06Z")

</div>

Hello All,  
So I've created a Discover Saved object. When I try to export it into a CSV format report, it throws an error stating:  
Unable to generate report  
TypeError: FieldFormat is not a constructor

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

This saved object used to work fine a couple of weeks ago, this is a recent error.

---

<div class="post-metadata">

**Author:** ![angelogabeira](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@angelogabeira](https://discuss.elastic.co/u/angelogabeira)\
**Post date:** [January 17, 2019, 11:24am UTC](https://discuss.elastic.co/t/unable-to-generate-report-typeerror-fieldformat-is-not-a-constructor/164276/2 "2019-01-17T11:24:19Z")

</div>

I was able to solve this issue going to Management -\> Kibana -\> Index patterns and selected the Script Fields tab. There I found out that the Format field was blank. I edited each Script Field and changed the Format dropdown box to a value (Number, string, etc..). Before doing that they were set to Default.

After doing this, I updated the index and was able to generate the report successfully.

---

<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:** [February 14, 2019, 11:24am UTC](https://discuss.elastic.co/t/unable-to-generate-report-typeerror-fieldformat-is-not-a-constructor/164276/3 "2019-02-14T11:24:31Z")

</div>

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