Hi, I am evaluating dremio as a way to connect between our analytics ES servers and Tableau.
I getting this “Failed to parse date time value 20180409T091813.555Z in field doc.updated_on.” as soon as I click on any of my tables with data (seems it’s failing to extract the fields). I also get this error if I try and make a query that doesn’t include any of the offending fields (date fields).
@JacobHZ@led42 Thanks for sharing. This is currently a known issue that we are tracking to work with different date formats as that specified in the mapping.
Prior to ES 5.6, you could update/change the format string for a date field of a mapping even when existing documents in the index have another format. But this behavior was changed:
One workaround is to add a format string for every case the error is complaining about: https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html#multiple-date-formats
In @led42 case, it appears that you already have the string for this, but you could try adding the explicit format, like:
“format”: “basic_date_time||epoch_millis||yyyyMMdd’T’HHmmss.SSSZ”,
“type”: “date”
or you could try omitting the format field altogether (I’ve seen success with this, but it may have side-effects).
We can’t omit the format in our case, we needed to keep the couchbase plugin we use honest, we’ve had trouble in the past with dates in unsupported formats being used by the plugin.
I’ll make a small test with the explicit format you suggested.
@ben the format string is being provided, yet the error shows up. I’m using ES 5.5 with date format YYYY-MM-DD HH:MM:SS.
Example:
“X”:{
“type”:“nested”,
“properties”:{
“date”:{
“type”:“date”,
“format”:“yyyy-MM-dd HH:mm:ss”
}, …
Leads to the issue:
“Failed to parse date time value 2018-07-25 09:15:51 in field X.date.”