# Transform invalid date values

**URL:** <https://discuss.elastic.co/t/transform-invalid-date-values/249308>\
**Category:** Elasticsearch\
**Tags:** transforms\
**Created:** [September 21, 2020, 6:46am UTC](https://discuss.elastic.co/t/transform-invalid-date-values/249308 "2020-09-21T06:46:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [September 21, 2020, 6:46am UTC](https://discuss.elastic.co/t/transform-invalid-date-values/249308/1 "2020-09-21T06:46:59Z")

</div>

Hello,

I have the following group by in my transform:

```
"pivot": {
    "group_by": {

      "datetime": {
        "date_histogram": {
          "field": "datetime",
          "calendar_interval": "1m"
        }
      },

```

when checking the max date value in the source index I get:

```
GET logs/_search?filter_path=hits.hits._source
{
  "size": 1, 
  "_source": "datetime", 
  "sort": [
    {
      "datetime": {
        "order": "desc"
      }
    }
  ]
}

{
  "hits" : {
    "hits" : [
      {
        "_source" : {
          "datetime" : "2020-09-21T06:36:34.000Z"
        }
      }
    ]
  }
}

```

when checking the transform's result index using the same query body I get:

```
{
  "hits" : {
    "hits" : [
      {
        "_source" : {
          "datetime" : 1602181620000
        }
      }
    ]
  }
}

```

which is Thursday, October 8, 2020 6:27:00 PM GMT

anything wrong that I'm doing?

will it affect the continues mode checkpoint ?

Thanks

---

<div class="post-metadata">

**Author:** ![Hendrik\_Muhs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hendrik_muhs/32/25802_2.png) [@Hendrik\_Muhs](https://discuss.elastic.co/u/Hendrik_Muhs)\
**Post date:** [September 21, 2020, 7:26am UTC](https://discuss.elastic.co/t/transform-invalid-date-values/249308/2 "2020-09-21T07:26:20Z")

</div>

This is hard to answer as their could be many reasons:

- broken mappings in the source (return doc values or use an aggregation in your search)
- delay configured in transform (default `60s`, you could put a range filter in your search query to emulate the same behavior)
- transform hasn't processed the data yet (check `_stats` regarding checkpoints)

To better help you, I think you should use support, so they can run diagnostics.

---

<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 19, 2020, 7:26am UTC](https://discuss.elastic.co/t/transform-invalid-date-values/249308/3 "2020-10-19T07:26:45Z")

</div>

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