# Failed to CompressedXContent on RestHighLevelClient 7.13

**URL:** <https://discuss.elastic.co/t/failed-to-compressedxcontent-on-resthighlevelclient-7-13/348345>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [November 30, 2023, 4:30pm UTC](https://discuss.elastic.co/t/failed-to-compressedxcontent-on-resthighlevelclient-7-13/348345 "2023-11-30T16:30:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avnere](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@avnere](https://discuss.elastic.co/u/avnere)\
**Post date:** [November 30, 2023, 4:30pm UTC](https://discuss.elastic.co/t/failed-to-compressedxcontent-on-resthighlevelclient-7-13/348345/1 "2023-11-30T16:30:20Z")

</div>

Hi,

I am getting the following exception when creatin new CompressedXContent for Template instance

```auto
ElasticsearchParseException[Failed to parse content to map]; nested: JsonParseException[Unexpected character ('p' (code 112)): was expecting double-quote to start field name
 at [Source: (byte[])"{properties={sessionId={type=keyword}, streamName={type=keyword}, _instance={type=long}, _update={type=date}, core={type=long}, episode={type=long}, fileIndex={type=long}, globalTimestamp={type=date}, id={type=keyword, index=false}, index={type=long}, name={type=keyword, normalizer=lowercase}, source={type=keyword}, subSource={type=keyword}, threadId={type=long}, timestamp={type=long}, type={type=keyword}, linkedIndex={type=long}, processDuration={type=long}}}"; line: 1, column: 3]];

```

JSON is valid:

```auto
{
      "properties": {
        "sessionId": {
          "type": "keyword"
        },
        "streamName": {
          "type": "keyword"
        },
        "_instance": {
          "type": "long"
        },
        "_update": {
          "type": "date"
        },
        "core": {
          "type": "long"
        },
        "episode": {
          "type": "long"
        },
        "fileIndex": {
          "type": "long"
        },
        "globalTimestamp": {
          "type": "date"
        },
        "id": {
          "type": "keyword",
          "index": false
        },
        "index": {
          "type": "long"
        },
        "name": {
          "type": "keyword",
          "normalizer": "lowercase"
        },
        "source": {
          "type": "keyword"
        },
        "subSource": {
          "type": "keyword"
        },
        "threadId": {
          "type": "long"
        },
        "timestamp": {
          "type": "long"
        },
        "type": {
          "type": "keyword"
        },
         "linkedIndex": {
          "type": "long"
        },
         "processDuration": {
          "type": "long"
        }
      }
    }

```

What could be the problem?

---

<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:** [December 28, 2023, 4:30pm UTC](https://discuss.elastic.co/t/failed-to-compressedxcontent-on-resthighlevelclient-7-13/348345/2 "2023-12-28T16:30:30Z")

</div>

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