# Kibana 7.3 date\_nanos discover view surrounding documents broken

**URL:** https://discuss.elastic.co/t/kibana-7-3-date-nanos-discover-view-surrounding-documents-broken/199035
**Category:** Kibana
**Created:** [September 11, 2019, 7:57am UTC](https://discuss.elastic.co/t/kibana-7-3-date-nanos-discover-view-surrounding-documents-broken/199035 "2019-09-11T07:57:42Z")
**Posts on this page:** 4
**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 11, 2019, 7:57am UTC](https://discuss.elastic.co/t/kibana-7-3-date-nanos-discover-view-surrounding-documents-broken/199035/1 "2019-09-11T07:57:42Z")

</div>

On Discover page, when I click view surrounding documents, I am getting lengthy error and not seeing any surrounding documents. It started happening when I changed my time field to date\_nanos in kibana 7.3. please let me know if I am doing anything wrong.

Request to Elasticsearch failed: {"error":{"root\_cause":[{"type":"illegal\_argument\_exception","reason":"Failed to parse search\_after value for field [SourceTime](http://somehost:5601/app/kibana)."},{"type":"illegal\_argument\_exception","reason":"Failed to parse search\_after value for field [SourceTime](http://somehost:5601/app/kibana)."},{"type":"illegal\_argument\_exception","reason":"Failed to parse search\_after value for field [SourceTime](http://somehost:5601/app/kibana)."},{"type":"illegal\_argument\_exception","reason":"Failed to parse search\_after value for field [SourceTime](http://somehost:5601/app/kibana)."}],"type":"search\_phase\_execution\_exception","reason":"all shards failed","phase":"query","grouped":true,"failed\_shards":[{"shard":0,"index":"someindex.controllers-000001","node":"cRSDEuywTT-6J9sR39\_cMQ","reason":{"type":"illegal\_argument\_exception","reason":"Failed to parse search\_after value for field [SourceTime](http://somehost:5601/app/kibana).","caused\_by":{"type":"number\_format\_exception","reason":"For input string: "1568187806791825-07""}}},{"shard":0,"index":"someindex.hb-000001","node":"cRSDEuywTT-6J9sR39\_cMQ","reason":{"type":"illegal\_argument\_exception","reason":"Failed to parse search\_after value for field [SourceTime](http://somehost:5601/app/kibana).","caused\_by":{"type":"number\_format\_exception","reason":"For input string: "1568187806791825-07""}}},{"shard":0,"index":"someindex.rcp-000001","node":"cRSDEuywTT-6J9sR39\_cMQ","reason":{"type":"illegal\_argument\_exception","reason":"Failed to parse search\_after value for field [SourceTime](http://somehost:5601/app/kibana).","caused\_by":{"type":"number\_format\_exception","reason":"For input string: "1568187806791825-07""}}},{"shard":0,"index":"someindex.vs-000001","node":"cRSDEuywTT-6J9sR39\_cMQ","reason":

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [September 11, 2019, 11:37am UTC](https://discuss.elastic.co/t/kibana-7-3-date-nanos-discover-view-surrounding-documents-broken/199035/2 "2019-09-11T11:37:25Z")

</div>

> [@Alex-St](#):
>
> type":"illegal\_argument\_exception","reason":"Failed to parse search\_after value for field [SourceTime](http://somehost:5601/app/kibana)."}

HI  
Are you getting the same exception when you try it on 7.3.1 as well. There were a bunch of issues fixed around date\_nanos.

> <https://github.com/elastic/kibana/pull/41353>
>
> \## Summary
> 
> Fix exception for Elasticsearch records with \`date\_nanos\` fields t…hat contain dates without seconds.
> So now context view works with dates like \`2014-01-01\`.
> 
> Fixes #41348
> 
> \### Checklist
> 
> Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.
> 
> ~~- \[\] This was checked for cross-browser compatibility, \[including a check against IE11\](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~
> ~~- \[\] Any text added follows \[EUI's writing guidelines\](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes \[i18n support\](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~
> ~~- \[\] \[Documentation\](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~
> \- \[x\] \[Unit or functional tests\](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
> ~~- \[\] This was checked for \[keyboard-only and screenreader accessibility\](https://developer.mozilla.org/en-US/docs/Learn/Tools\_and\_testing/Cross\_browser\_testing/Accessibility#Accessibility\_testing\_checklist)~~
> 
> \### For maintainers
> 
> ~~- \[\] This was checked for breaking API changes and was \[labeled appropriately\](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
> ~~- \[\] This includes a feature addition or change that requires a release note and was \[labeled appropriately\](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~

Thanks  
Rashmi

---

<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 11, 2019, 4:17pm UTC](https://discuss.elastic.co/t/kibana-7-3-date-nanos-discover-view-surrounding-documents-broken/199035/3 "2019-09-11T16:17:44Z")

</div>

Rashmi,  
sorry, I stopped at minor version. 7.3.1 is actually what we are running. The time format is produced by c# code, so it should be very consistent. It's in the format "2019-09-11T09:15:33.201615-07:00"

---

<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 9, 2019, 4:17pm UTC](https://discuss.elastic.co/t/kibana-7-3-date-nanos-discover-view-surrounding-documents-broken/199035/4 "2019-10-09T16:17:50Z")

</div>

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