# Failed to compile inline script when remove field in pipeline

**URL:** <https://discuss.elastic.co/t/failed-to-compile-inline-script-when-remove-field-in-pipeline/168965>\
**Category:** Elasticsearch\
**Created:** [February 19, 2019, 8:33am UTC](https://discuss.elastic.co/t/failed-to-compile-inline-script-when-remove-field-in-pipeline/168965 "2019-02-19T08:33:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krrz](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@krrz](https://discuss.elastic.co/u/krrz)\
**Post date:** [February 19, 2019, 8:33am UTC](https://discuss.elastic.co/t/failed-to-compile-inline-script-when-remove-field-in-pipeline/168965/1 "2019-02-19T08:33:14Z")

</div>

In elastic logs I have errors

> ElasticsearchParseException: Error updating pipeline with id  
> (...)  
> Too many dynamic script compilations within

I am trying to change the configuration of the pipe and one thing is very interesting and unexpected.

One of the errors is

> Caused by: org.elasticsearch.script.GeneralScriptException: Failed to compile inline script [XXX] using lang [mustache]  
> (...)  
> Caused by: org.elasticsearch.common.breaker.CircuitBreakingException: [script] Too many dynamic script compilations within, max: [75/5m]; please use indexed, or scripts with parameters instead; this limit can be changed by the [script.max\_compilations\_rate] setting

Elastic throws above error when pipe have remove processor like this

```
{
  "remove": {
    "field": [
      "message",
      "some_ts",
      "XXX"
    ]
  }
}

```

When pipeline is changed to

```
{
  "remove": {
    "field": [
      "message",
      "some_ts"
    ]
  }
}

```

there is no

> Caused by: org.elasticsearch.script.GeneralScriptException: Failed to compile inline script [XXX] using lang [mustache]

in logs.

What is it related to and how to configure the deletion of this field, but without receiving errors.

---

<div class="post-metadata">

**Author:** ![krrz](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@krrz](https://discuss.elastic.co/u/krrz)\
**Post date:** [February 21, 2019, 11:44am UTC](https://discuss.elastic.co/t/failed-to-compile-inline-script-when-remove-field-in-pipeline/168965/2 "2019-02-21T11:44:48Z")

</div>

I have one more similar situation. Error log

Failed to compile inline script [{{some.field.yyy}}] using lang [mustache]

which is connected with

```
{
  "set": {
    "field": "yyy",
    "value": "{{some.field.yyy}}"
  }
}

```

but when I change it to

{  
"rename": {  
"field": "some.field.yyy",  
"target\_field": "yyy"  
}  
}

error disappear.

Any suggestions?

---

<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 21, 2019, 11:44am UTC](https://discuss.elastic.co/t/failed-to-compile-inline-script-when-remove-field-in-pipeline/168965/3 "2019-03-21T11:44:58Z")

</div>

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