# Upgrade from 2.1.1 to 2.2 - Error while creating mapping

**URL:** <https://discuss.elastic.co/t/upgrade-from-2-1-1-to-2-2-error-while-creating-mapping/44225>\
**Category:** Elasticsearch\
**Created:** [March 12, 2016, 7:55am UTC](https://discuss.elastic.co/t/upgrade-from-2-1-1-to-2-2-error-while-creating-mapping/44225 "2016-03-12T07:55:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![garyg](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@garyg](https://discuss.elastic.co/u/garyg)\
**Post date:** [March 12, 2016, 7:55am UTC](https://discuss.elastic.co/t/upgrade-from-2-1-1-to-2-2-error-while-creating-mapping/44225/1 "2016-03-12T07:55:29Z")

</div>

I got the mapping from an existing elastic search cluster on version 2.1.1 and trying to create the same mapping on an elastic search cluster running version 2.2. I get the following error -

```
{
   "error": {
      "root_cause": [
         {
            "type": "mapper_parsing_exception",
            "reason": "Root mapping definition has unsupported parameters: [mappings : {blog={properties={siteId={type=long}, siteLocationId={type=long}, siteName={type=string, index=not_analyzed}, siteNumber={type=long}, city={type=string, index=not_analyzed}, comments={type=string, fields={not_analysed={type=string, index=not_analyzed}}}, blogDate={type=date, format=strict_date_optional_time||epoch_millis}, blogId={type=long}, blogRating={type=double}, blogSourceAliases={type=string, index=not_analyzed}, blogSourceIds={type=long}, blogSourceNames={type=string, index=not_analyzed}, blogerFirstName={type=string}, blogerId={type=long}, blogerLastName={type=string}, blogerNickName={type=string, index=not_analyzed}, state={type=string, index=not_analyzed}, zip={type=string, index=not_analyzed}}}}]"
         }
      ],
      "type": "mapper_parsing_exception",
      "reason": "Root mapping definition has unsupported parameters: [mappings : {blog={properties={siteId={type=long}, siteLocationId={type=long}, siteName={type=string, index=not_analyzed}, siteNumber={type=long}, city={type=string, index=not_analyzed}, comments={type=string, fields={not_analysed={type=string, index=not_analyzed}}}, blogDate={type=date, format=strict_date_optional_time||epoch_millis}, blogId={type=long}, blogRating={type=double}, blogSourceAliases={type=string, index=not_analyzed}, blogSourceIds={type=long}, blogSourceNames={type=string, index=not_analyzed}, blogerFirstName={type=string}, blogerId={type=long}, blogerLastName={type=string}, blogerNickName={type=string, index=not_analyzed}, state={type=string, index=not_analyzed}, zip={type=string, index=not_analyzed}}}}]"
   },
   "status": 400
}
```

---

<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:** [March 12, 2016, 8:33am UTC](https://discuss.elastic.co/t/upgrade-from-2-1-1-to-2-2-error-while-creating-mapping/44225/2 "2016-03-12T08:33:33Z")

</div>

Can we see the mapping, properly formatted?

---

<div class="post-metadata">

**Author:** ![garyg](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@garyg](https://discuss.elastic.co/u/garyg)\
**Post date:** [March 12, 2016, 5:08pm UTC](https://discuss.elastic.co/t/upgrade-from-2-1-1-to-2-2-error-while-creating-mapping/44225/3 "2016-03-12T17:08:01Z")

</div>

The mapping is shown below. Thanks in advance for taking a look.

```
"mappings":{  
   "blog":{  
      "properties":{  
         "siteId":{  
            "type":"long"
         },
         "siteLocationId":{  
            "type":"long"
         },
         "siteName":{  
            "type":"string",
            "index":"not_analyzed"
         },
         "siteNumber":{  
            "type":"long"
         },
         "city":{  
            "type":"string",
            "index":"not_analyzed"
         },
         "comments":{  
            "type":"string",
            "fields":{  
               "not_analysed":{  
                  "type":"string",
                  "index":"not_analyzed"
               }
            }
         },
         "blogDate":{  
            "type":"date",
            "format":"strict_date_optional_time||epoch_millis"
         },
         "blogId":{  
            "type":"long"
         },
         "blogRating":{  
            "type":"double"
         },
         "blogSourceAliases":{  
            "type":"string",
            "index":"not_analyzed"
         },
         "blogSourceIds":{  
            "type":"long"
         },
         "blogSourceNames":{  
            "type":"string",
            "index":"not_analyzed"
         },
         "blogerFirstName":{  
            "type":"string"
         },
         "blogerId":{  
            "type":"long"
         },
         "blogerLastName":{  
            "type":"string"
         },
         "blogerNickName":{  
            "type":"string",
            "index":"not_analyzed"
         },
         "state":{  
            "type":"string",
            "index":"not_analyzed"
         },
         "zip":{  
            "type":"string",
            "index":"not_analyzed"
         }
      }
   }
```

---

<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:** [March 12, 2016, 5:46pm UTC](https://discuss.elastic.co/t/upgrade-from-2-1-1-to-2-2-error-while-creating-mapping/44225/4 "2016-03-12T17:46:29Z")

</div>

How do you send it to elasticsearch?

---

<div class="post-metadata">

**Author:** ![garyg](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@garyg](https://discuss.elastic.co/u/garyg)\
**Post date:** [March 12, 2016, 6:23pm UTC](https://discuss.elastic.co/t/upgrade-from-2-1-1-to-2-2-error-while-creating-mapping/44225/5 "2016-03-12T18:23:47Z")

</div>

I am using Sense chrome extension to send this request.

PUT indexName  
JSON body

---

<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:08pm UTC](https://discuss.elastic.co/t/upgrade-from-2-1-1-to-2-2-error-while-creating-mapping/44225/6 "2017-07-05T23:08:51Z")

</div>


