# Incorrect field in mapping exception while indexing a document

**URL:** https://discuss.elastic.co/t/incorrect-field-in-mapping-exception-while-indexing-a-document/38879
**Category:** Elasticsearch
**Created:** [January 11, 2016, 1:13pm UTC](https://discuss.elastic.co/t/incorrect-field-in-mapping-exception-while-indexing-a-document/38879 "2016-01-11T13:13:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shashank\_moengage](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@shashank\_moengage](https://discuss.elastic.co/u/shashank_moengage)
#### Post date: [January 11, 2016, 1:13pm UTC](https://discuss.elastic.co/t/incorrect-field-in-mapping-exception-while-indexing-a-document/38879/1 "2016-01-11T13:13:05Z")

</div>

We are trying to index a document:  
{u'App ID': u'53fca404af36ab0e4c966503',  
u'App Name': u'Test',  
'Signed Up Date': 'Tue Aug 26 2014 20:43:08 GMT+0530 (IST)',  
u'\_id': '5661506c6905a8404581a775',  
u'cr\_t': datetime.datetime(2015, 12, 4, 8, 35, 56, 772000),  
u'uid': u'53fca404af36ab0e4c966503'}

In the index Mapping:  
"Signed Up Date" is of type long

The value which we are trying to index is not a long:  
"Tue Aug 26 2014 20:43:08 GMT+0530 (IST)"

The problem is the exception which I am getting is:  
TransportError(400, u'RemoteTransportException[[user-node3][inet[/172.31.33.23:9300]][indices:data/write/index]]; nested: MapperParsingException[failed to parse [moe\_geo\_ip\_lnglat.Signed Up Date]]; nested: NumberFormatException[For input string: "Tue Aug 26 2014 20:43:08 GMT+0530 (IST)"]; ')

The field name in the exception comes as -  
moe\_geo\_ip\_lnglat.Signed Up Date.

"moe\_geo\_ip\_lnglat" and "Signed Up Date" are two separate fields in the index.

The Exception should only contain "Signed Up Date" as the field name it failed to parse.

Further Information:  
moe\_geo\_ip\_lnglat is a geo\_point field which is mapped as a geo\_point using template.

Also we also tried the same indexing in another Elasticsearch cluster which doesn't have any such template and it works fine.

Also this incorrect field name exception is also happening with other fields as well with moe\_geo\_ip\_lnglat coming as the parent field.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 11, 2016, 1:28pm UTC](https://discuss.elastic.co/t/incorrect-field-in-mapping-exception-while-indexing-a-document/38879/2 "2016-01-11T13:28:24Z")

</div>

Your mapping is incorrect probably.

It's hard to say more without the mapping. Also, could you format your examples as JSON docs? It's hard to understand here.

---

<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 5, 2017, 11:25pm UTC](https://discuss.elastic.co/t/incorrect-field-in-mapping-exception-while-indexing-a-document/38879/3 "2017-07-05T23:25:24Z")

</div>


