# MapperParsingException(serializevalue)

**URL:** <https://discuss.elastic.co/t/mapperparsingexception-serializevalue/7534>\
**Category:** Elasticsearch\
**Created:** [May 2, 2012, 9:29am UTC](https://discuss.elastic.co/t/mapperparsingexception-serializevalue/7534 "2012-05-02T09:29:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![haiyun\_zhang](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@haiyun\_zhang](https://discuss.elastic.co/u/haiyun_zhang)\
**Post date:** [May 2, 2012, 9:29am UTC](https://discuss.elastic.co/t/mapperparsingexception-serializevalue/7534/1 "2012-05-02T09:29:08Z")

</div>

Hi, does anyone know how to solve the following exception?

../config/default-mapping.json  
{  
"_default_" : {  
}  
}

* * *

curl -XPUT '127.0.0.1:9200/mapperparsingexception/serializevalue/1' -d  
'{  
"serializevalue": [  
{  
"file": 1  
},  
[  
"file.name",  
"1"  
]  
]  
}'

{"error":"MapperParsingException[object mapping [serializevalue]  
trying to serialize a value with no field associated with it, current  
value [file.name]]","status":400}

---

<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:** [May 2, 2012, 9:34am UTC](https://discuss.elastic.co/t/mapperparsingexception-serializevalue/7534/2 "2012-05-02T09:34:30Z")

</div>

you wrote "file.name", "1"  
You should write something like "file.name": "1"

"field":"value"

HTH  
David 😉  
Twitter : @dadoonet / @elasticsearchfr

Le 2 mai 2012 à 11:29, haiyun zhang [haiyun.document@gmail.com](mailto:haiyun.document@gmail.com) a écrit :

> Hi, does anyone know how to solve the following exception?
> 
> ../config/default-mapping.json  
> {  
> "_default_" : {  
> }  
> }
> 
> * * *
> 
> curl -XPUT '127.0.0.1:9200/mapperparsingexception/serializevalue/1' -d  
> '{  
> "serializevalue": [  
> {  
> "file": 1  
> },  
> [  
> "file.name",  
> "1"  
> ]  
> ]  
> }'
> 
> {"error":"MapperParsingException[object mapping [serializevalue]  
> trying to serialize a value with no field associated with it, current  
> value [file.name]]","status":400}

---

<div class="post-metadata">

**Author:** ![haiyun\_zhang](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@haiyun\_zhang](https://discuss.elastic.co/u/haiyun_zhang)\
**Post date:** [May 2, 2012, 9:53am UTC](https://discuss.elastic.co/t/mapperparsingexception-serializevalue/7534/3 "2012-05-02T09:53:06Z")

</div>

thanks,

curl -XPUT '127.0.0.1:9200/mapperparsingexception/serializevalue/1' -d '{  
"serializevalue": [  
{  
"file": 1  
},  
{  
"file.name":"1"  
}  
]  
}'  
{"ok":true,"\_index":"mapperparsingexception","\_type":"serializevalue","\_id":"1","\_version":1}

but, I just want index array type with different core type and object type

## ex:

{  
"target": [  
"string",  
"integer",  
"long",  
"boolean",  
{  
"key": "value"  
},  
[  
"string",  
"boolean"  
]  
]  
}

2012/5/2 David Pilato [david@pilato.fr](mailto:david@pilato.fr)

> you wrote "file.name", "1"  
> You should write something like "file.name": "1"
> 
> "field":"value"
> 
> HTH  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr
> 
> Le 2 mai 2012 à 11:29, haiyun zhang [haiyun.document@gmail.com](mailto:haiyun.document@gmail.com) a écrit :
> 
> > Hi, does anyone know how to solve the following exception?
> > 
> > ../config/default-mapping.json  
> > {  
> > "_default_" : {  
> > }  
> > }
> 
> * * *
> 
> > curl -XPUT '127.0.0.1:9200/mapperparsingexception/serializevalue/1' -d  
> > '{  
> > "serializevalue": [  
> > {  
> > "file": 1  
> > },  
> > [  
> > "file.name",  
> > "1"  
> > ]  
> > ]  
> > }'
> > 
> > {"error":"MapperParsingException[object mapping [serializevalue]  
> > trying to serialize a value with no field associated with it, current  
> > value [file.name]]","status":400}

---

<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:** [May 2, 2012, 10:46am UTC](https://discuss.elastic.co/t/mapperparsingexception-serializevalue/7534/4 "2012-05-02T10:46:21Z")

</div>

If I understood what you wrote, I don't think you can as a field can not be seen as two different core type.

David 😉  
Twitter : @dadoonet / @elasticsearchfr

Le 2 mai 2012 à 11:53, haiyun zhang [haiyun.document@gmail.com](mailto:haiyun.document@gmail.com) a écrit :

> thanks,
> 
> curl -XPUT '127.0.0.1:9200/mapperparsingexception/serializevalue/1' -d '{  
> "serializevalue": [  
> {  
> "file": 1  
> },  
> {  
> "file.name":"1"  
> }  
> ]  
> }'  
> {"ok":true,"\_index":"mapperparsingexception","\_type":"serializevalue","\_id":"1","\_version":1}
> 
> but, I just want index array type with different core type and object type
> 
> ## ex:
> 
> {  
> "target": [  
> "string",  
> "integer",  
> "long",  
> "boolean",  
> {  
> "key": "value"  
> },  
> [  
> "string",  
> "boolean"  
> ]  
> ]  
> }
> 
> 2012/5/2 David Pilato [david@pilato.fr](mailto:david@pilato.fr)  
> you wrote "file.name", "1"  
> You should write something like "file.name": "1"
> 
> "field":"value"
> 
> HTH  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr
> 
> Le 2 mai 2012 à 11:29, haiyun zhang [haiyun.document@gmail.com](mailto:haiyun.document@gmail.com) a écrit :
> 
> > Hi, does anyone know how to solve the following exception?
> > 
> > ../config/default-mapping.json  
> > {  
> > "_default_" : {  
> > }  
> > }
> > 
> > * * *
> > 
> > curl -XPUT '127.0.0.1:9200/mapperparsingexception/serializevalue/1' -d  
> > '{  
> > "serializevalue": [  
> > {  
> > "file": 1  
> > },  
> > [  
> > "file.name",  
> > "1"  
> > ]  
> > ]  
> > }'
> > 
> > {"error":"MapperParsingException[object mapping [serializevalue]  
> > trying to serialize a value with no field associated with it, current  
> > value [file.name]]","status":400}

---

<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, 3:30am UTC](https://discuss.elastic.co/t/mapperparsingexception-serializevalue/7534/5 "2017-07-06T03:30:23Z")

</div>


