# Reindex parse\_exception

**URL:** <https://discuss.elastic.co/t/reindex-parse-exception/262824>\
**Category:** Elasticsearch\
**Tags:** reindex\
**Created:** [February 1, 2021, 10:56am UTC](https://discuss.elastic.co/t/reindex-parse-exception/262824 "2021-02-01T10:56:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [February 1, 2021, 10:56am UTC](https://discuss.elastic.co/t/reindex-parse-exception/262824/1 "2021-02-01T10:56:24Z")

</div>

> ```
> POST _reindex?wait_for_completion=true
> {
> "source": {
> "index": "apm-7.8.1-transaction-000007",
> "query": {
> "match_all": {}
> }
> },
> "dest": {
> "index": "apm-7.8.1-transaction-new-000007",
> "pipeline": "apm"
> }
> }
> 
> ```

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

I don't know what fields are missing in the query. Can someone tell me?

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [February 1, 2021, 10:58am UTC](https://discuss.elastic.co/t/reindex-parse-exception/262824/2 "2021-02-01T10:58:05Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/1/2/129aa7e5cbf6406779fdcf09467858afe742f7c5.png)  
I changed the dest index and got another error.

> ```
> POST _reindex?wait_for_completion=true
> {
> "source": {
> "index": "apm-7.8.1-transaction-000007",
> "query": {
> "match_all": {}
> }
> },
> "dest": {
> "index": "xxx",
> "pipeline": "apm"
> }
> }
> 
> ```

> ```
> {
> "took" : 15389,
> "timed_out" : false,
> "total" : 2005123,
> "updated" : 0,
> "created" : 5999,
> "deleted" : 0,
> "batches" : 6,
> "version_conflicts" : 0,
> "noops" : 0,
> "retries" : {
> "bulk" : 0,
> "search" : 0
> },
> "throttled_millis" : 0,
> "requests_per_second" : -1.0,
> "throttled_until_millis" : 0,
> "failures" : [
> {
> "index" : "xxx",
> "type" : "_doc",
> "id" : "ETAfOHcB06kXv1MquoHJ",
> "cause" : {
> "type" : "mapper_parsing_exception",
> "reason" : "failed to parse field [request_body.fromDateTime] of type [date] in document with id 'ETAfOHcB06kXv1MquoHJ'. Preview of field's value: ''",
> "caused_by" : {
> "type" : "illegal_argument_exception",
> "reason" : "cannot parse empty date"
> }
> },
> "status" : 400
> }
> ]
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 1, 2021, 3:15pm UTC](https://discuss.elastic.co/t/reindex-parse-exception/262824/3 "2021-02-01T15:15:03Z")

</div>

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with `</>` icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 1, 2021, 3:16pm UTC](https://discuss.elastic.co/t/reindex-parse-exception/262824/4 "2021-02-01T15:16:25Z")

</div>

I think that a field is a date type and you are sending probably an empty content instead of nothing at all...

Hard to say without seeing more like the destination mapping, and the source document which is failing.

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [February 1, 2021, 11:58pm UTC](https://discuss.elastic.co/t/reindex-parse-exception/262824/5 "2021-02-01T23:58:42Z")

</div>

I have updated it.  
I don't understand the meaning of the first picture. What is it missing?

For the second picture, what should I pay attention to when reindex.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 2, 2021, 4:11pm UTC](https://discuss.elastic.co/t/reindex-parse-exception/262824/6 "2021-02-02T16:11:28Z")

</div>

> [@wajika](#):
>
> For the second picture, what should I pay attention to when reindex.

Of the content. I think that:

```auto
{
  "request_body.fromDateTime": ""
}

```

Is not a valid date.

This is probably something you need to fix in the source or in the `apm` pipeline.  
It's unclear here what is the source document is looking like and what is the destination mapping.

> [@wajika](#):
>
> I don't understand the meaning of the first picture. What is it missing?

I don't see anything bad so I don't understand either. May be a bad character somewhere?

---

<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:** [March 2, 2021, 4:12pm UTC](https://discuss.elastic.co/t/reindex-parse-exception/262824/7 "2021-03-02T16:12:12Z")

</div>

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