# MapperParsingException - object mapping for \[patient\] tried to parse field \[address\] as object, but got EOF, has a concrete value been provided to it

**URL:** https://discuss.elastic.co/t/mapperparsingexception-object-mapping-for-patient-tried-to-parse-field-address-as-object-but-got-eof-has-a-concrete-value-been-provided-to-it/23896
**Category:** Elasticsearch
**Created:** [June 18, 2015, 9:21am UTC](https://discuss.elastic.co/t/mapperparsingexception-object-mapping-for-patient-tried-to-parse-field-address-as-object-but-got-eof-has-a-concrete-value-been-provided-to-it/23896 "2015-06-18T09:21:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mshv](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mshv](https://discuss.elastic.co/u/mshv)
#### Post date: [June 18, 2015, 9:21am UTC](https://discuss.elastic.co/t/mapperparsingexception-object-mapping-for-patient-tried-to-parse-field-address-as-object-but-got-eof-has-a-concrete-value-been-provided-to-it/23896/1 "2015-06-18T09:21:57Z")

</div>

**INDEX-NAME** : patient  
**INDEX-TYPE** : patientinfo  
here is my simple mapping json file :

{  
"patientinfo": {  
"properties": {  
"address": {  
"type": "nested",  
"properties": {  
"patient\_origin\_address": {  
"type": "string"

```
                },
                "patient_current_address": {
                    "type": "string"
                                            
                },
                "patient_old_address": {
                    "type": "string"
                                            
                }
            }
        }
    }
}

```

}

i found out that I'm putting some string value to the object adress but i don't know which part of my code is causing error.

BulkRequestBuilder brb.add(client.prepareIndex(INDEX\_NAME, INDEX\_TYPE,  
object.get("id").toString()).setSource(map));

one sample of map data

{address={"patient\_origin\_address":" Model Town 17","patient\_current\_address":"Condominium One Subang Jaya","patient\_old\_address":" Sunway Subang Jaya"}, date\_of\_birth=1981-10-11, globalId=196ad302157add3ad63cd1154e968dfa, last\_name=Rehy, id=7, first\_name=matty}

---

<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 6, 2017, 12:06am UTC](https://discuss.elastic.co/t/mapperparsingexception-object-mapping-for-patient-tried-to-parse-field-address-as-object-but-got-eof-has-a-concrete-value-been-provided-to-it/23896/2 "2017-07-06T00:06:49Z")

</div>


