# Template is not being used, mapping not working

**URL:** <https://discuss.elastic.co/t/template-is-not-being-used-mapping-not-working/190207>\
**Category:** Elasticsearch\
**Created:** [July 12, 2019, 10:15am UTC](https://discuss.elastic.co/t/template-is-not-being-used-mapping-not-working/190207 "2019-07-12T10:15:40Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![mpes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mpes/32/49982_2.png) [@mpes](https://discuss.elastic.co/u/mpes)\
**Post date:** [July 13, 2019, 8:09pm UTC](https://discuss.elastic.co/t/template-is-not-being-used-mapping-not-working/190207/13 "2019-07-13T20:09:35Z")

</div>

> [@mpes](#):
>
> reason"=\>"failed to parse [datetime]", "caused\_by"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"Invalid format: "03/Jul/2019:23:48:17 +0200" is malformed at "/Jul/2019:23:48:17 +0200""}}}}}

I ended up removing the datetimefield like it was suggested here: [https://discuss.elastic.co/t/invalid-format-for-timestamp-field/34793/5](https://discuss.elastic.co/t/invalid-format-for-timestamp-field/34793/5)

After that, indexing worked fine. Yet the object.tree field is still not being created. If I search

GET beam-\*/\_search  
{  
"query": {  
"term": {  
"object.tree": "/belletristik/"  
}  
}  
}  
I get nothing, though I should have a few hundred hits.

---

_[View the full topic](https://discuss.elastic.co/t/template-is-not-being-used-mapping-not-working/190207)._
