# No error thrown to RestClient on MappingParsingException

**URL:** <https://discuss.elastic.co/t/no-error-thrown-to-restclient-on-mappingparsingexception/239093>\
**Category:** Elasticsearch\
**Created:** [June 29, 2020, 10:46am UTC](https://discuss.elastic.co/t/no-error-thrown-to-restclient-on-mappingparsingexception/239093 "2020-06-29T10:46:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dancerjohn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dancerjohn/32/57013_2.png) [@dancerjohn](https://discuss.elastic.co/u/dancerjohn)\
**Post date:** [June 29, 2020, 10:46am UTC](https://discuss.elastic.co/t/no-error-thrown-to-restclient-on-mappingparsingexception/239093/1 "2020-06-29T10:46:46Z")

</div>

I am seeing MappingParsingException logged in the elasticsearch log and I find that it is correct. My code has a bug for a field. The issue is that no error was thrown to my RestHighLevelClient. I want my application to be able to at least log that there was an indexing issue. I would prefer indexing of the entire document to fail rather than silently ignoring the erroneous field. I thought maybe I have "ignore\_malformed" set to true, but it doesn't appear to be set on the index. Not sure if it is (can) be set at the global level. Should I just set "ignore\_malformed" to false on each index?

Here are my current settings:

```auto
    "settings" : {
      "index" : {
        "creation_date" : "1593197783182",
        "number_of_shards" : "1",
        "number_of_replicas" : "1",
        "uuid" : "sHNzsNm4Td-FwwR47Yysfw",
        "version" : {
          "created" : "7070099"
        },
        "provided_name" : "dev1_uee_search_requests"
      }
    }

```

I tried setting ignore\_malformed on my existing index but I get

"Can't update non dynamic settings [[index.mapping.ignore\_malformed]] for open indices

---

<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:** [July 27, 2020, 10:56am UTC](https://discuss.elastic.co/t/no-error-thrown-to-restclient-on-mappingparsingexception/239093/2 "2020-07-27T10:56:57Z")

</div>

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