# Cannot be parsed to boolean windows versus linux

**URL:** <https://discuss.elastic.co/t/cannot-be-parsed-to-boolean-windows-versus-linux/82953>\
**Category:** Elasticsearch\
**Created:** [April 19, 2017, 9:43pm UTC](https://discuss.elastic.co/t/cannot-be-parsed-to-boolean-windows-versus-linux/82953 "2017-04-19T21:43:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottf](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@scottf](https://discuss.elastic.co/u/scottf)\
**Post date:** [April 19, 2017, 9:43pm UTC](https://discuss.elastic.co/t/cannot-be-parsed-to-boolean-windows-versus-linux/82953/1 "2017-04-19T21:43:53Z")

</div>

I have a BRAND NEW install of 5.3.0 on Windows, an older version(2.3.2) on Ubuntu 16.04  
When I tried to PUT `{"settings": {"mapper": {"dynamic": "strict"}}}` at localhost:9200/test I get this:

```json
{
	"error": {
		"root_cause": [{
			"type": "illegal_argument_exception",
			"reason": "Failed to parse value [strict] cannot be parsed to boolean [true/1/on/yes OR false/0/off/no]"
		}],
		"type": "illegal_argument_exception",
		"reason": "Failed to parse value [strict] cannot be parsed to boolean [true/1/on/yes OR false/0/off/no]"
	},
	"status": 400
}

```

But it works on 2.3.2

Any ideas on why this doesn't work anymore?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 20, 2017, 7:59am UTC](https://discuss.elastic.co/t/cannot-be-parsed-to-boolean-windows-versus-linux/82953/2 "2017-04-20T07:59:48Z")

</div>

What does the entire request look like?

---

<div class="post-metadata">

**Author:** ![scottf](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@scottf](https://discuss.elastic.co/u/scottf)\
**Post date:** [April 20, 2017, 4:44pm UTC](https://discuss.elastic.co/t/cannot-be-parsed-to-boolean-windows-versus-linux/82953/3 "2017-04-20T16:44:01Z")

</div>

`curl -XPUT 'http://localhost:9200/test' -d'{"settings": {"mapper": {"dynamic": "strict"}}}'`

I'm almost certain it's a version thing, as I mentioned against 5.3 it fails, against 2.3.2 works

I think mapper is deprecated in v5

---

<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:** [May 18, 2017, 4:52pm UTC](https://discuss.elastic.co/t/cannot-be-parsed-to-boolean-windows-versus-linux/82953/4 "2017-05-18T16:52:45Z")

</div>

Closed on May 18, 2017, 4:52pm UTC

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