# Can't get text on a START\_OBJECT at 1:1111 when using the \_reindex API

**URL:** <https://discuss.elastic.co/t/cant-get-text-on-a-start-object-at-1-1111-when-using-the-reindex-api/222448>\
**Category:** Elasticsearch\
**Created:** [March 6, 2020, 11:43am UTC](https://discuss.elastic.co/t/cant-get-text-on-a-start-object-at-1-1111-when-using-the-reindex-api/222448 "2020-03-06T11:43:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Norman\_Khine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norman_khine/32/3342_2.png) [@Norman\_Khine](https://discuss.elastic.co/u/Norman_Khine)\
**Post date:** [March 6, 2020, 11:43am UTC](https://discuss.elastic.co/t/cant-get-text-on-a-start-object-at-1-1111-when-using-the-reindex-api/222448/1 "2020-03-06T11:43:57Z")

</div>

Hello,  
I am using the \_reindex API to merge daily indexes into monthly indexes but get this error:

```auto
{
"index": "sentry-2019.01",
"type": "_doc",
"id": "NtBfKWgBAZO4MSmwwzvg",
"cause": {
"type": "mapper_parsing_exception",
"reason": "failed to parse field [capturedMessage.data.body] of type [text] in document with id 'NtBfKWgBAZO4MSmwwzvg'",
"caused_by": {
"type": "illegal_state_exception",
"reason": "Can't get text on a START_OBJECT at 1:1111"
}
},
"status": 400
}

```

There is this thread [Help on: Can't get text on a START\_OBJECT](https://discuss.elastic.co/t/help-on-cant-get-text-on-a-start-object/172193/7) which suggests to modify the template, but what I don't understand is that if the document was indexed and I am just reindex it, it shouldn't fail.

I am using:

```auto
POST _reindex?requests_per_second=115&wait_for_completion=true
{
  "source": {
    "index": "sentry-2019.01.*",
    "size": 1000
  },
  "dest": {
    "index": "sentry-2019.01"
  },
  "conflicts": "proceed", 
  "script": {
    "lang": "painless",   
    "source": """
      ctx._source.index = ctx._index;
    """
  }
}

```

Any advice is much appreciated

---

<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:** [April 3, 2020, 11:44am UTC](https://discuss.elastic.co/t/cant-get-text-on-a-start-object-at-1-1111-when-using-the-reindex-api/222448/2 "2020-04-03T11:44:04Z")

</div>

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