# Kibana date\_nanos generate CSV - TypeError: FieldFormat is not a constructor

**URL:** https://discuss.elastic.co/t/kibana-date-nanos-generate-csv-typeerror-fieldformat-is-not-a-constructor/200772
**Category:** Kibana
**Created:** [September 24, 2019, 2:02am UTC](https://discuss.elastic.co/t/kibana-date-nanos-generate-csv-typeerror-fieldformat-is-not-a-constructor/200772 "2019-09-24T02:02:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Alex-St](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex-st/32/53975_2.png) [@Alex-St](https://discuss.elastic.co/u/Alex-St)
#### Post date: [September 24, 2019, 2:02am UTC](https://discuss.elastic.co/t/kibana-date-nanos-generate-csv-typeerror-fieldformat-is-not-a-constructor/200772/1 "2019-09-24T02:02:17Z")

</div>

On Discover, click Share, CSV - getting "TypeError: FieldFormat is not a constructor" if one of the fields in kibana pattern is set to date\_nanos. resetting kibana field type to Date fixes the problem, but also trim digits past 1ms, so the data is sorted incorrectly.  
Date\_nanos does not allow to specify formatting on index pattern in Kibana. There is default setting in advanced menu for kibana, but that seems to have to effect on the above error.  
Running ELK 7.3.1

please advise if there is any workaround and whether this is a known issue.

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [September 25, 2019, 7:18am UTC](https://discuss.elastic.co/t/kibana-date-nanos-generate-csv-typeerror-fieldformat-is-not-a-constructor/200772/2 "2019-09-25T07:18:25Z")

</div>

Hi, thank you for reporting this.  
I can confirm, that this doesn't work in 7.3.1. In my current dev version this is fixed, so it should be fixed in 7.4.0, I will check this.

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [September 25, 2019, 7:38am UTC](https://discuss.elastic.co/t/kibana-date-nanos-generate-csv-typeerror-fieldformat-is-not-a-constructor/200772/3 "2019-09-25T07:38:53Z")

</div>

I've successfully exported csv files containing date\_nanos in our upcoming 7.4 release. So the issue has already been fixed.

---

<div class="post-metadata">

### Author: ![Alex-St](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex-st/32/53975_2.png) [@Alex-St](https://discuss.elastic.co/u/Alex-St)
#### Post date: [October 20, 2019, 6:37am UTC](https://discuss.elastic.co/t/kibana-date-nanos-generate-csv-typeerror-fieldformat-is-not-a-constructor/200772/4 "2019-10-20T06:37:17Z")

</div>

confirmed - the issue is fixed in 7.4.0. thank you!!!

---

<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: [November 17, 2019, 6:37am UTC](https://discuss.elastic.co/t/kibana-date-nanos-generate-csv-typeerror-fieldformat-is-not-a-constructor/200772/5 "2019-11-17T06:37:18Z")

</div>

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