# \[error when put index template \]Root mapping definition has unsupported parameters

**URL:** https://discuss.elastic.co/t/error-when-put-index-template-root-mapping-definition-has-unsupported-parameters/210517
**Category:** Elasticsearch
**Created:** [December 4, 2019, 11:11am UTC](https://discuss.elastic.co/t/error-when-put-index-template-root-mapping-definition-has-unsupported-parameters/210517 "2019-12-04T11:11:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Frank\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frank_wang/32/53926_2.png) [@Frank\_Wang](https://discuss.elastic.co/u/Frank_Wang)
#### Post date: [December 4, 2019, 11:11am UTC](https://discuss.elastic.co/t/error-when-put-index-template-root-mapping-definition-has-unsupported-parameters/210517/1 "2019-12-04T11:11:08Z")

</div>

I send following cmd to kibana.dev tool, and get error. what I did wrong? My elasticSearch version is 6.8.0

```auto
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters:[Item : {properties={Mkdir={properties={BandWidth={type=long},Iops={type=long}}}, Write={properties={BandWidth={type=long},Iops={type=long}}}, Getattr={properties={BandWidth={type=long},Iops={type=long}}}, MkSymlink={properties={BandWidth={type=long},Iops={type=long}}}, Readdir={properties={BandWidth={type=long},Iops={type=long}}}, Truncate={properties={BandWidth={type=long},Iops={type=long}}}, Rename={properties={BandWidth={type=long},Iops={type=long}}}, Read={properties={BandWidth={type=long},Iops={type=long}}}, ReadLink={properties={BandWidth={type=long},Iops={type=long}}}, Create={properties={BandWidth={type=long},Iops={type=long}}}, Lookup={properties={BandWidth={type=long},Iops={type=long}}}, Setattr={properties={BandWidth={type=long},Iops={type=long}}}, Link={properties={BandWidth={type=long},Iops={type=long}}}, Unlink={properties={BandWidth={type=long},Iops={type=long}}}}}] [CFSItemName : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [CFSTagSub :{type=text, fields={keyword={ignore_above=256, type=keyword}}}][CFSTag : {type=text, fields={keyword={ignore_above=256,type=keyword}}}] [CFSCluster : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [TimeStamp :{type=date}]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [properties]: Root mappingdefinition has unsupported parameters: [Item :{properties={Mkdir={properties={BandWidth={type=long},Iops={type=long}}}, Write={properties={BandWidth={type=long},Iops={type=long}}}, Getattr={properties={BandWidth={type=long},Iops={type=long}}}, MkSymlink={properties={BandWidth={type=long},Iops={type=long}}}, Readdir={properties={BandWidth={type=long},Iops={type=long}}}, Truncate={properties={BandWidth={type=long},Iops={type=long}}}, Rename={properties={BandWidth={type=long},Iops={type=long}}}, Read={properties={BandWidth={type=long},Iops={type=long}}}, ReadLink={properties={BandWidth={type=long},Iops={type=long}}}, Create={properties={BandWidth={type=long},Iops={type=long}}}, Lookup={properties={BandWidth={type=long},Iops={type=long}}}, Setattr={properties={BandWidth={type=long},Iops={type=long}}}, Link={properties={BandWidth={type=long},Iops={type=long}}}, Unlink={properties={BandWidth={type=long},Iops={type=long}}}}}] [CFSItemName : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [CFSTagSub :{type=text, fields={keyword={ignore_above=256, type=keyword}}}][CFSTag : {type=text, fields={keyword={ignore_above=256,type=keyword}}}] [CFSCluster : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [TimeStamp :{type=date}]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters:[Item : {properties={Mkdir={properties={BandWidth={type=long},Iops={type=long}}}, Write={properties={BandWidth={type=long},Iops={type=long}}}, Getattr={properties={BandWidth={type=long},Iops={type=long}}}, MkSymlink={properties={BandWidth={type=long},Iops={type=long}}}, Readdir={properties={BandWidth={type=long},Iops={type=long}}}, Truncate={properties={BandWidth={type=long},Iops={type=long}}}, Rename={properties={BandWidth={type=long},Iops={type=long}}}, Read={properties={BandWidth={type=long},Iops={type=long}}}, ReadLink={properties={BandWidth={type=long},Iops={type=long}}}, Create={properties={BandWidth={type=long},Iops={type=long}}}, Lookup={properties={BandWidth={type=long},Iops={type=long}}}, Setattr={properties={BandWidth={type=long},Iops={type=long}}}, Link={properties={BandWidth={type=long},Iops={type=long}}}, Unlink={properties={BandWidth={type=long},Iops={type=long}}}}}] [CFSItemName : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [CFSTagSub :{type=text, fields={keyword={ignore_above=256, type=keyword}}}][CFSTag : {type=text, fields={keyword={ignore_above=256,type=keyword}}}] [CFSCluster : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [TimeStamp :{type=date}]"
}
},
"status": 400
}

```

```auto
PUT _template/cfs_index_11_cfs_clt_io-20*
{
    "index_patterns" : ["cfs_index_11_cfs_clt_io-20*"],
    "mappings":{
        "properties":{
            "CFSCluster":{
                "type":"text",
                "fields":{
                    "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                    }
                }
            },
            "CFSItemName":{
                "type":"text",
                "fields":{
                    "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                    }
                }
            },
            "CFSTag":{
                "type":"text",
                "fields":{
                    "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                    }
                }
            },
            "CFSTagSub":{
                "type":"text",
                "fields":{
                    "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                    }
                }
            },
            "Item":{
                "properties":{
                    "Create":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Getattr":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Link":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Lookup":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "MkSymlink":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Mkdir":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Read":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "ReadLink":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Readdir":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Rename":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Setattr":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Truncate":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Unlink":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Write":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    }
                }
            },
            "TimeStamp":{
                "type":"date"
            }
        }
    }
}

```

---

<div class="post-metadata">

### Author: ![Frank\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frank_wang/32/53926_2.png) [@Frank\_Wang](https://discuss.elastic.co/u/Frank_Wang)
#### Post date: [December 5, 2019, 6:07am UTC](https://discuss.elastic.co/t/error-when-put-index-template-root-mapping-definition-has-unsupported-parameters/210517/2 "2019-12-05T06:07:56Z")

</div>

answer it by myself.

in 6.8.0 , define a mapping need be like this:

```
"mapping" :{
    "data": {
        "properties":{...}
    }
}

```

instead of

```
"mapping" :{
        "properties":{...}
}
```

---

<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: [January 2, 2020, 6:08am UTC](https://discuss.elastic.co/t/error-when-put-index-template-root-mapping-definition-has-unsupported-parameters/210517/3 "2020-01-02T06:08:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
